These are chat archives for buddhi1980/mandelbulber2

12th
Mar 2016
Krzysztof Marczak
@buddhi1980
Mar 12 2016 10:43
The problem with EXR is because it produces only libraries for static linking. In /usr/local/mingw-32bit/lib we have only *.la files for EXR
Thats why they cannot be linked
bermarte
@bermarte
Mar 12 2016 10:51
2.07 OS X works, EXR compilation works fine. I Should add TIFF library as well later.
Krzysztof Marczak
@buddhi1980
Mar 12 2016 10:51
great!
bermarte
@bermarte
Mar 12 2016 16:58
This message was deleted
bermarte
@bermarte
Mar 12 2016 17:32

this is how I link EXR headers and libraries:

QMAKE_CXXFLAGS += -fvisibility=hidden

LIBS += -lz -lpthread
LIBS += -LPWD/../OpenEXR1/lib/lIlmImf21lHalflIex21lIexMath21lImath21lIlmThread21INCLUDEPATH+=PWD/../OpenEXR_1/lib/ -lIlmImf-2_1 -lHalf -lIex-2_1 -lIexMath-2_1 -lImath-2_1 -lIlmThread-2_1 INCLUDEPATH += PWD/../OpenEXR_1/include/OpenEXR
DEPENDPATH += PWD/../OpenEXR1/libPRETARGETDEPS+=PWD/../OpenEXR_1/lib PRE_TARGETDEPS += PWD/../OpenEXR_1/lib/libIlmImf-2_1.a PWD/../OpenEXR1/lib/libHalf.aPWD/../OpenEXR_1/lib/libHalf.a PWD/../OpenEXR_1/lib/libIex-2_1.a PWD/../OpenEXR1/lib/libIexMath21.aPWD/../OpenEXR_1/lib/libIexMath-2_1.a PWD/../OpenEXR_1/lib/libIlmThread-2_1.a $$PWD/../OpenEXR_1/lib/libImath-2_1.a
DEFINES += USE_EXR

Krzysztof Marczak
@buddhi1980
Mar 12 2016 17:34
the problem with mingw is not how to link exr libraries, but how to compile them to have *.dll.a files
Krzysztof Marczak
@buddhi1980
Mar 12 2016 19:08
What I have just fount, that our setup-cross-compile-to-windows.sh script produce regular linux libraries for EXR intead of mingw. CMAKE_HOST_SYSTEM doesn't change compiler to mingw!
Sebastian Jennen
@zebastian
Mar 12 2016 19:25
Oh, this probably should be cmake_system instead of ...host...