Dear All,
For the last couple days i have been batting my head over combining these 3 frameworks.
Just a preliminary note: everything on my computer was compiled for x86_64 and not i386. Does OF use clang++ -stdlib=libc++ ?
dlib C++ is a machine learning lib that I happen to like, it took me ages to compile on OSX (latest Xcode) since I was using the wrong Cmake parameters (you can see the thread here: https://sourceforge.net/p/dclib/discussion/442518/thread/1631d9b2/) .
With the help of davis I could finally open a dlib project in Xcode, compile, link and and run it. But then, problems started, with boost collisions (libc++ incompatibilities for instance: http://stackoverflow.com/questions/8454329/why-cant-clang-with-libc-in-c0x-mode-link-this-boostprogram-options-examp) and cases like this: https://sourceforge.net/p/dclib/discussion/442517/thread/cfd6538b/ which I haven’t been able to resolve yet.
Not to mention this nightmare: http://faisalzqureshi.blogspot.co.il/2014/01/boost-library-on-osx-dyld-woes.html
I tried taking the dlib project and using Boost from it --> didn’t work.
Then I tried using ofxLearn, which uses dlib, but that dlib version is very old, and my attempts to upgrade where futile.
What I have now: I compiled boost in two versions like so (I used this https://micro-manager.org/wiki/Building_Universal_Binaries_on_Mac_OS_X):
sudo ./bjam --install --build-dir=i386 --toolset=darwin --link=static --runtime-link=static --threading=multi --layout=tagged --prefix=/usr/local/i386 architecture=x86 address-model=32 --with-system --with-thread --with-iostreams --with-date_time --libdir=/usr/local/i386/lib --includedir=/usr/local/i386/incl$
#sudo ./bjam --install --build-dir=x86_64 --toolset=darwin-4.2 --link=static --runtime-link=static --threading=multi --layout=tagged --prefix=/usr/local/x86_64 architecture=x86 address-model=64 --with-system --with-thread --with-iostreams --with-date_time --libdir=/usr/local/x86_64/lib --includedir=/usr/loca$
this is the result (ofxOSXb is my own Boost add on, the one called ofxOSXBoost with the fat binary didnt work for me):
I took the latest ofxLearn project and linked boost to it, but i have all the above mentioned compilation issues.
Ideally all I want to have is: ofxLearn with the latest Boost and latest dlib in a single project that compiles links correctly and runs under OSX 10.10 with the latest compiler chain.
Can any one help? this is just an example for the issues:
Thanks!
Edit: this is what I have now, I am sure I have boost compiled with i386. this only happnes with the latest version of dlib and boost.