chrisb wrote: ↑Tue Oct 15, 2019 10:52 am
IIRC on linux there would exist a symlink libfreeimage->libfreeimage-3.17.0.dylib. Every program using the library would only use the symlink. If a new version of the lib is installed, then a new symlink is created.
Could this principle be used for FreeCAD on MacOS too?
I guess libraries from conda-forge normally do so. But something has changed with the update from freeimage 3.17 to 3.18. See my issue here:
https://github.com/conda-forge/freeimag ... k/issues/9
But the runtime error seems to be a bit different than the build-error
edit1:
Looking at the build output of occt it seems like it links directly against lib/libfreeimage-3.17.0.dylib. So there seems to be something wrong with the occt-configuration.
edit2: let's see if building occt with freeimage 3.18 will fix the linking issue. If it does we can simple migrate to occt7.4 to fix this issue.
edit3: rebuilding occt with freeimage 3.18 somehow uses the static library and is claiming about a different osx version:
Code: Select all
ld: warning: object file ($PREFIX/lib/libfreeimage.a(Colors.o-x86_64)) was built for newer OSX version (10.11) than being linked (10.9)
edit4: ok so I guess the solution is to build occt without freeimage enabled. We do so for windows and there were no complaints about it, so this should be fine.