-- wxWidgets_FOUND : FALSE
-- wxWidgets_INCLUDE_DIRS :
-- wxWidgets_LIBRARY_DIRS :
-- wxWidgets_LIBRARIES :
-- wxWidgets_CXX_FLAGS :
-- wxWidgets_USE_FILE : UsewxWidgets
-- WARNING: wxWidgets or its libraries not found so setting all wxwidgets devices to OFF.
-- WARNING: PLD_wxwidgets is OFF so setting ENABLE_wxwidgets to OFF.
-- WARNING: ENABLE_wxwidgets is OFF so setting all wxwidgets devices to OFF.
Anhe help appreciated, thanks
Last edit: Pedro Vicente 2016-09-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-- wxWidgets_FOUND : FALSE
-- wxWidgets_INCLUDE_DIRS : M:/wx/wxwidgets-3.1.0/lib/vc_lib/mswud;M:/wx/wxwidgets-3.1.0/include
-- wxWidgets_LIBRARY_DIRS :
-- wxWidgets_LIBRARIES : M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxpngd.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxzlibd.lib;winmm;comctl32;rpcrt4;wsock32
-- wxWidgets_CXX_FLAGS :
-- wxWidgets_USE_FILE : UsewxWidgets
-- WARNING: wxWidgets or its libraries not found so setting all wxwidgets devices to OFF.
-- WARNING: PLD_wxwidgets is OFF so setting ENABLE_wxwidgets to OFF.
-- WARNING: ENABLE_wxwidgets is OFF so setting all wxwidgets devices to OFF.
but it still fails
the docs say
There are two search branches: a windows style and a unix style. For
windows, the following variables are searched for and set to defaults
in case of multiple choices. Change them if the defaults are not
desired (i.e., these are the only variables you should change to
select a configuration):
::
wxWidgets_ROOT_DIR - Base wxWidgets directory
(e.g., C:/wxWidgets-2.6.3).
wxWidgets_LIB_DIR - Path to wxWidgets libraries
(e.g., C:/wxWidgets-2.6.3/lib/vc_lib).
wxWidgets_CONFIGURATION - Configuration to use
(e.g., msw, mswd, mswu, mswunivud, etc.)
wxWidgets_EXCLUDE_COMMON_LIBRARIES
- Set to TRUE to exclude linking of
commonly required libs (e.g., png tiff
jpeg zlib regex expat).
is the wxWidgets_EXCLUDE_COMMON_LIBRARIES really needed?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
System is windows 7, Visual Studio 2015, Win32 build
I was able to build PLPLot with the options
cmake ".." -G "Visual Studio 14" -DPL_DOUBLE=ON -DBUILD_TEST=ON -DCMAKE_CONFIGURATION_TYPES="Debug" -DBUILD_SHARED_LIBS=OFF -DSTATIC_RUNTIME=ON
Now I want to build with the wxWidgets driver
I added to the above these extra options
-DwxWidgets_LIB_DIR=M:/wx/wxwidgets-3.1.0/lib/vc_lib -DwxWidgets_CONFIGURATION=mswud -DENABLE_MIX_CXX=ON
according to
https://sourceforge.net/p/plplot/wiki/Configuration_of_wxWidgets_driver/
I get these messages
-- wxWidgets_FOUND : FALSE
-- wxWidgets_INCLUDE_DIRS :
-- wxWidgets_LIBRARY_DIRS :
-- wxWidgets_LIBRARIES :
-- wxWidgets_CXX_FLAGS :
-- wxWidgets_USE_FILE : UsewxWidgets
-- WARNING: wxWidgets or its libraries not found so setting all wxwidgets devices to OFF.
-- WARNING: PLD_wxwidgets is OFF so setting ENABLE_wxwidgets to OFF.
-- WARNING: ENABLE_wxwidgets is OFF so setting all wxwidgets devices to OFF.
Anhe help appreciated, thanks
Last edit: Pedro Vicente 2016-09-16
EDIT:
I did set
set WXWIN=M:/wx/wxwidgets-3.1.0
and used
-DwxWidgets_ROOT_DIR=%WXWIN% -DwxWidgets_LIB_DIR=%WXWIN%/lib/vc_lib
Now the libraries are found
-- wxWidgets_FOUND : FALSE
-- wxWidgets_INCLUDE_DIRS : M:/wx/wxwidgets-3.1.0/lib/vc_lib/mswud;M:/wx/wxwidgets-3.1.0/include
-- wxWidgets_LIBRARY_DIRS :
-- wxWidgets_LIBRARIES : M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxpngd.lib;M:/wx/wxwidgets-3.1.0/lib/vc_lib/wxzlibd.lib;winmm;comctl32;rpcrt4;wsock32
-- wxWidgets_CXX_FLAGS :
-- wxWidgets_USE_FILE : UsewxWidgets
-- WARNING: wxWidgets or its libraries not found so setting all wxwidgets devices to OFF.
-- WARNING: PLD_wxwidgets is OFF so setting ENABLE_wxwidgets to OFF.
-- WARNING: ENABLE_wxwidgets is OFF so setting all wxwidgets devices to OFF.
but it still fails
the docs say
There are two search branches: a windows style and a unix style. For
windows, the following variables are searched for and set to defaults
in case of multiple choices. Change them if the defaults are not
desired (i.e., these are the only variables you should change to
select a configuration):
::
wxWidgets_ROOT_DIR - Base wxWidgets directory
(e.g., C:/wxWidgets-2.6.3).
wxWidgets_LIB_DIR - Path to wxWidgets libraries
(e.g., C:/wxWidgets-2.6.3/lib/vc_lib).
wxWidgets_CONFIGURATION - Configuration to use
(e.g., msw, mswd, mswu, mswunivud, etc.)
wxWidgets_EXCLUDE_COMMON_LIBRARIES
- Set to TRUE to exclude linking of
commonly required libs (e.g., png tiff
jpeg zlib regex expat).
is the wxWidgets_EXCLUDE_COMMON_LIBRARIES really needed?
so, I found the issue, that was just a matter of not adding strings for the latest
wxwidgets-3.1.0
version
in the script named FindwxWidgets.cmake
add the line containing "31" in several places
foreach(LIB net odbc xml)
find_library(WX_${LIB}${DBG}
NAMES
wxbase31${_UCD}${_DBG}${LIB}
wxbase30${UCD}${_DBG}${LIB}
wxbase29${UCD}${_DBG}${LIB}
wxbase28${UCD}${_DBG}${LIB}
I am evaluating PLplot for a C++ project concerning 1D axis and 2D map plots and I have to say I am impressed so far:
1) easy to use
2) so far the SVG output looks good
3) WxWidgets and QT drivers
4) etc
-Pedro