[CMake] wxWidgets on Win32 (MSW)

Bill Hoffman bill.hoffman at kitware.com
Mon May 19 21:02:01 EDT 2008


Werner Smekal wrote:
> 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.
> 

However, there should not a problem using cygwin with nmake.  Most of my 
cmake development is done with visual studio and cygwin gmake, used to 
be nmake before dual core machines came out, and nmake does not handle 
parallel builds.

Is this a valid path on your machine: 
WX_adv:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_adv.lib ?

Mathieu, where is wx*.lib located on your machine?


-Bill


More information about the CMake mailing list