Re: [CMake] cmake and wxwidgets on windows

2008-11-22 Thread Werner Smekal
Hi Miguel, Well, it seems that UNICODE and _UNICODE are platform defined and if these have been defined, then wxUSE_UNICODE is forced. As a wxWidgets user you should set the wxUSE_UNICODE if you need UNICODE support. Now the question remains: Should we set wxUSE_UNICODE in the

Re: [CMake] cmake and wxwidgets on windows

2008-11-06 Thread John
hi miguel, just asked on the wxwidgets mailing list. Since I always post via gmane webinterface I couldn't set you on cc. but here is the link: http://thread.gmane.org/gmane.comp.lib.wxwidgets.general/62718 John ___ CMake mailing list CMake@cmake.org

Re: [CMake] cmake and wxwidgets on windows

2008-11-04 Thread Miguel A. Figueroa-Villanueva
On Tue, Nov 4, 2008 at 4:44 AM, Werner Smekal wrote: 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

Re: [CMake] cmake and wxwidgets on windows

2008-11-04 Thread Werner Smekal
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

Re: [CMake] cmake and wxwidgets on windows

2008-11-04 Thread Werner Smekal
Hi John, hi Werner, thanks for your help so far. I also googled and already tried the hint you mentioned, without effort. So I'll go for the wxwidgets mailing list. Thanks again for your help. as Vadium wrote on the wxWidgets mailing list - try to put the winundef.h immediately after

Re: [CMake] cmake and wxwidgets on windows

2008-11-04 Thread Miguel A. Figueroa-Villanueva
On Tue, Nov 4, 2008 at 12:32 PM, Werner Smekal wrote: Hi Miguel, Thanks Werner. However, I'm not sure what the correct solution is... I googled a bit and can't find any documentation indicating that _UNICODE needs to be defined. From the following link:

Re: [CMake] cmake and wxwidgets on windows

2008-11-04 Thread John
Werner Smekal [EMAIL PROTECTED] writes: 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

Re: [CMake] cmake and wxwidgets on windows

2008-11-03 Thread John
hi Miguel, thanks for your help. I changed the CMakeLists now according to your suggestions and CMake finds wxwidgets now also for the minimal sample. how the CMakeLists.txt now looks like, you can also find below. as already said CMake finds wxwidgets and I can configure and generate a

Re: [CMake] cmake and wxwidgets on windows

2008-11-03 Thread John
Werner Smekal [EMAIL PROTECTED] 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

Re: [CMake] cmake and wxwidgets on windows

2008-11-03 Thread Werner Smekal
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

Re: [CMake] cmake and wxwidgets on windows

2008-11-03 Thread Werner Smekal
Hi John, we see that the unicode build is linked into minimal.exe. Please run mingw32-make clean mingw32-make VERBOSE=1 and send the output to the list, so that we can see how minimal.cpp is compiled :). I don't have the unicode built compiled here on Win32, but if I run mingw32-make -f

Re: [CMake] cmake and wxwidgets on windows

2008-10-31 Thread Werner Smekal
Hi John, hi Miguel, seems that I resolved the problem with CMake not finding wxWidgets. There must have been a problem while building wxWidgets on my machine. As I installed wxPack now, CMake finds wxWidgets. A 400mb download is just an overkill if you only want to use one compiler. They

Re: [CMake] cmake and wxwidgets on windows

2008-10-31 Thread Miguel A. Figueroa-Villanueva
On Fri, Oct 31, 2008 at 4:17 AM, Werner Smekal wrote: Hi John, hi Miguel, seems that I resolved the problem with CMake not finding wxWidgets. There must have been a problem while building wxWidgets on my machine. As I installed wxPack now, CMake finds wxWidgets. A 400mb download is just

Re: [CMake] cmake and wxwidgets on windows

2008-10-30 Thread Miguel A. Figueroa-Villanueva
On Wed, Oct 29, 2008 at 1:08 PM, John [EMAIL PROTECTED] wrote: hi, I'm trying to compile my code on windows with cmake. I use wxwidgets 2.8.9. which works on linux without any problem. However on windows cmake does not find the wxwidgets packages. What can be wrong? I set the environment

Re: [CMake] cmake and wxwidgets on windows

2008-10-30 Thread John
hi Miguel, updating the FindwxWidgets has helped a little bit. Now wx_LIB_DIR is found. but nothing has changed that wxwidgets is still not found. see this screenshots to illustrate my problem. http://www.perlproductions.at/downloads/cmake_error.jpeg

Re: [CMake] cmake and wxwidgets on windows

2008-10-30 Thread Werner Smekal
Hi John, uncomment the debug message output in FindwxWidgets.cmake: # Helper macro to control the debugging output globally. There are # two versions for controlling how verbose your output should be. MACRO(DBG_MSG _MSG) MESSAGE(STATUS

Re: [CMake] cmake and wxwidgets on windows

2008-10-30 Thread John
Hi Werner I uncommented the lines you mentioned, which gives me the output posted below. I use mingw. Maybe you see what the problem is. I'll have a look at FindwxWidgets.cmake and try to resolve the problem. John -- C:/Programme/CMake 2.6/share/cmake-2.6/Modules/FindwxWidgets.cmake(156): wxWi

Re: [CMake] cmake and wxwidgets on windows

2008-10-30 Thread Miguel A. Figueroa-Villanueva
On Thu, Oct 30, 2008 at 4:59 PM, John wrote: Hi Werner I uncommented the lines you mentioned, which gives me the output posted below. I use mingw. Maybe you see what the problem is. I'll have a look at FindwxWidgets.cmake and try to resolve the problem. From the output, I presume that you

Re: [CMake] cmake and wxwidgets on windows

2008-10-30 Thread John
hi Miguel, seems that I resolved the problem with CMake not finding wxWidgets. There must have been a problem while building wxWidgets on my machine. As I installed wxPack now, CMake finds wxWidgets. However since then a new error appears. I've got a lot of undefined reference to

Re: [CMake] cmake and wxwidgets on windows

2008-10-30 Thread Bill Hoffman
John wrote: C:\wx2.8\lib\gcc_lib\libwxbase28.a(baselib_thread.o) (.eh_frame+0x12):thread.cpp||undefined reference to `__gxx_personality_v0'| That really looks like you are mixing different versions of gcc compilers... Did you compiler everything with the same compiler? -Bill