[CMake] cmake and wxwidgets on windows

John dbgtjp at hotmail.com
Mon Nov 3 09:42:53 EST 2008


Werner Smekal <smekal at ...> writes:

> 
> Hi John,
> 
> now please run 
> 
> make VERBOSE=1
> 
> and send the output to the list. Then we exactly see how cmake calls the
> compiler, which version of wxWidgets is used and which macros get
> defined at the command line. As Vadim wrote on the wxWidgets mailing
> list, this is very likely a mixup of unicode with non-unicode code.
> 
> Regards,
> Werner

hi werner,

below you can find the output of make VERBOSE=1

John

"C:\Programme\CMake 2.6\bin\cmake.exe" -HC:\minimal -BC:\minimal\bin --check-bui
ld-system CMakeFiles\Makefile.cmake 0
cd c:\minimal\bin && "C:\Programme\CMake 2.6\bin\cmake.exe" -E cmake_progress_st
art C:\minimal\bin\CMakeFiles C:\minimal\bin\CMakeFiles\progress.make
cd c:\minimal\bin && mingw32-make -f CMakeFiles\Makefile2 all
mingw32-make[1]: Entering directory `C:/minimal/bin'
mingw32-make -f CMakeFiles\minimal.dir\build.make CMakeFiles/minimal.dir/depend
mingw32-make[2]: Entering directory `C:/minimal/bin'
"C:\Programme\CMake 2.6\bin\cmake.exe" -E cmake_depends "MinGW Makefiles" C:\min
imal C:\minimal C:\minimal\bin C:\minimal\bin C:\minimal\bin\CMakeFiles\minimal.
dir\DependInfo.cmake --color=
mingw32-make[2]: Leaving directory `C:/minimal/bin'
mingw32-make -f CMakeFiles\minimal.dir\build.make CMakeFiles/minimal.dir/build
mingw32-make[2]: Entering directory `C:/minimal/bin'
Linking CXX executable minimal.exe
cd C:\minimal\bin && "C:\Programme\CMake 2.6\bin\cmake.exe" -E cmake_link_script
 CMakeFiles\minimal.dir\link.txt --verbose=1
c:\MinGW\bin\g++.exe      CMakeFiles\minimal.dir\minimal.cpp.obj  -o minimal.exe
 -Wl,--out-implib,libminimal.dll.a -Wl,--major-image-version,0,--minor-image-ver
sion,0  C:\wx\wx289\lib\gcc_dll\libwxbase28u.a C:\wx\wx289\lib\gcc_dll\libwxmsw2
8u_core.a C:\wx\wx289\lib\gcc_dll\libwxpng.a C:\wx\wx289\lib\gcc_dll\libwxtiff.a
 C:\wx\wx289\lib\gcc_dll\libwxjpeg.a C:\wx\wx289\lib\gcc_dll\libwxzlib.a C:\wx\w
x289\lib\gcc_dll\libwxregexu.a C:\wx\wx289\lib\gcc_dll\libwxexpat.a -lwinmm -lco
mctl32 -lrpcrt4 -lwsock32
CMakeFiles\minimal.dir\minimal.cpp.obj:minimal.cpp:(.text+0x1a5): undefined refe
rence to `_imp___ZN12wxStringBase8InitWithEPKcjj'
CMakeFiles\minimal.dir\minimal.cpp.obj:minimal.cpp:(.text+0x26c): undefined refe
rence to `_imp___ZN12wxStringBase8InitWithEPKcjj'
CMakeFiles\minimal.dir\minimal.cpp.obj:minimal.cpp:(.text+0x52b): undefined refe
rence to `_imp___ZN12wxStringBase8InitWithEPKcjj'
CMakeFiles\minimal.dir\minimal.cpp.obj:minimal.cpp:(.text+0x559): undefined refe
rence to `_imp___ZN12wxStringBase8InitWithEPKcjj'
CMakeFiles\minimal.dir\minimal.cpp.obj:minimal.cpp:(.text+0x60f): undefined refe
rence to `_imp___ZN12wxStringBase8InitWithEPKcjj'
CMakeFiles\minimal.dir\minimal.cpp.obj:minimal.cpp:(.text+0x63d): more undefined
 references to `_imp___ZN12wxStringBase8InitWithEPKcjj' follow
CMakeFiles\minimal.dir\minimal.cpp.obj:minimal.cpp:(.text+0x1e4d): undefined ref
erence to `_imp___ZN8wxString6FormatEPKcz'
CMakeFiles\minimal.dir\minimal.cpp.obj:minimal.cpp:(.rdata$_ZTV5MyApp[vtable for
 MyApp]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [minimal.exe] Error 1
mingw32-make[2]: Leaving directory `C:/minimal/bin'
mingw32-make[1]: *** [CMakeFiles/minimal.dir/all] Error 2
mingw32-make[1]: Leaving directory `C:/minimal/bin'
mingw32-make: *** [all] Error 2





More information about the CMake mailing list