Build wxwidgets with system library
Posted: Tue Sep 18, 2018 12:31 pm
Hi,
I use CMake (3.11.0) to build wxWidgets (staticlib = wxBUILD_SHARED_OFF) on windows (VS 2017 Win64). I want to use the inside opencv libs for PNG ZLIB and TIFF to avoid duplicate symbols when I link my application.
After many tries (something is wrong in CMake-GUI when wxBUILDPNG is sys) ihave got in my cmake cache :
When I compile wxwidgets I have got an error in opencv file https://github.com/opencv/opencv/blob/m ... tiff.h#L30 cannot find tiffconf.h
I add tiffconf. path to core projects and I can build all libs
Does it mean that something is wrong in Cmake configuration or may be it is not possible to use opencv libtiff to build wxwidgets?
I use CMake (3.11.0) to build wxWidgets (staticlib = wxBUILD_SHARED_OFF) on windows (VS 2017 Win64). I want to use the inside opencv libs for PNG ZLIB and TIFF to avoid duplicate symbols when I link my application.
After many tries (something is wrong in CMake-GUI when wxBUILDPNG is sys) ihave got in my cmake cache :
Code: Select all
//Path to a library.
PNG_LIBRARY_DEBUG:FILEPATH=C:/Install/opencv/x64/vc15/staticlib/libpngd.lib
//Path to a library.
PNG_LIBRARY_RELEASE:FILEPATH=C:/Install/opencv/x64/vc15/staticlib/libpng.lib
//Path to a file.
PNG_PNG_INCLUDE_DIR:PATH=C:/Lib/opencv/3rdparty/libpng
//Path to a file.
TIFF_INCLUDE_DIR:PATH=C:/Lib/opencv/3rdparty/libtiff/
//Path to a library.
TIFF_LIBRARY_DEBUG:FILEPATH=C:/Install/opencv/x64/vc15/staticlib/libtiffd.lib
//Path to a library.
TIFF_LIBRARY_RELEASE:FILEPATH=C:/Install/opencv/x64/vc15/staticlib/libtiff.lib
//Path to a file.
ZLIB_INCLUDE_DIR:PATH=C:/Lib/opencv/3rdparty/zlib
//Path to a library.
ZLIB_LIBRARY_DEBUG:FILEPATH=C:/Install/opencv/x64/vc15/staticlib/zlibd.lib
//Path to a library.
ZLIB_LIBRARY_RELEASE:FILEPATH=C:/Install/opencv/x64/vc15/staticlib/zlib.lib
I add tiffconf. path to core projects and I can build all libs
Does it mean that something is wrong in Cmake configuration or may be it is not possible to use opencv libtiff to build wxwidgets?