[CMake] wxWidgets on Win32 (MSW)
Werner Smekal
smekal at iap.tuwien.ac.at
Mon May 19 16:50:50 EDT 2008
Hi Mathieu,
first I would use the standard Windows CLI and not cygwin, if you intend
to use VC++ and NMake. I normally tell cmake where to find the correct
version of wxWidgets via
-DwxWidgets_LIB_DIR=path_to_lib_dir -DwxWidgets_CONFIGURATION=msw
In addition regarding your output, this line
> wxWidgets_wxrc_EXECUTABLE:FILEPATH=wxWidgets_wxrc_EXECUTABLE-NOTFOUND
suggests, that you need to add the path to wxrc to the standard PATH
environment variable. But I don't use you combination of tools, and
would also suggest not to do so. VC++ and NMake are native Win32 tools
and there is no need to use cygwin.
Regards,
Werner
Mathieu Malaterre wrote:
> Hi there,
>
> Hi there anyone using FindwxWidgets on Win32 ? I have the following
> CMakeLists.txt file:
>
> FIND_PACKAGE(wxWidgets COMPONENTS base core gl adv)
> INCLUDE( ${wxWidgets_USE_FILE} )
>
> I compiled wxWidgets 2.8.7 using the installer. Then compiled using
> nmake + FreeVCToolkit2003, following instructions from:
>
> http://wiki.wxwidgets.org/index.php?title=Compiling_Using_MSVC_On_The_Commandline
>
> I then configure wxVTK:
>
> /cygdrive/c/Program\ Files/CMake\ 2.6/bin/cmake .. -G"NMake Makefiles"
> -DVTK_DIR:PATH=c:/cygwin/home/mmalaterre/Projects/VTK-free
>
> The output is :
>
> -- Using FREE VC TOOLS, NO DEBUG available
> -- Using FREE VC TOOLS, NO DEBUG available
> -- Could NOT find wxWidgets
> Cannot find wxWidgets libraries and/or header files
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> C:/cygwin/home/mmalaterre/Projects/wxVTK/release-cl
>
>
> Doing a grep:
>
> $ grep wxW CMakeCache.txt
> WX_adv:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_adv.lib
> WX_aui:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_aui.lib
> WX_base:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxbase28.lib
> WX_core:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_core.lib
> WX_expat:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxexpat.lib
> WX_html:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_html.lib
> WX_jpeg:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxjpeg.lib
> WX_media:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_media.lib
> WX_net:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxbase28_net.lib
> WX_png:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxpng.lib
> WX_qa:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_qa.lib
> WX_regex:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxregex.lib
> WX_tiff:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxtiff.lib
> WX_xml:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxbase28_xml.lib
> WX_xrc:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_xrc.lib
> WX_zlib:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxzlib.lib
> //Set wxWidgets configuration (msw)
> wxWidgets_CONFIGURATION:STRING=msw
> wxWidgets_LIB_DIR:PATH=/wxWidgets-2.8.7/lib/vc_lib
> //wxWidgets base/installation directory?
> wxWidgets_ROOT_DIR:PATH=/wxWidgets-2.8.7
> wxWidgets_wxrc_EXECUTABLE:FILEPATH=wxWidgets_wxrc_EXECUTABLE-NOTFOUND
> //wxWidgets_LIB_DIR
> WX_LIB_DIR:INTERNAL=/wxWidgets-2.8.7/lib/vc_lib
> //wxWidgets_ROOT_DIR
> WX_ROOT_DIR:INTERNAL=/wxWidgets-2.8.7
>
> I am by no mean a windows expert, but I would think that something
> went wrong when extracting the path.
>
> Comments anyone ?
--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
email: smekal at 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
More information about the CMake
mailing list