From: Pedro V. <ped...@sp...> - 2016-11-15 04:39:30
|
all is fine so, the problem was that I was using git bash for Windows as shell (where back-slash forward-slash convention is different from Unix/Windows; as a software engineer I end up losing hours of my life fixing different Unix/Windows path conventions. Thanks Microsoft). Using just a "normal" Windows shell , this works -DwxWidgets_LIB_DIR:PATH=%WXWIN%\lib\vc_lib in 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 sorry for all the false alarms Just 2 last notes :-) 1) If we specify the root of wxWidgets with -DwxWidgets_ROOT_DIR:PATH=%WXWIN% it seems that having to specify the library path could be eliminated -DwxWidgets_LIB_DIR:PATH=%WXWIN%\lib\vc_lib I believe this path \lib\vc_lib is always the same for any Windows build? If not than my point is not valid 2) After building with Visual Studio, all built ok ========== Rebuild All: 88 succeeded, 0 failed, 0 skipped ========== but in the last release there was an automatic run of the plot demo, that shows a plot window, that did not show up this time no big deal, but it's a nice feature that shows that all went fine thanks -Pedro ----- Original Message ----- From: "Alan W. Irwin" <ir...@be...> To: "Pedro Vicente" <ped...@sp...> Cc: "Phil Rosenberg" <p.d...@gm...>; "Laurent Berger" <lau...@un...>; <plp...@li...> Sent: Monday, November 14, 2016 3:23 AM Subject: Re: [Plplot-devel] Finding wxWidgets > On 2016-11-13 22:14-0500 Pedro Vicente wrote: > >> I have >> >> >> WXWIN = M:\wx\wxwidgets-3.1.0 > > Hi Pedro: > > That form is consistent with the examples at > <https://wiki.wxwidgets.org/Adding_an_Environment_Variable_under_Windows>. > Nevertheless, CMake is sometimes difficult about the back-slash Windows > directory notation and may need the "native CMake" forward slash notation > instead for > these cmake options that are specifying directories. > > So this is just an informed guess, but what happens if you replace > > -DwxWidgets_ROOT_DIR:PATH=%WXWIN% > -DwxWidgets_LIB_DIR:PATH=%WXWIN%\lib\vc_lib > > with > > -DwxWidgets_ROOT_DIR:PATH=M:/wx/wxwidgets-3.1.0 > -DwxWidgets_LIB_DIR:PATH=M:/wx/wxwidgets-3.1.0/lib/vc_lib > > in your cmake options? > > Also, if that still does not do the trick, please send the > CMakeCache.txt file as well. > > Alan > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and > Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state > implementation for stellar interiors (freeeos.sf.net); the Time > Ephemerides project (timeephem.sf.net); PLplot scientific plotting > software package (plplot.sf.net); the libLASi project > (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); > and the Linux Brochure Project (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ > |