Hi Werner,

Thanks for the quick reply.  Once again, I overlooked the one most
important line in the guide several times...  and when I followed it,
it worked.  Well, it got a bit further. CMake now reports that it can
find the wxWidgets library, but the compilation still fails when
wx/wx.h is attempted to be included.  I am using the following command
in cmd.exe:

cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=install
-DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release
-DwxWidgets_CONFIGURATION=msw -DENABLE_MIX_CXX=ON
-DwxWidgets_LIB_DIR=C:/MinGW/lib
-DwxWidgets_INCLUDE_DIRS=C:/MinGW/include/wx-2.8 ..

>From what I can tell, CMake is not setting the include paths for
wxWidgets nor is it doing anything with the wxWidgets_INCLUDE_DIRS
variable I tried specifying (based on references in both
FindwxWidgets.cmake and UsewxWidgets.cmake).  When I look in the
build.make file from plplotd.dir the entries for wxWidgets related
compilation have a -I option specified (right after $(CXX_FLAGS)) but
only has a space for the value.

src/CMakeFiles/plplotd.dir/__/drivers/wxwidgets_app.obj:
src/CMakeFiles/plplotd.dir/flags.make
src/CMakeFiles/plplotd.dir/__/drivers/wxwidgets_app.obj:
../drivers/wxwidgets_app.cpp
        $(CMAKE_COMMAND) -E cmake_progress_report
D:\Projects\wxWidgetsTest\installationResources\plplot-5.9.2\buildmingw\CMakeFiles
$(CMAKE_PROGRESS_38)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green
"Building CXX object
src/CMakeFiles/plplotd.dir/__/drivers/wxwidgets_app.obj"
        cd 
D:\Projects\wxWidgetsTest\installationResources\plplot-5.9.2\buildmingw\src
&& C:\MinGW\bin\g++.exe   $(CXX_DEFINES) $(CXX_FLAGS) -I  -o
CMakeFiles\plplotd.dir\__\drivers\wxwidgets_app.obj -c
D:\Projects\wxWidgetsTest\installationResources\plplot-5.9.2\drivers\wxwidgets_app.cpp

If I manually edit the file and put in the required -I<path> options
(there are actually two), then that section builds fine and a failure
occurs later on.  I have not looked into the later failure, but it
appears to be something similar.  I realize that I may not have the
files in their 'normal' locations, but I would expect to have control
over the include paths same as I do with the library path via
wxWidgets_LIB_DIR.  Is there another option I should be using?  If so,
what is the syntax for multiple paths since two are required?  I tried
specifying CMAKE_CXX_FLAGS but it leaves the blank -I option in the
g++ call which causes g++ to mis-parse the command line and get
confused claiming it can't find the wxwidgets_app.obj file.  Of course
CMAKE_CXX_FLAGS would be less than preferable to use for wxWidgets
specific includes anyways since most g++ calls wouldn't need those
paths.


As for the CMake version, etc.  I am using CMake v2.6.2 (cmake
--version reports 2.6-patch 2) downloaded from:

http://www.cmake.org/files/v2.6/cmake-2.6.2-win32-x86.exe

What I was referring to as far as CMake 'missing' wxWidgets-2.8.9 is
based on the following excerpt from C:/Program Files/CMake
2.6/share/cmake-2.6/Modules/FindwxWidgets.cmake:

   PATH_SUFFIXES
     wxWidgets-2.9.4
     wxWidgets-2.9.3
     wxWidgets-2.9.2
     wxWidgets-2.9.1
     wxWidgets-2.9.0
     wxWidgets-2.8.8
     wxWidgets-2.8.7
     wxWidgets-2.8.6

Based on my non-existent knowledge of CMake's inner workings, it seems
that if I had C:/wxWidgets-2.8.8 then CMake would find it based on the
C:/ entry under PATHS and the wxWidgets-2.8.8 entry under
PATH_SUFFIXES.  On the other hand, I would think that
C:/wxWidgets-2.8.9 would not be found automatically since it seems to
be missing from the PATH_SUFFIXES list.

Thanks (again),
-kyle

On Sun, Jan 25, 2009 at 12:58 AM, Werner Smekal <sme...@iap.tuwien.ac.at> wrote:
> Hi Kyle,
>
> which version of CMake do you use? Because 2.8.9 is definitely included in
> my FindwxWidgets.cmake, CMake Version 2.6.2. Apart from that, to begin with,
> you should follow exactly the instructions I wrote here:
>
> http://www.miscdebris.net/plplot_wiki/index.php?title=WxWidgets#Instructions_for_Windows
>
> If this works, we can try to change things and see where it breaks. The
> instructions above use the Windows CLI and not MSys.
>
> Regards,
> Werner
>
> Kyle Altendorf wrote:
>>
>> Hi All,
>>
>> I am compiling PLPlot for use with wxWidgets via C++ on Windows (and
>> eventually Linux, etc)...  except that CMake doesn't find wxWidgets
>> when setting up for PLPlot compilation.  I tried to look at the
>> FindwxWidgets.cmake file but when I set WXWIN (which seemed
>> applicable) in the shell it didn't seem to make a difference.  I did
>> note though that the file had a large list of wxWidgets versions both
>> higher and lower than 2.8.9, but not 2.8.9 itself.  It made no
>> difference when I added a line for that.  I am using:
>>
>> Windows XP Pro SP3
>> MinGW 5.1.4 ( C:/MinGW )
>> MSYS 1.0.11 ( C:/MSYS, but removed from Path variable when running CMake)
>> wxWidgets 2.8.9 ( C:/MinGW/wxWidgets-2.8.9, but installed into MinGW
>> folders )
>> PLPlot 5.9.2
>>
>> If you have any pointers, that'd be greatly appreciated.  Maybe where
>> CMAKE_LIBRARY_PATH or CMAKE_INCLUDE_PATH should point?
>>
>> Thanks,
>> -kyle
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> Plplot-general mailing list
>> Plplot-general@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/plplot-general
>>
>
>
> --
> Dr. Werner Smekal
> Institut fuer Allgemeine Physik
> Technische Universitaet Wien
> Wiedner Hauptstr 8-10
> A-1040 Wien
> Austria
> DVR-Nr: 0005886
>
> email: sme...@iap.tuwien.ac.at
> web:   http://www.iap.tuwien.ac.at/~smekal
> phone: +43-(0)1-58801-13463 (office)
>      +43-(0)1-58801-13469 (laboratory)
> fax:   +43-(0)1-58801-13499
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to