How can I open openexr image on qt widget
-
It worked out right here but now I'm with error in the qt files
No qmake Qt5 binary found. Can't check QT_INSTALL_PREFIXYou need to run qtenv2.bat as explained in the link I posted
but has some way to do this "make" on windows
Once you selected the right generator just call
cmake --build .
(don't forget the dot at the end) and CMake will automatically call the correct build toolCould not find a package configuration file provided by "KF5Archive" with
weird, KArchive is not listed as a dependency for KImageFormats. In any case it's a Tier1 Module of KDE
The following OPTIONAL packages have not been found:
KF5Archive
so it's just optional, cool.
P.S.
In my experience CMake GUI messed up my config more than it helped me build projects, I find it easier just doing it via the terminal -
@SGaist Well I'm finishing compiling the remaining dependencies, but the only thing that gave me error was to install the fade pro python library "https://stefanseefeld.github.io/faber" I performed all the right steps but the system can not find directory or error on line 139
-
Can you give more details about what you did and what failed ?
-
CMAKE TERMINAL:
PS C:\Git\openexr\build> cmake --build . [ 0%] Built target eLut [ 1%] Built target toFloat [ 1%] Built target Half [ 2%] Built target Half_static [ 2%] Built target Iex [ 3%] Built target Iex_static [ 4%] Building CXX object IlmBase/IexMath/CMakeFiles/IexMath.dir/IexMathFloatExc.cpp.obj In file included from C:/Git/openexr/IlmBase/Iex/IexMathExc.h:40:0, from C:/Git/openexr/IlmBase/IexMath/IexMathFloatExc.h:58, from C:\Git\openexr\IlmBase\IexMath\IexMathFloatExc.cpp:43: C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:149:29: error: function 'Iex_2_3::ArgExc::ArgExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, ArgExc, BaseExc) // Invalid arguments to a function call ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:149:29: error: function 'Iex_2_3::ArgExc::ArgExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, ArgExc, BaseExc) // Invalid arguments to a function call ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:149:29: error: function 'Iex_2_3::ArgExc::ArgExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, ArgExc, BaseExc) // Invalid arguments to a function call ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:149:29: error: function 'Iex_2_3::ArgExc::ArgExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, ArgExc, BaseExc) // Invalid arguments to a function call ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::ArgExc::~ArgExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:149:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, ArgExc, BaseExc) // Invalid arguments to a function call ^~~~~~~~~~~~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:151:29: error: function 'Iex_2_3::LogicExc::LogicExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, LogicExc, BaseExc) // General error in a program's logic, ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:151:29: error: function 'Iex_2_3::LogicExc::LogicExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, LogicExc, BaseExc) // General error in a program's logic, ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:151:29: error: function 'Iex_2_3::LogicExc::LogicExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, LogicExc, BaseExc) // General error in a program's logic, ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:151:29: error: function 'Iex_2_3::LogicExc::LogicExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, LogicExc, BaseExc) // General error in a program's logic, ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::LogicExc::~LogicExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:151:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, LogicExc, BaseExc) // General error in a program's logic, ^~~~~~~~~~~~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:156:29: error: function 'Iex_2_3::InputExc::InputExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, InputExc, BaseExc) // Invalid input data, e.g. from a file ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:156:29: error: function 'Iex_2_3::InputExc::InputExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, InputExc, BaseExc) // Invalid input data, e.g. from a file ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:156:29: error: function 'Iex_2_3::InputExc::InputExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, InputExc, BaseExc) // Invalid input data, e.g. from a file ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:156:29: error: function 'Iex_2_3::InputExc::InputExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, InputExc, BaseExc) // Invalid input data, e.g. from a file ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::InputExc::~InputExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:156:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, InputExc, BaseExc) // Invalid input data, e.g. from a file ^~~~~~~~~~~~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:158:29: error: function 'Iex_2_3::IoExc::IoExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, IoExc, BaseExc) // Input or output operation failed ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:158:29: error: function 'Iex_2_3::IoExc::IoExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, IoExc, BaseExc) // Input or output operation failed ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:158:29: error: function 'Iex_2_3::IoExc::IoExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, IoExc, BaseExc) // Input or output operation failed ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:158:29: error: function 'Iex_2_3::IoExc::IoExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, IoExc, BaseExc) // Input or output operation failed ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::IoExc::~IoExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:158:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, IoExc, BaseExc) // Input or output operation failed ^~~~~~~~~~~~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:160:29: error: function 'Iex_2_3::MathExc::MathExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, MathExc, BaseExc) // Arithmetic exception; more specific ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:160:29: error: function 'Iex_2_3::MathExc::MathExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, MathExc, BaseExc) // Arithmetic exception; more specific ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:160:29: error: function 'Iex_2_3::MathExc::MathExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, MathExc, BaseExc) // Arithmetic exception; more specific ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:160:29: error: function 'Iex_2_3::MathExc::MathExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, MathExc, BaseExc) // Arithmetic exception; more specific ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::MathExc::~MathExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:160:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, MathExc, BaseExc) // Arithmetic exception; more specific ^~~~~~~~~~~~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:164:29: error: function 'Iex_2_3::ErrnoExc::ErrnoExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, ErrnoExc, BaseExc) // Base class for exceptions corresponding ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:164:29: error: function 'Iex_2_3::ErrnoExc::ErrnoExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, ErrnoExc, BaseExc) // Base class for exceptions corresponding ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:164:29: error: function 'Iex_2_3::ErrnoExc::ErrnoExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, ErrnoExc, BaseExc) // Base class for exceptions corresponding ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:164:29: error: function 'Iex_2_3::ErrnoExc::ErrnoExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, ErrnoExc, BaseExc) // Base class for exceptions corresponding ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::ErrnoExc::~ErrnoExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:164:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, ErrnoExc, BaseExc) // Base class for exceptions corresponding ^~~~~~~~~~~~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:169:29: error: function 'Iex_2_3::NoImplExc::NoImplExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, NoImplExc, BaseExc) // Missing method exception e.g. from a ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:169:29: error: function 'Iex_2_3::NoImplExc::NoImplExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, NoImplExc, BaseExc) // Missing method exception e.g. from a ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:169:29: error: function 'Iex_2_3::NoImplExc::NoImplExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, NoImplExc, BaseExc) // Missing method exception e.g. from a ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:169:29: error: function 'Iex_2_3::NoImplExc::NoImplExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, NoImplExc, BaseExc) // Missing method exception e.g. from a ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::NoImplExc::~NoImplExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:169:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, NoImplExc, BaseExc) // Missing method exception e.g. from a ^~~~~~~~~~~~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:175:29: error: function 'Iex_2_3::NullExc::NullExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, NullExc, BaseExc) // A pointer is inappropriately null. ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:175:29: error: function 'Iex_2_3::NullExc::NullExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, NullExc, BaseExc) // A pointer is inappropriately null. ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:175:29: error: function 'Iex_2_3::NullExc::NullExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, NullExc, BaseExc) // A pointer is inappropriately null. ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:175:29: error: function 'Iex_2_3::NullExc::NullExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, NullExc, BaseExc) // A pointer is inappropriately null. ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::NullExc::~NullExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:175:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, NullExc, BaseExc) // A pointer is inappropriately null. ^~~~~~~~~~~~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:177:29: error: function 'Iex_2_3::TypeExc::TypeExc()' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, TypeExc, BaseExc) // An object is an inappropriate type, ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:135:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name() throw(): base (0) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:177:29: error: function 'Iex_2_3::TypeExc::TypeExc(const char*)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, TypeExc, BaseExc) // An object is an inappropriate type, ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:136:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const char* text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:177:29: error: function 'Iex_2_3::TypeExc::TypeExc(const string&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, TypeExc, BaseExc) // An object is an inappropriate type, ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:137:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (const std::string &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:177:29: error: function 'Iex_2_3::TypeExc::TypeExc(std::stringstream&)' definition is marked dllimport DEFINE_EXC_EXP (IEX_EXPORT, TypeExc, BaseExc) // An object is an inappropriate type, ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:138:13: note: in definition of macro 'DEFINE_EXC_EXP' exp name (std::stringstream &text) throw(): base (text) {} \ ^~~~ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:139:13: error: function 'Iex_2_3::TypeExc::~TypeExc()' definition is marked dllimport exp ~name() throw() { } \ ^ C:/Git/openexr/IlmBase/Iex/IexBaseExc.h:177:1: note: in expansion of macro 'DEFINE_EXC_EXP' DEFINE_EXC_EXP (IEX_EXPORT, TypeExc, BaseExc) // An object is an inappropriate type, ^~~~~~~~~~~~~~ IlmBase\IexMath\CMakeFiles\IexMath.dir\build.make:62: recipe for target 'IlmBase/IexMath/CMakeFiles/IexMath.dir/IexMathFloatExc.cpp.obj' failed mingw32-make.exe[2]: *** [IlmBase/IexMath/CMakeFiles/IexMath.dir/IexMathFloatExc.cpp.obj] Error 1 CMakeFiles\Makefile2:1294: recipe for target 'IlmBase/IexMath/CMakeFiles/IexMath.dir/all' failed mingw32-make.exe[1]: *** [IlmBase/IexMath/CMakeFiles/IexMath.dir/all] Error 2 Makefile:161: recipe for target 'all' failed mingw32-make.exe: *** [all] Error 2 CMAKE GUI CMake Warning at CMakeLists.txt:143 (message): Viewers are currently out of order. Building anyway Found OpenGL: opengl32 Could NOT find FLTK (missing: FLTK_LIBRARIES FLTK_INCLUDE_DIR) CMake Warning at CMakeLists.txt:147 (message): FLTK not found, exrdisplay will not be built ILMBASE_PACKAGE_PREFIX = C:/Program Files (x86)/OpenEXR INFO,Skipping Python bindings INFO,Skipping OpenEXR Viewers Configuring done Generating done
-
@SGaist I also try to compile without selecting these options python lib and openexr viewer as well as in the image. python was because I could not install the "Faber" and the viewer was because I could not install the fltk tbm
-
@Nathan-Miguel said in How can I open openexr image on qt widget:
@SGaist If you have a problem with linux on linux, I would like to install linux on linux, because it is horrible to program on windows in C ++ on my opinion
Install Linux on Linux ? What do you mean by that ?
In any case, you don't really need the viewer since you want to use Qt to show the images.
-
@SGaist sorry for my keyboard and brazil, sometimes it fixes the errors alone, but what I wanted to say and if it would be easier to program this in linux and if you have how to compile windows files direct in linux. But continuing, where I can find this "FLTK_GL_LIBRARY", and about python it seems that cmake is using 2.7 and not the 3.7 to install the python boost.
CMake Warning at CMakeLists.txt: 143 (message): Viewers are currently out of order. Building anyway ILMBASE_PACKAGE_PREFIX = C: / Program Files (x86) / OpenEXR INFO, Skipping Python bindings OPENEXR_PACKAGE_PREFIX = CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please make them or make sure they are set and tested correctly in the CMake files: FLTK_GL_LIBRARY linked by target "exrdisplay" in directory C: / Git / openexr / OpenEXR_Viewers / exrdisplay Configuring incomplete, errors occurred! See also "C: /Git/openexr/build/CMakeFiles/CMakeOutput.log".
-
@SGaist I've been able to compile all but that's missing so I can finish compiling Kimageformat, "https://api.kde.org/frameworks/karchive/html/index.html"
Could not set up the appstream test. appstreamcli is missing.
Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR LIBLZMA_LIBRARY LIBLZMA_HAS_AUTO_DECODER LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET)
The following OPTIONAL packages have been found:* Qt5Network
- The following REQUIRED packages have been found:
* ECM (required version> = 5.53.0), Extra CMake Modules., Https://projects.kde.org/projects/kdesupport/extra-cmake-modules
* ZLIB, Support for gzip compressed files and data streams, http://www.zlib.net
Required by the core KDE libraries and some critical kioslaves
* Qt5Core- The following features have been disabled:
* QCH, API documentation in QCH format (for eg Qt Assistant, Qt Creator & KDevelop)
- The following OPTIONAL packages have not been found:
* LibLZMA, Support for xz compressed files and data streams, http://tukaani.org/xz/
Support for xz compressed files and data streams- The following RECOMMENDED packages have not been found:
* BZip2, Support for BZip2 compressed files and data streams, https://sourceware.org/bzip2/
Support for BZip2 compressed files and data streamsConfiguring done
Generating done -
@Nathan-Miguel said in How can I open openexr image on qt widget:
but how can I include this in my project
http://doc.qt.io/qt-5/third-party-libraries.html
http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html -
You don't have to link against them. They are plugins that will be loaded at run time.
You may have to add a call to QCoreApplication::addLibraryPath for your application to find them.
-
@SGaist I was able to make cmake find them but I still have an error compiling openexr's ".lib"
CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj): In function `K_IStream::read(char*, int)': C:/Git/kimageformats/src/imageformats/exr.cpp:61: undefined reference to `Iex_2_3::throwErrnoExc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj): In function `EXRHandler::read(QImage*)': C:/Git/kimageformats/src/imageformats/exr.cpp:169: undefined reference to `Imf_2_3::globalThreadCount()' C:/Git/kimageformats/src/imageformats/exr.cpp:169: undefined reference to `Imf_2_3::RgbaInputFile::RgbaInputFile(Imf_2_3::IStream&, int)' C:/Git/kimageformats/src/imageformats/exr.cpp:170: undefined reference to `Imf_2_3::RgbaInputFile::dataWindow() const' C:/Git/kimageformats/src/imageformats/exr.cpp:178: undefined reference to `Imf_2_3::RgbaInputFile::setFrameBuffer(Imf_2_3::Rgba*, unsigned long long, unsigned long long)' C:/Git/kimageformats/src/imageformats/exr.cpp:179: undefined reference to `Imf_2_3::RgbaInputFile::readPixels(int, int)'C:/Git/kimageformats/src/imageformats/exr.cpp:169: undefined reference to `Imf_2_3::RgbaInputFile::~RgbaInputFile()' C:/Git/kimageformats/src/imageformats/exr.cpp:169: undefined reference to `Imf_2_3::RgbaInputFile::~RgbaInputFile()' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj): In function `EXRHandler::canRead(QIODevice*)': C:/Git/kimageformats/src/imageformats/exr.cpp:212: undefined reference to `Imf_2_3::isImfMagic(char const*)' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj): In function `Iex_2_3::InputExc::InputExc(char const*)': C:/PROGRA~1/OpenEXR/include/OpenEXR/IexBaseExc.h:156: undefined reference to `Iex_2_3::BaseExc::BaseExc(char const*)' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj): In function `Iex_2_3::InputExc::~InputExc()': C:/PROGRA~1/OpenEXR/include/OpenEXR/IexBaseExc.h:156: undefined reference to `Iex_2_3::BaseExc::~BaseExc()' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj): In function `K_IStream::K_IStream(QIODevice*, QByteArray const&)': C:/Git/kimageformats/src/imageformats/exr.cpp:40: undefined reference to `Imf_2_3::IStream::IStream(char const*)' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj):exr.cpp:(.rdata$_ZTV9K_IStream[_ZTV9K_IStream]+0x20): undefined reference to `Imf_2_3::IStream::isMemoryMapped() const' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj):exr.cpp:(.rdata$_ZTV9K_IStream[_ZTV9K_IStream]+0x30): undefined reference to `Imf_2_3::IStream::readMemoryMapped(int)' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj): In function `K_IStream::~K_IStream()': C:/Git/kimageformats/src/imageformats/exr.cpp:36: undefined reference to `Imf_2_3::IStream::~IStream()' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj):exr.cpp:(.rdata$_ZTVN7Iex_2_38InputExcE[_ZTVN7Iex_2_38InputExcE]+0x20): undefined reference to `Iex_2_3::BaseExc::what() const' CMakeFiles\kimg_exr.dir/objects.a(exr.cpp.obj):exr.cpp:(.rdata$.refptr._ZN4half8_toFloatE[.refptr._ZN4half8_toFloatE]+0x0): undefined reference to `half::_toFloat' collect2.exe: error: ld returned 1 exit status mingw32-make.exe[2]: *** [src\imageformats\CMakeFiles\kimg_exr.dir\build.make:107: bin/imageformats/kimg_exr.dll] Error 1 mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:200: src/imageformats/CMakeFiles/kimg_exr.dir/all] Error 2 mingw32-make.exe: *** [Makefile:140: all] Error 2
-
Can you check in which OpenEXR library you have these symbols ? It's likely the llmlmf library but better double check.
-
I didn't meant you are missing a library, just wondering which one contains the missing symbols and thus if you are linking against it.
-
@SGaist The log says that "moc_predefs.h" is giving the library error to generate kimg_exr.dll, more briefly, but what can I do to correct it, I tried to switch between VS and mingw
[ 1%] Automatic MOC for target kimg_exr
AutoMoc subprocess error
The content generation command for "moc_predefs.h" failed.
Command
C:/Qt/Tools/mingw730_64/bin/g++.exe -dM -E -c "C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeCXXCompilerABI.cpp" -IC:/Git/kimageformats/build/src/imageformats -IC:/Git/kimageformats/src/imageformats -IC:/Qt/5.12.0/mingw73_64/include -IC:/Qt/5.12.0/mingw73_64/include/QtGui -IC:/Qt/5.12.0/mingw73_64/include/QtANGLE -IC:/Qt/5.12.0/mingw73_64/include/QtCore -IC:/Qt/5.12.0/mingw73_64/./mkspecs/win32-g++ "-IC:/Program Files/OpenEXR/include/OpenEXR" -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32_LEAN_AND_MEAN -DWINVER=0x0600 -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -D_WIN32_IE=0x0600 -D_WIN32_WINNT=0x0600 -DWIN32
Output
src\imageformats\CMakeFiles\kimg_exr_autogen.dir\build.make:56: recipe for target 'src/imageformats/CMakeFiles/kimg_exr_autogen' failed mingw32-make.exe[2]: *** [src/imageformats/CMakeFiles/kimg_exr_autogen] Error 1 CMakeFiles\Makefile2:569: recipe for target 'src/imageformats/CMakeFiles/kimg_exr_autogen.dir/all' failed mingw32-make.exe[1]: *** [src/imageformats/CMakeFiles/kimg_exr_autogen.dir/all] Error 2 Makefile:139: recipe for target 'all' failed mingw32-make.exe: *** [all] Error 2
-
You can't mix and match C++ libraries built with VS and MinGW, you have to always use the same compiler.