[CMake] CMake needs tmp directory manually created for GCC to work

2011-04-04 Thread michael kapelko
Hello. I'm using Cygwin as a shell, and MinGW as a compiler. I'm experiencing a weird build problem with CMake. Steps to reproduce the problem. 1. Install Cygwin with standard packages. 2. Download and unpack the following MinGW archives into C:/MinGW: - [binutils-2.21-2-mingw32-bin.tar.lzma h

[CMake] How to specify certain lib to be linked with before others? (QtOpenGL related)

2010-02-08 Thread michael kapelko
Hello. I'm building an app with Qt4 that uses Horde3D under Linux. This app only works when -lHorde3D is specified *before* -lGL for linkage. By default, CMake puts -lGL before -lHorde3D, probably because I link with -lHorde3D as TARGET_LINK_LIBRARIES(test Horde3D) and -lGL is added by Qt4 CMake mo

Re: [CMake] How to specify certain lib to be linked with before others? (QtOpenGL related)

2010-02-08 Thread michael kapelko
2010/2/9 michael kapelko : > Hello. > I'm building an app with Qt4 that uses Horde3D under Linux. This app > only works when -lHorde3D is specified *before* -lGL for linkage. By > default, CMake puts -lGL before -lHorde3D, probably because I link > with -lHorde3D as TARGET

[CMake] How to make CPACK_NSIS_MODIFY_PATH work without TARGETS?

2009-04-19 Thread michael kapelko
I have the following CMakeLists.txt to create installer of several DLLs I need to ship with my application: CMAKE_MINIMUM_REQUIRED(VERSION 2.6) CMAKE_POLICY(VERSION 2.6) # Variables SET(SBILIB_TITLE sbiLib) SET(SBILIB_VERSION 1.0) # Project name PROJECT(SBILIB) # Install INSTALL( FI

Re: [CMake] How to make CPACK_NSIS_MODIFY_PATH work without TARGETS?

2009-04-24 Thread michael kapelko
I found out it's not TARGETS, but DESTINATION that matters for CPACK_NSIS_MODIFY_PATH to work. When I set DESTINATION to bin rather than libW32, it's added to Windows PATH without a problem. That's really strange. ___ Powered by www.kitware.com Visit

[CMake] How to #undef?

2009-10-02 Thread michael kapelko
Hello. add_definitions(-Uflag) does not help. how to #undef then? Thanks. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FA

[CMake] Cannot create shared lib under Windows, the error message is unreadable

2009-10-03 Thread michael kapelko
Hello. I'm trying to build Lightfeather: http://kornerr.alfamoon.com/download/lightfeather.Z_I_P with the following CMakeLists.txt: http://kornerr.alfamoon.com/download/CMakeLists.txt The shared libLightfeather.so builds just fine under Linux. But does not under Winsows XP with latest MinGW.

Re: [CMake] Cannot create shared lib under Windows, the error message is unreadable

2009-10-03 Thread michael kapelko
I installed Windows XP ENU and finally got the error message. It is "The parameter is incorrect" for linking. When I run it as 'mingw32-make VERBOSE=1' the cmd causing error is: http://kornerr.alfamoon.com/lf/cmake_cmd.txt Is there anything wrong with that? Or is it cmd line param length restricti

Re: [CMake] Cannot create shared lib under Windows, the error message is unreadable

2009-10-04 Thread michael kapelko
I tried MSYS and it didn't work. The same error arises: Linking CXX shared library libLightfeather.dll /bin/sh: C:/MinGW/bin/c++.exe: Bad file number make[2]: *** [libLightfeather.dll] Error 126 make[1]: *** [CMakeFiles/Lightfeather.dir/all] Error 2 make: *** [all] Error 2 I'm at a lost what to

Re: [CMake] Cannot create shared lib under Windows, the error message is unreadable

2009-10-04 Thread michael kapelko
version 2.6.4 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link

Re: [CMake] Cannot create shared lib under Windows, the error message is unreadable

2009-10-05 Thread michael kapelko
I've tried "Unix Makefiles", "MSYS Makefiles". Both produced "Bad argument number" error during linkage. I cannot use "MinGW Makefiles" within MSYS, because CMake complains, that MinGW's make won't work when sh.exe is in the PATH. When I remove sh.exe from the PATH, not a single command works in

Re: [CMake] Cannot create shared lib under Windows, the error message is unreadable

2009-10-05 Thread michael kapelko
I tried to change cmGlobalMSYSGenerator and to use "MinGW Makefiles" in MSYS the way you suggested. Nothing helped. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please ke