Open koreus7 opened 5 years ago
Hmm, looks like that problem is related to this issue from 10 years ago. Perhaps we could fix this by upgrading freeImage, but I'm not that sure.
The fix in that issue seems to be replacing the typedef with a define
typedef int32_t BOOL;
Replaced by:
#define BOOL int32_t
In any case I suppose there is a version of free image which is compatible with the latest OSX.
I just diffed the FreeImage header from the latest OF distribution (which compiles on my machine) and the one here.
I'm not sure what is being done here https://github.com/openframeworks/apothecary/blob/master/apothecary/formulas/FreeImage/FreeImage.sh to get this version of the header but the result is here http://ci.openframeworks.cc/libs/0.10.1/openFrameworksLibs_master_osx1.tar.bz2
OF 10.1 is using a patched branch of FreeImage
GIT_URL=https://github.com/danoli3/FreeImage
GIT_TAG=3.17.0-header-changes
with the headers fixed for OSX
I tried to build against that version and got:
Undefined symbols for architecture x86_64:
"InitJXR(Plugin*, int)", referenced from:
_FreeImage_Initialise in Plugin.cpp.o
Seems similar (though possibly not related) this this issue: https://github.com/openframeworks/openFrameworks/issues/4385
Fresh install of Mojave 10.14.6 Installed Xcode, developer tools and brew.
brew install opencv@2 --c++11 --without-python --without-numpy --without-test
Failed so I installed open cv without any flags.
Then I did
If I remove the typedef from FreeImage.h then I get errors complaining that BOOL is not defined. Which is conflicting because according to ninja/cmake it is defined twice so removing one definition should still leave it defined.