Koen van der Drift wrote: > Hi, > > As posted earlier this week on IRC, I am getting the following linker > error: > > Linking CXX executable massXpert.app/Contents/MacOS/massXpert > cd /sw/src/fink.build/massxpert-x11-2.1.0-1001/massxpert-2.1.0/gui && / > sw/bin/cmake -E cmake_link_script CMakeFiles/massXpert.dir/link.txt -- > verbose=1 > /sw/var/lib/fink/path-prefix-g++-4.0/c++ -mmacosx-version-min=10.3 - > fvisibility-inlines-hidden -isysroot /Developer/SDKs/MacOSX10.4u.sdk - > mmacosx-version-min=10.5 -Wl,-search_paths_first - [] > ld: library not found for -lcrt1.10.5.o > > This is on: > > Package manager version: 0.29.99.cvs > Distribution version: selfupdate-cvs Fri May 7 18:18:20 2010, 10.5, > powerpc > > And I have on my system: > > /usr/lib/crt1.10.5.o > /usr/lib/crt1.o > > > Any ideas what could cause this?
The -isysroot flag. You probably don't have /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.10.5.o Unfortunately, cmake is trying successfully to out-bloat the autotools-based build system. In 2.8 they added this -isysroot garbage as default on MacOSX. If one doesn't want to build a universal binary, one now needs to get rid of the -isysroot flag and to remove the -mmacosx-version-min crap, too. With cmake, you can do this by adding the two options -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="" \ -DCMAKE_OSX_SYSROOT:PATH="/" \ to the cmake command line. I haven't tested this for massXpert on OSX 10.5, but I had to do it also for scribus135-aqua in order to make it build on OSX 10.4. -- Martin ------------------------------------------------------------------------------ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel