On 2017-07-04 07:03-0000 Arjen Markus wrote:
[...]
-----Original Message-----
From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca]
Sent: Tuesday, July 04, 2017 12:30 AM
[...]
2. Do a simple test of wxwidgets on MSVC
Ah, I tried it yesterday, but my wxWidgets installation was not
recognised, despite the hints I gave (the FindWxWidgets.cmake file
documents a few variables that you can use). I have studied the find
method, added a bunch of debug statements to see what is going on, but
sofar I have failed to make any progress. (Note: The code is five or
six pages long!)
I would advise concentrating on debugging the results of each relevant
find command (e.g., find_library, find_path, find_file, and possibly
find_program) within that code since there are relatively few such
commands within that find module logic, and it is pretty likely that
find module is failing to find your installation because
one or more of those find commands is failing.
From the documentation of wxWidgets_ROOT_DIR and wxWidgets_LIB_DIR it
appears to me those variables are meant to select a particular version
of wxwidgets when there are multiple choices, and there must be
assumptions about the layout of your wxwidgets installation underneath
those very broad prefixes that may not be correct for your particular
installation.
Thus, I think you should be looking at generic methods for helping
CMake to find installations such as setting CMAKE_INCLUDE_PATH and
CMAKE_LIBRARY_PATH (either as environment variables or CMake
variables, see
<https://cmake.org/cmake/help/latest/command/find_library.html>,
<https://cmake.org/cmake/help/latest/command/find_path.html>, etc.,
for each kind of find command that you are debugging.) Finally, I
would advise looking carefully at the last subdirectory of the prefix
information you are supplying with CMAKE_INCLUDE_PATH and
CMAKE_LIBRARY_PATH. That is, if the code is attempting to find, e.g.,
include/wx/wx.h, and you have supplied a directory prefix whose last
subdirectory is .../include or .../include/wx, then that find will fail.
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
__________________________
------------------------------------------------------------------------------
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