kdeexamples buildsystem

Alexander Neundorf neundorf at kde.org
Wed Aug 3 19:00:44 UTC 2011


On Tuesday 19 July 2011, Michael Jansen wrote:
> On Friday 15 July 2011 21:37:03 Alexander Neundorf wrote:
> > Hi,
> > 
> > On Friday 15 July 2011, Michael Jansen wrote:
> > > Hi
> > > 
> > > I pushed a small project to git at git.kde.org:scratch/mjansen/cmake_test
> > > . That should be git://anongit.kde.org/scratch/mjansen/cmake_test for
> > > you to clone (in a while after anongit catches up).
> > > 
> > > It contains 2 projects. A small helloworld lib and a binary using it.
> > > In the toplevel is a makefile that builds the projects in different
> > > configurations and shows what works and what not works. Have a look
> > > inside.
> > > 
> > > The case that now works is building the lib in 32bit and trying to
> > > compile it in 64bit (At least here in OpenSuSE). The find_library call
> > > accepts the 32bit lib and naturally the linking fails later.
> > 
> > please try whether it improves the situation for you if the buildsystem
> > example in kdeexamples uses the attached file instead of as it is
> > currently in git.
> > It additionally compares the 32/64bit of the installed version with the
> > currently 32/64bitness of the currently searching project, and succeeds
> > only if it matches.
> 
> That naturally will fix the problem (i have not yet really tried) but it
> still leaves the initial problem about cmake. It is very poorly designed
> in regards to multiarch systems. 

Do you already have an idea how to handle multiarch in a nice way with 
LIB_SUFFIX ?
Requiring that people set it to "64" is kindof ok. Can we also expect that 
they know they should set it e.g. "/x86_64-linux-gnu"  ?
Or we could install to "lib${LIB_SUFFIX}/${CMAKE_LIBRARY_ARCHITECTURE}" ...

Alex


More information about the Kde-buildsystem mailing list