Do you have deployment target and cxx_stdlib set
in /opt/local/etc/macports/macports.conf? And if so does it match the
ones you are configuring DT for (10.10 and libc++)?
I actually haven't tested building with Yosemite as a target, so there
might as well be some problems, but error message looks to me like a
mismatch in C++ compiler/stdlib/deployment target. Re-check that and
rebuild exiv2 to be sure.

On Sun, 23 Nov 2014 01:21:30 +0100
Arvid Rudling <[email protected]> wrote:

> Hi!
> 
> I’m getting this error when building on OS X Yosemite:
> 
> Linking C shared library libdarktable.dylib
> 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
> 
> ...and more linker errors involving Exiv2
> 
> I’ve previously been able to build both the bundled and ”raw” flavors of DT 
> successfully, but after upgrading to Xcode 6, DT started crashing. After 
> upgrading to Yosemite, build fails at the linking stage.
> 
> I’ve rebuilt all dependencies as follows (including exiv2):
> 
> sudo port install gtk2 +bundle
> sudo port install git exiv2 libgphoto2 gtk-engines2 gtk-osx-application 
> lensfun librsvg libsoup openexr json-glib flickcurl GraphicsMagick openjpeg15 
> lua webp gcc48
> 
> To build I use the following:
> CC=gcc-mp-4.8 cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10  
> -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
>  ; make ; sudo make install
> 
> I’ve also checked that:
> ✔︎ libexiv2.dylib is present in /opt/local/lib
> ✔︎ CMakeCache has the location set to /opt/local/lib/libexiv2.dylib
> ✔︎ checked the dylib with lipo -info and it’s indeed x86_64
> 
> What is going on here? Wrong version of exiv2?
> 
> Cheers,
> Arvid
> 

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to