Registered Member
|
I've been spending the last couple of days getting Calligra (git master) to build on OS X 10.6.8 using the KDE and other dependencies installed through MacPorts.
The clang compilers are symlinks to clang-mp-3.3 and clang++-mp-3.3 respectively. I use those to avoid the clang-3.0 compiler provided by Apple, and not g++-mp-4.7 (or 4. to avoid conflicts with libc++/libstdc++ on recent versions of OS X. I uninstalled Vc before building to avoid issues with the incomplete AVX support on 10.6, I've had to tweak the CMakeCache to force the use of libiconv in /opt/local/ instead of /usr/lib, the cmake script to find GLEW (so it finds the GLEW dylib in /opt/local/lib) and cmake's internals so that the CMAKE_MODULE_CREATE formulas emit -dynamiclib instead of -bundle. It took about 9 iterations to figure everything out (and at least 19Gb of virtual memory to compile gmic.cpp ...), but most features seem to work in the end. Note that before adapting the FindCLEW.cmake script I stumbled across an omission in the GLEW-less conditional code in krita/ui/opengl/kis_opengl_canvas2_p.h
So I decided to see if I could get the build to complete with Vc installed. And that got me stuck on the following error:
I checked, even with KoOptimizedCompositeOpFactory.cpp and libpigmentcms.14.dylib compiled/built with g++-4.7 the error is there. I'm not fluent enough in STL to dive into a huge body of code like this and figure out what goes wrong. Can anyone give me some pointers? For the sake of being exhaustive: I don't recall asking for it, but the PACKAGERS_BUILD got activated in my case. From what I understand this is probably not a bad idea to avoid issues like the one above? BTW, it'd be useful to mention that dependencies like libetonyek, libodfgen and (apparently also) Vc should not be the latest versions (0.x for the former, 0.6.x for Vc)! |
Registered Member
|
Curiously the non-packagers' build just completed without the issue reported above.
I personally usually build with -march=core2 instead of -march=corei7-avx (no difference if you don't use an AVX-aware compiler, except in compatibility) but I guess that most if not all Apple hardware more recent than my mid 2011 MBP will run the binaries I just built. |
Registered Member
|
Would be great to see Calligra on MacPorts once you've solved this...
|
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell