Re: [CMake] Finding MinGW compiler libraries?

2008-08-17 Thread Bob Paddock
Now do I tell CMake/FINDWXW that this is a wxWidgets *console* application? This requires different compiler/linker flags. Compare the minimal/makefile.gcc to the console/makefile.gcc. console make does at least this: -DwxUSE_GUI=0 for CXX flags, which is easy enough to do with ADD_DEFINITION.

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

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

[CMake] Finding MinGW compiler libraries?

2008-07-26 Thread Bob Paddock
What is the correct way to find MinGW compiler libraries, when not using MSYS? 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 uuid ) but that did not find it. The only way I could find to link my

Re: [CMake] Finding MinGW compiler libraries?

2008-07-26 Thread Miguel A. Figueroa-Villanueva
On Sat, Jul 26, 2008 at 11:28 AM, Bob Paddock wrote: What is the correct way to find MinGW compiler libraries, when not using MSYS? 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 uuid )

Re: [CMake] Finding MinGW compiler libraries?

2008-07-26 Thread Bob Paddock
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 uuid ) find_library(MinGW_Libraries uuid C:/MinGW/lib) Does this

Re: [CMake] Finding MinGW compiler libraries?

2008-07-26 Thread 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 way to do the above? What happens when you have dozens of #

Re: [CMake] Finding MinGW compiler libraries?

2008-07-26 Thread Bill Hoffman
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 uuid ) find_library(MinGW_Libraries uuid C:/MinGW/lib)