[CMake] CDash documentation
Hi, This page http://public.kitware.com/Wiki/CDash:Installation says php 5.3 is required while this page http://www.cdash.org/cdash/resources/software.html says php 5.2 or higher. Which one is it (I'm installing it on a OSX 10.5.8 in case that matters. -- Noel ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] How do you go about building the cmake-gui from source in 2.8.4?
> Yeah, I figured that part out indirectly. > > I had to install the QT4 SDK to get the necessary bits, but rcc.exe (Windows > XP, desktop component of QT) fails for no obvious reason. > Did you build that from scratch using Visual Studio 2005 and not any other compiler or version? > > Here is what I posted on the QT installation/deployment forum about the > problem: > > I’m trying to rebuild CMake-gui. Are you trying to modify it for some reason? I also do not see the need to rebuild it. > I’ve gotten to the point where I downloaded > and installed the QT4 SDK, configured CMake for VS 2005 and fired up the > build, which failed when trying to run rcc.exe. When I try to run RCC.EXE > directly from the command prompt, I get: > > The system cannot execute the specified program. > > When I try it from cygwin’s command prompt, I get: > You should not mix cygwin building and visual studio building. What are you doing here? > Permission Denied > > Firing up Dependency Walker, I get an error when opening rcc.exe: > > The side-by-side configuration information for > “…desktop\qt\4.7.3\msvc2005\bin\RCC.EXE” contains errors. This application > has failed to start because the application configuration is incorrect. > Reinstalling the application may fix this problem (14001). > This usually means you do not have the correct run times installed. Did you download the Visual Studio 2008 binary release. That will not work with Visual Studio 2005. You need to build Qt for your compiler. > Which I tried with no joy. > > There are a couple of delay loaded dlls that aren’t present, IESHIMS and > WER, but these appear to be more or less specific to Vista and don’t apply > to XP (which is what I’m running on). > > So how do I get around this? Is this an SDK problem? or something really > obscure in Windoze? I’m not primarily a Windows person so I’m not 100% on > all the ins and outs here, but I would think that the RCC.EXE as installed > by the QT4 SDK installer should at least start on XP. > > Any and all hints will be appreciated. > > Best, > > Dick Munroe > > Any clues? > > On 5/13/11 5:45 AM, cmake-requ...@cmake.org wrote: >> >> Message: 5 >> Date: Thu, 12 May 2011 16:43:04 -0600 >> From: "clin...@elemtech.com " >> Subject: Re: [CMake] How do you go about building the cmake-gui from >> source in 2.8.4? >> To:cmake@cmake.org >> Message-ID:<20110512224256.a45c3129...@mta1.zcs.xmission.com> >> Content-Type: text/plain; charset="utf-8" >> >> It is under Source/QtDialog and the cmake option has QtDialog in its name. >> >> Clint >> >> - Reply message - >> From: "Dick Munroe" >> Date: Thu, May 12, 2011 11:07 am >> Subject: [CMake] How do you go about building the cmake-gui from source in >> 2.8.4? >> To: >> >> The title pretty much says it all. I can't find anything obvious in the >> source tree and I want to rebuild cmake-gui for windows. >> >> tia, >> >> Dick Munroe > > ___ > 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 to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > -- John M. Drescher ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] How do you go about building the cmake-gui from source in 2.8.4?
Yeah, I figured that part out indirectly. I had to install the QT4 SDK to get the necessary bits, but rcc.exe (Windows XP, desktop component of QT) fails for no obvious reason. Here is what I posted on the QT installation/deployment forum about the problem: I’m trying to rebuild CMake-gui. I’ve gotten to the point where I downloaded and installed the QT4 SDK, configured CMake for VS 2005 and fired up the build, which failed when trying to run rcc.exe. When I try to run RCC.EXE directly from the command prompt, I get: The system cannot execute the specified program. When I try it from cygwin’s command prompt, I get: Permission Denied Firing up Dependency Walker, I get an error when opening rcc.exe: The side-by-side configuration information for “…desktop\qt\4.7.3\msvc2005\bin\RCC.EXE” contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). Which I tried with no joy. There are a couple of delay loaded dlls that aren’t present, IESHIMS and WER, but these appear to be more or less specific to Vista and don’t apply to XP (which is what I’m running on). So how do I get around this? Is this an SDK problem? or something really obscure in Windoze? I’m not primarily a Windows person so I’m not 100% on all the ins and outs here, but I would think that the RCC.EXE as installed by the QT4 SDK installer should at least start on XP. Any and all hints will be appreciated. Best, Dick Munroe Any clues? On 5/13/11 5:45 AM, cmake-requ...@cmake.org wrote: Message: 5 Date: Thu, 12 May 2011 16:43:04 -0600 From: "clin...@elemtech.com " Subject: Re: [CMake] How do you go about building the cmake-gui from source in 2.8.4? To:cmake@cmake.org Message-ID:<20110512224256.a45c3129...@mta1.zcs.xmission.com> Content-Type: text/plain; charset="utf-8" It is under Source/QtDialog and the cmake option has QtDialog in its name. Clint - Reply message - From: "Dick Munroe" Date: Thu, May 12, 2011 11:07 am Subject: [CMake] How do you go about building the cmake-gui from source in 2.8.4? To: The title pretty much says it all. I can't find anything obvious in the source tree and I want to rebuild cmake-gui for windows. tia, Dick Munroe ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] CHECK_FUNCTION_EXISTS generates false positive for mlock(etc.)
Hi, I'm examining a problem where cmake on Windows says it has detected a function(with CHECK_FUNCTION_EXISTS) although the compile has failed with a link error(according to the CMakeOutput.log). The check is coded like: INCLUDE(CheckFunctionExists) CHECK_FUNCTION_EXISTS(mlock HAVE_MLOCK) And run on our build host like: $> cmake . -- Looking for mlock -- Looking for mlock - found hmm, why did it find mlock on Windows? $> opening CMakeFiles/CMakeOutput.log Determining if the function mlock exists passed with the following output: Change Dir: G:/pb2/build/sb_2-3326456-1305291464.82/mysql-5.1.56-ndb-7.0.25-win-x86_64/CMakeFiles/CMakeTmp Run Build Command:F:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec Microsoft (R) Visual Studio Version 9.0.30729.1. Copyright (C) Microsoft Corp. All rights reserved. 1>-- Build started: Project: cmTryCompileExec, Configuration: Debug x64 -- 1>Compiling... 1>Microsoft (R) C/C++ Optimizing Compiler Version 15.00.30729.01 for x64 1>Copyright (C) Microsoft Corporation. All rights reserved. 1>cl /Od /D "WIN32" /D "_WINDOWS" /D "CHECK_FUNCTION_EXISTS=mlock" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\" /Fd"G:/pb2/build/sb_2-3326456-1305291464.82/mysql-5.1.56-ndb-7.0.25-win-x86_64/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC /Zm1000 /wd4800 /wd4805 1> "C:\Program Files (x86)\CMake 2.6\share\cmake-2.6\Modules\CheckFunctionExists.c" 1>CheckFunctionExists.c 1>Compiling manifest to resources... 1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1 1>Copyright (C) Microsoft Corporation. All rights reserved. 1>Linking... 1>CheckFunctionExists.obj : error LNK2019: unresolved external symbol mlock referenced in function main 1>G:\pb2\build\sb_2-3326456-1305291464.82\mysql-5.1.56-ndb-7.0.25-win-x86_64\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe : fatal error LNK1120: 1 unresolved externals 1>Build log was saved at "file://g:\pb2\build\sb_2-3326456-1305291464.82\mysql-5.1.56-ndb-7.0.25-win-x86_64\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm" 1>cmTryCompileExec - 2 error(s), 0 warning(s) == Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped == How is this possible? There are more false positive failures like this - but this one was quite obvious (in my opinion). Not sure which exact cmake version(2.6.?), sorry about that. Best regards Magnus Blåudd ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Getting closer building cmake-gui...
Am Freitag, 13. Mai 2011, 17:11:34 schrieb Dick Munroe: > I figured out you had to have the QT4 SDK on the system, downloaded and > installed that. I configure cmake successfully and the cmake gui shows > up in my VS 2005 project. When I try to build it though, the build for > cmake-gui fails when trying to run rcc.exe in the QT4 sdk. > > After some poking around with dependency walker, it appears that two > DLLs aren't installed on my XP system: > > IESHIMS.DLL > WER.DLL > > both of which appear to be related to Vista rather than XP. > > Am I hosed? is this a problem with the QT4 SDK? or is there some way to > get the right DLLs installed? Downloading IESHIMS seems to work find, > but I'm faced with a bunch of different WER implementations, none of > which seem to be for XP. > Why do you want to build cmake by yourself at all? Just use the binary version and all will work as expected... Christian ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Intermediate directory
On Fri, May 13, 2011 at 5:46 AM, gekso wrote: > My problem is to change Intermediate directory and message > (${CMAKE_CFG_INTDIR}) returns "$(Configuration)" to output.. $(Configuration) will be filled in at build time by the IDE with the user-selected configuration. hth, tyler ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Getting closer building cmake-gui...
I figured out you had to have the QT4 SDK on the system, downloaded and installed that. I configure cmake successfully and the cmake gui shows up in my VS 2005 project. When I try to build it though, the build for cmake-gui fails when trying to run rcc.exe in the QT4 sdk. After some poking around with dependency walker, it appears that two DLLs aren't installed on my XP system: IESHIMS.DLL WER.DLL both of which appear to be related to Vista rather than XP. Am I hosed? is this a problem with the QT4 SDK? or is there some way to get the right DLLs installed? Downloading IESHIMS seems to work find, but I'm faced with a bunch of different WER implementations, none of which seem to be for XP. Best, Dick Munroe ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Intermediate directory
CMAKE_BUILD_TYPE - That's what I want for my linux part. And it adds nothing on windows, so it's ok. My problem is to change Intermediate directory and message (${CMAKE_CFG_INTDIR}) returns "$(Configuration)" to output.. 2011/5/13 Michael Wild : > On 05/13/2011 02:26 PM, gekso wrote: >> Hi! I use VS2010 generator. When I'm setting >> set_target_properties (${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY >> ${CMAKE_BINARY_DIR}/__bin/${CMAKE_BUILD_TYPE} >> >> I have in output project file such lines: >> > Condition="'$(Configuration)|$(Platform)'=='release|Win32'">__bin\release\ >> > Condition="'$(Configuration)|$(Platform)'=='release|Win32'">target.dir\release\ >> >> How I can change path to IntDir? I need to set something like >> "_obj\release"... >> Thanks! > > > CMAKE_BUILD_TYPE is only of relevance for single-config generators, such > as GNU Makefile. You'll want to look into the CMAKE_CFG_INTDIR variable. > > Michael > > ___ > 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 to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Intermediate directory
On 05/13/2011 02:26 PM, gekso wrote: > Hi! I use VS2010 generator. When I'm setting > set_target_properties (${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY > ${CMAKE_BINARY_DIR}/__bin/${CMAKE_BUILD_TYPE} > > I have in output project file such lines: > Condition="'$(Configuration)|$(Platform)'=='release|Win32'">__bin\release\ > Condition="'$(Configuration)|$(Platform)'=='release|Win32'">target.dir\release\ > > How I can change path to IntDir? I need to set something like > "_obj\release"... > Thanks! CMAKE_BUILD_TYPE is only of relevance for single-config generators, such as GNU Makefile. You'll want to look into the CMAKE_CFG_INTDIR variable. Michael ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Intermediate directory
Hi! I use VS2010 generator. When I'm setting set_target_properties (${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/__bin/${CMAKE_BUILD_TYPE} I have in output project file such lines: __bin\release\ target.dir\release\ How I can change path to IntDir? I need to set something like "_obj\release"... 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 FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] CTest submit extra-files to CDash - site header issue
Hi I'm going to customize CDash and I want to submit some additional xml files to CDash. I would like to equip those files with "section that is contained on the top within other submitted xml files like: Build.xml, Coverage.xml etc. Is there some standard way to accomplish this goal, or I have to provide this solution by hand and write cmake script. Thx M ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Problem with pkg_check_modules and imlib2
On 13/05/2011 11:03, Michael Hertling wrote: On 05/12/2011 10:40 PM, David Demelier wrote: Hello, I have some trouble to link my project to the imlib2 library. The library is installed correctly and a command like : gcc test.c -o test `pkg-config --libs --cflags imlib2` works and link to imlib2. I have this CMakeLists.txt http://markand.malikania.fr/CMakeLists.txt but it does not work, as you can see it detects fine the library dirs and include dirs : markand@Melon ~/devel/wmfs/build $ cmake .. -- INFO: XDG_CONFIG_DIR set /usr/local/etc/ -- INFO: imlib2 enabled -- INFO: imlib2 under /usr/local/include;/usr/local/include/freetype2 -- INFO: imlib2 under /usr/local/lib -- INFO: imlib2 under Imlib2 But it does not link : markand@Melon ~/devel/wmfs/build $ make Linking C executable wmfs /usr/bin/ld: cannot find -lImlib2 What am I doing wrong? Also the CMakeCache is set with the good parameters : [...] IMLIB2_INCLUDEDIR:INTERNAL=/usr/local/include IMLIB2_INCLUDE_DIRS:INTERNAL=/usr/local/include;/usr/local/include/freetype2 IMLIB2_LIBRARIES:INTERNAL=Imlib2 IMLIB2_LIBRARY_DIRS:INTERNAL=/usr/local/lib IMLIB2_LDFLAGS:INTERNAL=-L/usr/local/lib;-lImlib2 [...] Cheers, Citing from the documentation of LINK_DIRECTORIES(): "The command will apply only to targets created *after* it is called." Thus, I suppose "-L/usr/local/lib" does not appear in the link command for the wmfs target? If so, rearrange your CMakeLists.txt so that wmfs is defined after the LINK_DIRECTORIES() command, or use IMLIB2_LDFLAGS in TARGET_LINK_LIBRARIES() instead of IMLIB2_LIBRARIES, and drop the LINK_DIRECTORIES() command completely. 'hope that helps. Oh I even didn't think the problem can come from link_directories() ! I added it before the add_executable() and it works, thanks! Regards, Michael ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- David Demelier ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Problem with pkg_check_modules and imlib2
On 05/12/2011 10:40 PM, David Demelier wrote: > Hello, > > I have some trouble to link my project to the imlib2 library. The > library is installed correctly and a command like : > > gcc test.c -o test `pkg-config --libs --cflags imlib2` > > works and link to imlib2. > > I have this CMakeLists.txt http://markand.malikania.fr/CMakeLists.txt > but it does not work, as you can see it detects fine the library dirs > and include dirs : > > markand@Melon ~/devel/wmfs/build $ cmake .. > -- INFO: XDG_CONFIG_DIR set /usr/local/etc/ > -- INFO: imlib2 enabled > -- INFO: imlib2 under /usr/local/include;/usr/local/include/freetype2 > -- INFO: imlib2 under /usr/local/lib > -- INFO: imlib2 under Imlib2 > > But it does not link : > > markand@Melon ~/devel/wmfs/build $ make > Linking C executable wmfs > /usr/bin/ld: cannot find -lImlib2 > > What am I doing wrong? Also the CMakeCache is set with the good parameters : > > [...] > IMLIB2_INCLUDEDIR:INTERNAL=/usr/local/include > IMLIB2_INCLUDE_DIRS:INTERNAL=/usr/local/include;/usr/local/include/freetype2 > IMLIB2_LIBRARIES:INTERNAL=Imlib2 > IMLIB2_LIBRARY_DIRS:INTERNAL=/usr/local/lib > IMLIB2_LDFLAGS:INTERNAL=-L/usr/local/lib;-lImlib2 > [...] > > Cheers, Citing from the documentation of LINK_DIRECTORIES(): "The command will apply only to targets created *after* it is called." Thus, I suppose "-L/usr/local/lib" does not appear in the link command for the wmfs target? If so, rearrange your CMakeLists.txt so that wmfs is defined after the LINK_DIRECTORIES() command, or use IMLIB2_LDFLAGS in TARGET_LINK_LIBRARIES() instead of IMLIB2_LIBRARIES, and drop the LINK_DIRECTORIES() command completely. 'hope that helps. Regards, Michael ___ 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 to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake