[CMake] cmake and wxwidgets on windows
Werner Smekal
smekal at iap.tuwien.ac.at
Tue Nov 4 03:44:34 EST 2008
Hi John,
> setting the option add_definitions(-D_UNICODE) in my CMakeLists.txt
> I can compile the minimals sample.
> executing the minimal.exe I got an error message that the
> wxbase28u_gcc_custom.dll was not found. after adding the directory
> containing the dll to %PATH% I could execute the minimal.exe
> successfully. great.
Good to know. Miguel, it seems that _UNICODE needs to be defined for
the WIN32 case (if the unicode wxWidgets library is used).
>
>
> Which brings me to my own source.
> The number of errors has reduced dramatically. The only remaining is
> the
> following.
>
> CMakeFiles\acrls.dir\src\main.cxx.obj:main.cxx:
> (.rdata$_ZTVN4ibia9MainFrameE[vtable for ibia::MainFrame]+0x44)||
> undefined
> reference to `wxEvtHandler::GetClassInfoW() const'|
> CMakeFiles\acrls.dir\src\main.cxx.obj:main.cxx:
> (.rdata$_ZTV15wxStaticBoxBase[vtable for wxStaticBoxBase]+0x44)||
> undefined
> reference to `wxEvtHandler::GetClassInfoW() const'|
> CMakeFiles\acrls.dir\src\main.cxx.obj:main.cxx:
> (.rdata$_ZTV16wxStaticTextBase[vtable for wxStaticTextBase]+0x44)||
> undefined
> reference to `wxEvtHandler::GetClassInfoW() const'|
> CMakeFiles\acrls.dir\src\main.cxx.obj:main.cxx:
> (.rdata$_ZTV12wxButtonBase[vtable for wxButtonBase]+0x44)||undefined
> reference
> to `wxEvtHandler::GetClassInfoW() const'|
>
> Maybe you also know why this error could appear?
No, not really. Even Dr. Google is not that helpful, only in http://forum.amule.org/index.php?topic=14588.0
is a reference to this error. At least we find here:
"The problem is with a macro which replaces function names. You can
try to include <wx/msw/winundef.h> in the file causing the error, this
sometimes helps. (This will undefine the macro)"
So, you could try that. If that doesn't work, you should again ask the
wxWidgets mailing list.
Best Regards,
Werner
>
--
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