Re: [CMake] Supressing Make, but not Generators
It's worryingly quiet on this subject. -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Smith Jack (Ext. - UGIS - UniCredit Group) Sent: Tuesday, March 02, 2010 6:31 PM To: cmake@cmake.org Subject: [CMake] Supressing Make, but not Generators I have the following scenario: I have a large project with several sub-projects. I always want CMake run Visual Studio/Nmake/Eclipse specific generators for all the sub-projects so that I may edit any sub-project in my IDE of choice on the platform of choice. BUT when Make (Gmake, Nmake, etc.) is run, to have platform detection occur since some of the sub-projects won't build on all platforms. Is this possible ? ___ 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] Supressing Make, but not Generators
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: Wednesday, March 03, 2010 9:21 AM To: cmake@cmake.org Subject: Re: [CMake] Supressing Make, but not Generators Zitat von Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.ext...@unicreditgroup.de: It's worryingly quiet on this subject. So, just exclude the target that won't build from ALL. I'm afraid you've lost me there. Do I do this within a CMakeLists.txt file ? My current CMakeLists.txt relies upon ADD_SUBDIRECTORY(project_name) in order to generate the build targets. How do I conditionally exclude project_name from ALL in this case ? Thanks, Jack ___ 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] Supressing Make, but not Generators
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of J Decker Sent: Wednesday, March 03, 2010 9:34 AM To: cmake@cmake.org Subject: Re: [CMake] Supressing Make, but not Generators You can test for platform flags.. if( win32 ) add_subdirectory( these_compile ) #... endif( win32 ) or add specific options that can be checked http://www.cmake.org/Wiki/CMake_Useful_Variables Thanks , but that doesn't solve the problem. If I conditionally include a sub directory, then the generator will not be run against the project in that subdirectory. I want to generator (VisualStudio/Eclipse/whatever) to always run so that I may always see the entire project hierarchy within my development environment, but the generated makefile to perform a platform test to see if it should build the target. Is this possible. On Wed, Mar 3, 2010 at 12:27 AM, Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.ext...@unicreditgroup.de wrote: -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler Sent: Wednesday, March 03, 2010 9:21 AM To: cmake@cmake.org Subject: Re: [CMake] Supressing Make, but not Generators Zitat von Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.ext...@unicreditgroup.de: It's worryingly quiet on this subject. So, just exclude the target that won't build from ALL. I'm afraid you've lost me there. Do I do this within a CMakeLists.txt file ? My current CMakeLists.txt relies upon ADD_SUBDIRECTORY(project_name) in order to generate the build targets. How do I conditionally exclude project_name from ALL in this case ? Thanks, Jack ___ 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 ___ 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] Supressing Make, but not Generators
-Original Message- From: Eric Noulard [mailto:eric.noul...@gmail.com] Sent: Wednesday, March 03, 2010 10:51 AM To: Smith Jack (Ext. - UGIS - UniCredit Group) Cc: cmake@cmake.org Subject: Re: [CMake] Supressing Make, but not Generators 2010/3/3 Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.ext...@unicreditgroup.de: -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of J Decker Sent: Wednesday, March 03, 2010 9:34 AM To: cmake@cmake.org Subject: Re: [CMake] Supressing Make, but not Generators You can test for platform flags.. if( win32 ) add_subdirectory( these_compile ) #... endif( win32 ) or add specific options that can be checked http://www.cmake.org/Wiki/CMake_Useful_Variables Thanks , but that doesn't solve the problem. If I conditionally include a sub directory, then the generator will not be run against the project in that subdirectory. I want to generator (VisualStudio/Eclipse/whatever) to always run so that I may always see the entire project hierarchy within my development environment, but the generated makefile to perform a platform test to see if it should build the target. Is this possible. I don't think it is possible. You want to export usual CMake-time decision to Build-time, the specific platform check are not meant to be exported at build time. I'm not even sure it would be wise to try to do it (in the general case) because with add_custom_command/target you may be trying to execute platform specific executable on the wrong platform. I think the EXCLUDE_FROM_ALL proposed by Hendrik and explained by Michael is the best way to go. What to compile will NOT be decided at Build time but you'll be able to browse the code. The CMake design is something like one build tree for one platform what you ask for is more like dynamic build tree for several platform. As a side note I did cross some time ago a build system based on hand-written re-entrant GNU makefile which supported the scheme you described. I was nice but not that easy to maintain compared to a CMake build system. All of this is off course my own point of view :-) -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org Thanks for the response. I think Michael's solution fits my needs (although I haven't yet tested it.) Jack ___ 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] Supressing Make, but not Generators
I have the following scenario: I have a large project with several sub-projects. I always want CMake run Visual Studio/Nmake/Eclipse specific generators for all the sub-projects so that I may edit any sub-project in my IDE of choice on the platform of choice. BUT when Make (Gmake, Nmake, etc.) is run, to have platform detection occur since some of the sub-projects won't build on all platforms. Is this possible ? ___ 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] Visual Studio sub-projects
Does the Cmake Visual Studio generator understand the concept of sub projects. Solution -ProjectA -ProjectB --SubprojectB1 --SubprojectB2 -ProjectC I'd like to have a generated solution such that when opened within visual studio, the subprojects SubprojectB1, and SubprojectB2 are collapsable underneath ProjectB, and don't appear in the solution tree when ProjectB is collapsed. My guess is that such functionality is available within Cmake, but I can't find the documentation for how to do it. 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
Re: [CMake] How to regenerate source file during make?
I do a similar thing with an XSD file from which I generate c++ wrapper classes for accessing the corresponding XML Note the DEPENDS line ! MACRO(XSD FILE NAMESPACE) ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/xml/${FILE}.cpp OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/xml/${FILE}.h DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/xml/${FILE}.xsd COMMAND ${XAPI_CODESYNTH}/bin/xsd ARGS cxx-tree --generate-serialization --hxx-suffix .h --cxx-suffix .cpp --fwd-suffix -fwd.hxx --type-naming java --function-naming java --namespace-map =${NAMESPACE} --generate-polymorphic --output-dir ${CMAKE_CURRENT_SOURCE_DIR}/xml ${CMAKE_CURRENT_SOURCE_DIR}/xml/${FILE}.xsd COMMENT generating Codesynthesis Wrappers) ENDMACRO(XSD) -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Marcel Loose Sent: Friday, January 15, 2010 2:55 PM To: cmake@cmake.org Subject: [CMake] How to regenerate source file during make? Hi all, I've been struggling with this for hours now and I can't seem to get a grip on it. I have a header file that must be (re)generated during 'make' when some external data have changed. I can successfully generate this file during 'cmake' using configure_file(), but I haven't been able to figure out how I can trigger the configure_file() during make. Should I define a target for this header file? Or can I specify some kind of file dependency, such that when the header file is missing our out-of-date, it will be (re)generated? I guess it must be some clever combination of add_custom_command() and add_custom_target(). Best regards, Marcel Loose. ___ 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] Compiler Test Failing on Windows 7
I wrote the batch script that Joe is using - the AMD64 in the build directory path is just a consequence of using %PROCESSOR_ARCHITECTURE% to create the build directory from the batch script and is purely a cosmetic issue. I'm failing to make sense (my fault only) of what's going on with this. Does this imply that %PROCESSOR_ARCHITECTURE% is set to something other than the true architecture of the machine you are running on ? From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Gregory Peele ARA/CFD Sent: Tuesday, January 05, 2010 5:27 PM To: cmake@cmake.org Subject: Re: [CMake] Compiler Test Failing on Windows 7 I wrote the batch script that Joe is using - the AMD64 in the build directory path is just a consequence of using %PROCESSOR_ARCHITECTURE% to create the build directory from the batch script and is purely a cosmetic issue. The CMake generator is what selects whether the build is 32-bit or 64-bit, and we definitely use the 32-bit Visual Studio 2005 generator. Since CMake is a 32-bit process, it sees the system as being 32-bit when processing CMakelists.txt, and is definitely using our configuration settings for 32-bit Windows. I'm especially puzzled by this behavior because the same project builds successfully in 64-bit Vista. Gregory Peele, Jr. Applied Research Associates, Inc. From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Smith Jack (Ext. - UGIS - UniCredit Group) Sent: Tuesday, January 05, 2010 8:51 AM To: cmake@cmake.org Subject: Re: [CMake] Compiler Test Failing on Windows 7 The path is made from a batch script, and cmake is hardcoded to use 32bit on windows in the build scripts. I'm no expert, but it seems like you must have something wrong in the 'batch script' (or your environment). It looks like cmake thinks it's running on a AMD64 based system. I think the OS architecture is *normally* auto-detected, and to mistake a 32 bit OS for a 64 bit one seems like a pretty big error. Have you examined the script to be sure it's not misbehaving under Windows 7 - perhaps a list of known OSes doesn't include Win7 ? From: Joe L [mailto:superist_...@yahoo.com] Sent: Tuesday, January 05, 2010 2:44 PM To: Smith Jack (Ext. - UGIS - UniCredit Group); cmake@cmake.org Subject: Re: [CMake] Compiler Test Failing on Windows 7 I deleted the whole build directory before running the build. There isn't any modifying of the CMakeCache.txt as far as i know. Joe From: Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.ext...@unicreditgroup.de To: cmake@cmake.org cmake@cmake.org Sent: Tue, January 5, 2010 8:24:51 AM Subject: Re: [CMake] Compiler Test Failing on Windows 7 Do you have a stale CMakeCache.txt file somewhere ? It's *usually* perfectly safe to delete all occurrences of CMakeCache.txt within a project and have CMake regenerate them. I say usually, because I have no idea if you are modifying that file for some reason, although the practice is not recommended. From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Joe L Sent: Tuesday, January 05, 2010 2:09 PM To: cmake@cmake.org Subject: [CMake] Compiler Test Failing on Windows 7 After upgrading to windows 7, I'm getting errors when trying to run the cmake project generation step. It seems as though I'm unable to copy a file. I have the directory as a subdirectory of my users folder, so I didn't think it would be a permissions issue. Here is the error: CMake Error: Could not COPY_FILE. OutputFile: '' copyFile: 'C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_C.bin' Unable to find executable for try_compile: tried C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe. CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE): file STRINGS file C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_C.bin cannot be read. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:69 (CMAKE_DETERMINE_COMPILER_ABI) CMakeLists.txt:3 (PROJECT) CMake Error: Could not COPY_FILE. OutputFile: '' copyFile: 'C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin' Unable
Re: [CMake] Does Cmake add 'standard' include paths ?
-Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Alexander Neundorf Sent: Tuesday, January 05, 2010 7:52 PM To: cmake@cmake.org Subject: Re: [CMake] Does Cmake add 'standard' include paths ? On Tuesday 05 January 2010, Smith Jack (Ext. - UGIS - UniCredit Group) wrote: Generally I am using CMake successfully, and am generating makefiles for Linux, Solaris, and Visual Studio 9. I recently used the Eclipse CDT4 - NMake Makefiles generator, and then loaded the resulting project into my Eclipse environment under Windows XP. Which version of CMake, and which version of Eclipse and CDT are you using ? CMake: cmake version 2.6-patch 2 Eclipse Platform: Version: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7 Sorry, I'm not that familiar with Eclipse, how do I check CDT version ? Eclipse then complains about missing include paths. The problem is that I have not specified these 'missing' paths in my CMakeLists.txt, or any file included by them. About which missing include paths does it complain ? About include dirs you did not specify ? Example: Invalid project path: Include path not found (D:\SVN\trunk\MY_PROJECT\SUB_PROJECT\include). project-de...@debug pathentry Path Entry Problem Correct. Nowhere in my CMakeLists.txt files do I add that path to the inlcudes, yet they show up in the generated files. Does Cmake automatically add PROJECT\include to every project include No. paths with the Eclipse generator ? If so, is there a way to suppress this behavior ? Can you create a small example project which shows this issue ? Then I could check whether I can reproduce it under Linux. Alex ___ 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] Does Cmake add 'standard' include paths ?
+Edited for brevity. In the Help menu go to About Eclipse then click on CDT icon this will show you your CDT version. Eclipse C/C++ Development Tools - Mylyn Bridge Version: 5.1.0.200909110608 Build id: 200909110608 Is eclipse OK when you create a CDT project using eclipse (and not using CMake)? I don't see an option for creating a CDT project, does it have another name (besides CDT?) Which generated files? .cproject, .project? I'm opening the generated .project with Eclipse I have tracked down the only location I can find the offending include path The include directives are being done by way of a -ID:\SVN\trunk\MY_PROJECT\subdir\include which is found in a CMake generated file named flags.make which gets created in D:\SVN\trunk\MY_BUILD_DIR\My_PROJECT\subdir\CMakeFiles\subdir.dir Could you send us the corresponding set of CMakeLists.txt That would be difficult because our project structure is relatively complicated, I'd have to include many files in the appropriate directory structure, and I'm not sure my company would allow it. If not may be you can reproduce the problem with a minimal project, then you can send an archive of this minimal project on the list and we will try on our side in order to see what happen. I've tried this, but I'm not having much luck, I'll spend some more time on it. ___ 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] Does Cmake add 'standard' include paths ?
Never Mind, I found the errant include directive. I do apologize. -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Smith Jack (Ext. - UGIS - UniCredit Group) Sent: Thursday, January 07, 2010 9:34 AM To: cmake@cmake.org Subject: Re: [CMake] Does Cmake add 'standard' include paths ? -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Alexander Neundorf Sent: Tuesday, January 05, 2010 7:52 PM To: cmake@cmake.org Subject: Re: [CMake] Does Cmake add 'standard' include paths ? On Tuesday 05 January 2010, Smith Jack (Ext. - UGIS - UniCredit Group) wrote: Generally I am using CMake successfully, and am generating makefiles for Linux, Solaris, and Visual Studio 9. I recently used the Eclipse CDT4 - NMake Makefiles generator, and then loaded the resulting project into my Eclipse environment under Windows XP. Which version of CMake, and which version of Eclipse and CDT are you using ? CMake: cmake version 2.6-patch 2 Eclipse Platform: Version: 3.5.1.R35x_v20090910-9gEeG1_FthkNDSP2odXdThaOu9GFDPn83DGB7 Sorry, I'm not that familiar with Eclipse, how do I check CDT version ? Eclipse then complains about missing include paths. The problem is that I have not specified these 'missing' paths in my CMakeLists.txt, or any file included by them. About which missing include paths does it complain ? About include dirs you did not specify ? Example: Invalid project path: Include path not found (D:\SVN\trunk\MY_PROJECT\SUB_PROJECT\include). project-de...@debug pathentry Path Entry Problem Correct. Nowhere in my CMakeLists.txt files do I add that path to the inlcudes, yet they show up in the generated files. Does Cmake automatically add PROJECT\include to every project include No. paths with the Eclipse generator ? If so, is there a way to suppress this behavior ? Can you create a small example project which shows this issue ? Then I could check whether I can reproduce it under Linux. Alex ___ 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 ___ 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] Does Cmake add 'standard' include paths ?
Generally I am using CMake successfully, and am generating makefiles for Linux, Solaris, and Visual Studio 9. I recently used the Eclipse CDT4 - NMake Makefiles generator, and then loaded the resulting project into my Eclipse environment under Windows XP. Eclipse then complains about missing include paths. The problem is that I have not specified these 'missing' paths in my CMakeLists.txt, or any file included by them. Does Cmake automatically add PROJECT\include to every project include paths with the Eclipse generator ? If so, is there a way to suppress this behavior ? ___ 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] Compiler Test Failing on Windows 7
Do you have a stale CMakeCache.txt file somewhere ? It's *usually* perfectly safe to delete all occurrences of CMakeCache.txt within a project and have CMake regenerate them. I say usually, because I have no idea if you are modifying that file for some reason, although the practice is not recommended. From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Joe L Sent: Tuesday, January 05, 2010 2:09 PM To: cmake@cmake.org Subject: [CMake] Compiler Test Failing on Windows 7 After upgrading to windows 7, I'm getting errors when trying to run the cmake project generation step. It seems as though I'm unable to copy a file. I have the directory as a subdirectory of my users folder, so I didn't think it would be a permissions issue. Here is the error: CMake Error: Could not COPY_FILE. OutputFile: '' copyFile: 'C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_C.bin' Unable to find executable for try_compile: tried C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe. CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE): file STRINGS file C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_C.bin cannot be read. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:69 (CMAKE_DETERMINE_COMPILER_ABI) CMakeLists.txt:3 (PROJECT) CMake Error: Could not COPY_FILE. OutputFile: '' copyFile: 'C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin' Unable to find executable for try_compile: tried C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe. CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE): file STRINGS file C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin cannot be read. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:62 (CMAKE_DETERMINE_COMPILER_ABI) CMakeLists.txt:3 (PROJECT) Even though the path says AMD64, it's doing a 32-bit build. The path is made from a batch script, and cmake is hardcoded to use 32bit on windows in the build scripts. Any ideas on what the problem might be? Thanks, Joe ___ 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] Compiler Test Failing on Windows 7
The path is made from a batch script, and cmake is hardcoded to use 32bit on windows in the build scripts. I'm no expert, but it seems like you must have something wrong in the 'batch script' (or your environment). It looks like cmake thinks it's running on a AMD64 based system. I think the OS architecture is *normally* auto-detected, and to mistake a 32 bit OS for a 64 bit one seems like a pretty big error. Have you examined the script to be sure it's not misbehaving under Windows 7 - perhaps a list of known OSes doesn't include Win7 ? From: Joe L [mailto:superist_...@yahoo.com] Sent: Tuesday, January 05, 2010 2:44 PM To: Smith Jack (Ext. - UGIS - UniCredit Group); cmake@cmake.org Subject: Re: [CMake] Compiler Test Failing on Windows 7 I deleted the whole build directory before running the build. There isn't any modifying of the CMakeCache.txt as far as i know. Joe From: Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.ext...@unicreditgroup.de To: cmake@cmake.org cmake@cmake.org Sent: Tue, January 5, 2010 8:24:51 AM Subject: Re: [CMake] Compiler Test Failing on Windows 7 Do you have a stale CMakeCache.txt file somewhere ? It's *usually* perfectly safe to delete all occurrences of CMakeCache.txt within a project and have CMake regenerate them. I say usually, because I have no idea if you are modifying that file for some reason, although the practice is not recommended. From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Joe L Sent: Tuesday, January 05, 2010 2:09 PM To: cmake@cmake.org Subject: [CMake] Compiler Test Failing on Windows 7 After upgrading to windows 7, I'm getting errors when trying to run the cmake project generation step. It seems as though I'm unable to copy a file. I have the directory as a subdirectory of my users folder, so I didn't think it would be a permissions issue. Here is the error: CMake Error: Could not COPY_FILE. OutputFile: '' copyFile: 'C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_C.bin' Unable to find executable for try_compile: tried C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe. CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE): file STRINGS file C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_C.bin cannot be read. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:69 (CMAKE_DETERMINE_COMPILER_ABI) CMakeLists.txt:3 (PROJECT) CMake Error: Could not COPY_FILE. OutputFile: '' copyFile: 'C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin' Unable to find executable for try_compile: tried C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe and C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe. CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE): file STRINGS file C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin cannot be read. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:62 (CMAKE_DETERMINE_COMPILER_ABI) CMakeLists.txt:3 (PROJECT) Even though the path says AMD64, it's doing a 32-bit build. The path is made from a batch script, and cmake is hardcoded to use 32bit on windows in the build scripts. Any ideas on what the problem might be? Thanks, Joe ___ 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 to deal with make uninstall ?
Óscar Fuentes wrote: Group [EMAIL PROTECTED] writes: [snip] When I use make install, everything do as I wanted. But I can't use make uninstall. How to deal with it? http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F And I hope you can give me more links about cmake tutorial. http://www.cmake.org/Wiki/CMake#Tutorials Okay, Thank you, very much! ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake
[CMake] How to deal with make uninstall ?
Hello, I'm a newbie of cmake. In a simple project, I worte the CMakelists.txt file like this: cmake_minimum_required(VERSION 2.6) PROJECT(FREERECITE) ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(dict) INSTALL(FILES ../bin/FreeRecite-core DESTINATION bin) INSTALL(FILES COPYRIGHT README DESTINATION share/doc/FreeRecite) INSTALL(DIRECTORY dict/ DESTINATION share) ;;; When I use make install, everything do as I wanted. But I can't use make uninstall. How to deal with it? And I hope you can give me more links about cmake tutorial. Thanks. Kermit ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake