On Wed, 12 Mar 2014 13:45:41 +0100 Moritz Moeller <virtualr...@gmail.com> wrote:
> On 12/3/14 1:04 pm, parafin wrote: > > It's your responsibility to not mix different C++ libs. And better not > > use -stdlib option, but > > macosx_deployment_target / -DCMAKE_OSX_DEPLOYMENT_TARGET (either set > > them to 10.6 or don't - in first case libstdc++ will be used, in > > second - libc++). In any case building instructions are fine. > > The deployment target doesn't affect the stdlib used, unfortunately. > > We ran into the same issue with our AtomKraft plugin product on OS X > after upgrading XCode to 5.x. You still need the -stdlib flag. that's not what I see: users-Mac-mini:~ user$ g++ test.cpp users-Mac-mini:~ user$ otool -L a.out a.out: /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) users-Mac-mini:~ user$ rm a.out users-Mac-mini:~ user$ g++ -mmacosx-version-min=10.7 test.cpp users-Mac-mini:~ user$ otool -L a.out a.out: /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 60.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) Just using consistent macosx_deployment_target setting in /opt/local/etc/macports/macports.conf and -DCMAKE_OSX_DEPLOYMENT_TARGET option passed to cmake when configuring darktable is enough to avoid these problems. > > > In any case, I just had to re-build ILMBase and OpenEXR via macports and > that fixed it. No flags needed in DT's CMakeLists. :) > > It also means DT now officially build with Clang on Darwin! Cool. :] > > > Aka: macports doesn't explicitly define which std c++ lib to use either. > > This means though that if anyone updates XCode and has an existing > macports installation, all packages installed or upgraded afterwards > will link against a different lib c++ than those already installed. That's basically what macports documentation says about upgrading OS - you have to rebuild everything. Same goes for changing macosx_deployment_target option. > > .mm ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ darktable-devel mailing list darktable-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/darktable-devel