false alarm, sorry

what happened is that my wxWidgets libraries were not built.

In Windows , I don't do install, but rather build software and leave it 
where it was built, and sometimes delete and rebuild.

In PLplot 5.11.1 the build actually did not include the wxWidgets projects 
and files, so it built.
but in the git version it did include the wxWidgets projects and files, so 
it failed.

there's the small detail that cmake should have had allerted that wxWidgets 
was not built...but probably not important , or could just have been my 
mistake somewhere.

so the result is for cmake build with wxWidgets

Rebuild All: 88 succeeded, 0 failed, 0 skipped =







----- Original Message ----- 
From: "Pedro Vicente" <pedro.vice...@space-research.org>
To: "Alan W. Irwin" <ir...@beluga.phys.uvic.ca>
Cc: "PLplot development list" <plplot-devel@lists.sourceforge.net>
Sent: Saturday, December 17, 2016 1:55 AM
Subject: [Plplot-devel] Cmake generation with wxWidgets on Windows


> Hi Alan
>
> I am having linking errors on the latest git clone in Windows when I use
> wxWidgets.
>
> It seems that the all the examples (or plplot.lib) are trying to link with
> wxWidgets , and I get this kind of errors
>
>
> ------ Build started: Project: x00c, Configuration: Debug Win32 ------
> plplot.lib(wxwidgets.obj) : error LNK2019: unresolved external symbol 
> "void
> __cdecl wxEntryCleanup(void)" (?wxEntryCleanup@@YAXXZ) referenced in
> function __catch$?plD_bop_wxwidgets@@YAXPAUPLStream@@@Z$1
>
>
> I tried the same cmake call on my PLplot 5.11.1 version and no problems, 
> so
> I am sure it's not my cmake call or my wxWidgets.
>
> my cmake call is
>
> cmake ".." -G "Visual Studio
> 14" -DPL_DOUBLE:BOOL=ON -DBUILD_TEST:BOOL=ON 
> -DCMAKE_CONFIGURATION_TYPES:STRING="Debug"
> -DCMAKE_BUILD_TYPE:STRING="Debug" -DBUILD_SHARED_LIBS:BOOL=OFF 
> -DSTATIC_RUNTIME:BOOL=ON
> -DPLD_wxwidgets:BOOL=ON -DwxWidgets_ROOT_DIR:PATH=%WXWIN% 
> -DwxWidgets_LIB_DIR:PATH=%WXWIN%\lib\vc_lib
> -DwxWidgets_CONFIGURATION=mswud -DENABLE_MIX_CXX=ON 
> -DwxWidgets_EXCLUDE_COMMON_LIBRARIES:BOOL=OFF
>
> and the output is attached
>
> I'm trying to figure out this by looking for ${wxwidgets_LINK_FLAGS} in 
> the
> scripts;
> all the mentions of it are below, in 4 different source files.
>
>
>
> P:\plplot\plplot\bindings\wxwidgets\CMakeLists.txt(76):
> target_link_libraries(plplotwxwidgets PRIVATE plplot plplotcxx
> ${wxwidgets_LINK_FLAGS})
>  P:\plplot\plplot\bindings\wxwidgets\CMakeLists.txt(78):
> target_link_libraries(plplotwxwidgets PUBLIC plplot plplotcxx
> ${wxwidgets_LINK_FLAGS})
>  P:\plplot\plplot\bindings\wxwidgets\CMakeLists.txt(119):
> pkg_config_file("wxwidgets" "wxWidgets" " wxWidgets binding"
> "plplotwxwidgets" "${libplplotwxwidgets_COMPILE_FLAGS}"
> "-lplplot;-lplplotcxx;${wxwidgets_LINK_FLAGS}")
>
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(27):#
> widgets_LINK_FLAGS   - list of full path names of libraries and
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(57):
> cmake_link_flags(wxwidgets_LINK_FLAGS "${wxWidgets_LIBRARIES}")
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(58):  if(NOT
> wxWidgets_FOUND OR NOT wxwidgets_LINK_FLAGS)
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(65):  else(NOT
> wxWidgets_FOUND OR NOT wxwidgets_LINK_FLAGS)
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(68):  endif(NOT
> wxWidgets_FOUND OR NOT wxwidgets_LINK_FLAGS)
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(126):  message(STATUS
> "wxwidgets_LINK_FLAGS = ${wxwidgets_LINK_FLAGS}")
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(144):
> wxwidgets_LINK_FLAGS
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(145):
> ${wxwidgets_LINK_FLAGS}
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(156): wxwidgets_LINK_FLAGS
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(157):
> ${wxwidgets_LINK_FLAGS}
>  P:\plplot\plplot\cmake\modules\wxwidgets.cmake(183):
> ${wxwidgets_LINK_FLAGS}
>
>  P:\plplot\plplot\examples\c++\CMakeLists.txt(131):
> target_link_libraries(wxPLplotDemo plplotwxwidgets plplotcxx
> ${wxwidgets_LINK_FLAGS} ${MATH_LIB})
>  P:\plplot\plplot\examples\c++\CMakeLists.txt(133):  # Transform
> wxwidgets_LINK_FLAGS from list of libraries to the standard pkg-config 
> form
>  P:\plplot\plplot\examples\c++\CMakeLists.txt(135):
> pkg_config_link_flags(pkg_config_wxwidgets_LINK_FLAGS
> "${wxwidgets_LINK_FLAGS}")
>
>  P:\plplot\plplot\utils\CMakeLists.txt(92):
> target_link_libraries(wxPLViewer plplotwxwidgets plplotcxx
> ${wxwidgets_LINK_FLAGS} ${MATH_LIB} ${RT_LIB})
>  Matching lines: 18    Matching files: 4    Total files searched: 370
>


--------------------------------------------------------------------------------


> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot


--------------------------------------------------------------------------------


> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to