Hi, I have frequently seen such errors (not with darktable, but other stuff compiled on OS X) when dependencies (e.g. via MacPorts or homebrew) and main application (darktable here) are compiled with different compilers (gcc vs. clang) or different “--with-macosx-version-min” settings (that change default c++ library).
Regards, Bernhard > On 25 Nov 2016, at 23:03, Nikolaus Thiel <[email protected]> wrote: > > Dear All > > I am trying to build Darktable on Mac OS X 10.12.1 (Sierra) following the > file packaging/macosx/BUILD.txt. > > However the command make fails with a large output, including a long > list of "Undefined symbols for architecture x86_64". Here the final > words of the process: > > > ld: symbol(s) not found for architecture x86_64 > collect2: error: ld returned 1 exit status > make[2]: *** [src/libdarktable.dylib] Error 1 > make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2 > make: *** [all] Error 2 > > > Please find some output below but I can provide the full output if needed. > > > Any help is appreciated. > Thanks a lot, > > Regards, > Klaus > > > ========================================================= > > **** Machine: iMac (Retina 5K, 27-inch, Late 2014) > > $ xcodebuild -version > Xcode 8.1 > Build version 8B62 > > > $ git checkout release-2.2.0rc1 ; git lg > > $ git lg > > * 9206b0d - (HEAD, tag: release-2.2.0rc1) Update RELEASE_NOTES (vor 5 > Tagen) <Roman Lebedev> > * ea4d2ea - RELEASE_NOTE: mention changes from PR #1354 (vor 5 Tagen) > <Ulrich Pegelow> > > > > $ make > > [ 34%] Building C object > src/CMakeFiles/lib_darktable.dir/common/printprof.c.o > [ 34%] Linking C shared library libdarktable.dylib > > > 2132 übersetzte Meldungen, 7 unübersetzte Meldungen. > 1518 übersetzte Meldungen, 74 ungenaue Übersetzungen, 26 unübersetzte > Meldungen. > /Users/klaus/GIT/darktable/src/external/rawspeed/data/cameras.xml validates > /Users/klaus/GIT/darktable/src/external/rawspeed/RawSpeed/ArwDecoder.cpp:87:21: > warning: declaration shadows a local variable [-Wshadow] > const uchar8 *data = mFile->getData(key_off, 1); > ^ > /Users/klaus/GIT/darktable/src/external/rawspeed/RawSpeed/ArwDecoder.cpp:42:20: > note: previous declaration is here > vector<TiffIFD*> data = mRootIFD->getIFDsWithTag(STRIPOFFSETS); > ^ > > > Undefined symbols for architecture x86_64: > "Exiv2::ExifParser::encode(std::__1::vector<unsigned char, > std::__1::allocator<unsigned char> >&, unsigned char const*, unsigned > int, Exiv2::ByteOrder, Exiv2::ExifData const&)", referenced from: > _dt_exif_read_blob in exif.cc.o > "Exiv2::ImageFactory::open(std::__1::basic_string<char, > std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)", > referenced from: > _dt_exif_get_thumbnail in exif.cc.o > _dt_exif_read in exif.cc.o > _dt_exif_write_blob in exif.cc.o > > "typeinfo for std::__1::ios_base", referenced from: > typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >> in exif.cc.o > typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >> in librawspeed.a(RawDecoder.cpp.o) > typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >> in librawspeed.a(CameraMetaData.cpp.o) > typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >> in librawspeed.a(Cr2Decoder.cpp.o) > typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >> in librawspeed.a(CrwDecoder.cpp.o) > typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >> in librawspeed.a(NefDecoder.cpp.o) > typeinfo for std::__1::basic_ios<char, std::__1::char_traits<char> >> in librawspeed.a(SrwDecoder.cpp.o) > ... > ld: symbol(s) not found for architecture x86_64 > collect2: error: ld returned 1 exit status > make[2]: *** [src/libdarktable.dylib] Error 1 > make[1]: *** [src/CMakeFiles/lib_darktable.dir/all] Error 2 > make: *** [all] Error 2 > > > > ___________________________________________________________________________ > darktable developer mailing list > to unsubscribe send a mail to [email protected] > ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to [email protected]
