Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Hendrik Sattler
Am Sonntag, 27. Juli 2008 02:27:40 schrieb Alan W. Irwin: On 2008-07-26 16:06-0400 Bob Paddock wrote: find_library( MinGW_libuuid uuid ole32 shell32 C:/MinGW/lib ) find_library( MinGW_libole32 ole32 C:/MinGW/lib ) find_library( MinGW_libshell32 shell32 C:/MinGW/lib ) # Is there a better

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Hendrik Sattler
Am Sonntag, 27. Juli 2008 13:58:06 schrieb Werner Smekal: And what is the reason to find .dll files on Windows when searching for a library file, most likely to link to? Well, the MinGW compiler doesn't need a foo.a file to link against a foo.dll file - if foo.dll was created with MinGW

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Werner Smekal
Hi Hendrik, And what is the reason to find .dll files on Windows when searching for a library file, most likely to link to? Well, the MinGW compiler doesn't need a foo.a file to link against a foo.dll file - if foo.dll was created with MinGW itself. Therefore it makes sense. If the foo.dll

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Miguel A. Figueroa-Villanueva
On Sat, Jul 26, 2008 at 9:58 PM, Bill Hoffman wrote: Bob Paddock wrote: On Saturday 26 July 2008 03:28:59 pm Miguel A. Figueroa-Villanueva wrote: My project needs to link against C:\MinGW\lib\libuuid.a, amoung others, but it is not being found. I tried this: find_library( MinGW_Libraries

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Bob Paddock
Something like this: if(MINGW) target_link_libraries(foo uuid ole32 shell32) endif(MINGW) Bob, If the above worked, if( MINGW ) TARGET_LINK_LIBRARIES( part_description_aggregator ${wxWidgets_LIBRARIES} TinyXPath uuid ole32 shell32 ) else( MINGW ) TARGET_LINK_LIBRARIES(

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Bob Paddock
For system libraries like this it is often better to just link them in with -l. The compiler should be able to find them if it is installed correctly. MinGW is installed in standard fashion. Nothing unusual there. No environment variables, like LIB etc., are set that might cause problems.

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Miguel A. Figueroa-Villanueva
On Sun, Jul 27, 2008 at 8:28 AM, Bob Paddock wrote: Something like this: if(MINGW) target_link_libraries(foo uuid ole32 shell32) endif(MINGW) Bob, If the above worked, if( MINGW ) TARGET_LINK_LIBRARIES( part_description_aggregator ${wxWidgets_LIBRARIES} TinyXPath uuid ole32

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Bob Paddock
Make sure you build the no debug version of wxWidgets I built all four versions. debug/release unicode/ansi. Fatal Error: Mismatch between the program and library build versions detected. The library used 2.8 (debug,ANSI,compiler with C++ ABI 1002,wx containers,compatible with 2.6),

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Miguel A. Figueroa-Villanueva
On Sun, Jul 27, 2008 at 11:58 AM, Bob Paddock wrote: Make sure you build the no debug version of wxWidgets I built all four versions. debug/release unicode/ansi. Fatal Error: Mismatch between the program and library build versions detected. The library used 2.8 (debug,ANSI,compiler with

[CMake] duplicate symbol error in Mac os X 10.5

2008-07-27 Thread Manuel Ricardo Galindo
Hello All I am trying to start testing an application i developed on Mac Os X 10.5. The application uses ITK,VTK and Qt. The problem is that using the same CMakeLists.cmake it compiles and links perfectly in VC7 but it gives me the following error when i try to build it using XCode ld:

[CMake] Avoiding duplicate messages

2008-07-27 Thread Alan W. Irwin
On 2008-07-27 14:09+0200 Hendrik Sattler wrote: PS: Please to not send replies to me _and_ the list, just to the list is completely sufficient. An MUA that understands mailing lists can help here. Hendrik, if you are objecting to duplicate messages (which I agree would be annoying to

Re: [CMake] XCode generator and cross-compilation

2008-07-27 Thread Alexander Neundorf
On Friday 25 July 2008, Emmanuel Blot wrote: Until now only the makefile-based generators have been tested for cross compiling. XCode probably doesn't work. I have no idea how hard it would be to support cross compiling with XCode. Ok. I've tried to find some information about

Re: [CMake] Recursive custom target

2008-07-27 Thread Alexander Neundorf
On Friday 25 July 2008, Boris Boesler wrote: This seems to be a FAQ (http://www.cmake.org/pipermail/cmake/2003-May/003799.html ) but I can't find a proper solution for cmake 2.6-patch 0. In cmake 2.4 I used ADD_CUSTOM_TARGET() in each CMakeLists.txt file in every subdirectory where this

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Bob Paddock
On Sunday 27 July 2008 01:51:37 pm Miguel A. Figueroa-Villanueva wrote: Fatal Error: Mismatch between the program and library build versions detected. The library used 2.8 (debug,ANSI,compiler with C++ ABI 1002,wx containers,compatible with 2.6), and your program used 2.8 (no

Re: [CMake] Finding MinGW compiler libraries?

2008-07-27 Thread Bob Paddock
Non-Unicode version of program is working now, at least as far as CMake issues are concerned. So on to the Unicode problem. wxWidgets_CONFIGURATION == mswu (msw unicode non-debug) wxWidgets_CONFIGURATION mswu wxWidgets_LIB_DIR C:/wxWidgets-2.8.8/lib/gcc_lib wxWidgets_ROOT_DIR