[CMake] wxWidgets on Win32 (MSW)

Werner Smekal smekal at iap.tuwien.ac.at
Tue May 20 03:49:02 EDT 2008


Hi Mathieu,

 > Ps: I am using an installed version (.exe from official wxWidgets
 > page). So maybe it is inspecting the reg entry to construct paths...

Yes, FindwxWidgets.cmake is inspecting the reg entry. I do not use the 
wxMSW installers, since I sometimes need to have two or more versions of 
wxMSW installed and therefore I always use the zip files - in that case 
you need the definitions I wrote in my email. In order to get more 
information you could enable the debug output of FindwxWidgets.cmake. Go 
to share/cmake-2.6/Modules/FindwxWidgets.cmake and enable the Debug 
messages in line 119-126. I usually do that if cmake can't find the 
wxWidgets library since the module is not too informative if it fails to 
find it.

Regards,
Werner

Mathieu Malaterre wrote:
> On Tue, May 20, 2008 at 3:02 AM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>> 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.
> 
> I am also using cygwin/rxvt and have a bunch of scripts to init vars
> (INCLUDE/LIB...), I have been very pleased with them so far, and there
> is no way for me to start using the 'cmd' thingy....
> 
>> Is this a valid path on your machine:
>> WX_adv:FILEPATH=/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_adv.lib ?
> 
> nope, it's is missing the c:/. Doing a sed solved my issue, but I
> really do not understand what is going on with cmake 2.6 during the
> inspection. This is on my laptop at home, and some of the network (Z:,
> Y: and X: were disconected at the time, but other than creating
> slowdown it should not affect cmake bahavior).
> 
>> Mathieu, where is wx*.lib located on your machine?
> 
> WX_adv:FILEPATH=c:/wxWidgets-2.8.7/lib/vc_lib/wxmsw28_adv.lib ?
> 
> works for me.
> 


-- 
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