Re: [CMake] message could not create named generator CodeBlocks -MinGW Makefiles

2012-02-17 Thread pasparis


Hello Eric,thank you for your suggestions and supportI am going to try to detail more what I did:- Install CMake on Program Files/CMake 2.8/bin- Install CodeBlocks with its windows installer at the same time he asks if we want the gcc compiler I said okand he installed MinGW in Program Files/CodeBlocks/MinGW- as you suggested he didn't set the path variable so now the path variable are:C:\Program Files\CMake 2.8\bin;C:\Program Files\CodeBlocks\MinGW;- I created a codeblock printhello project named pCMakethen at this step I didn't know what to do exactly:First Attempt:I put a CMakeLists.txt file in the codeblocks "Others" folders with the file containing:cmake_minimum_required(2.8)project(pCMake)add_executable(pCMake main.cpp)and in the Project Properties/Project Settings : I set :Makefile:CMakeLists and check "This is a custom MakeFile"I run a build and get the Result:Running command: make.exe -f CMakeLists DebugExecution of 'make.exe -f CMakeLists Debug' in 'C:\pCMake' failed.Second Attempt:use CMake cmake-gui interface where is the source code:C:\pCMakewhere to buid the binaries:C:\pCMakeI push the button: Generatespecify the generator for this project:select in the combo :CodeBlocks-MinGW MakeFilescheck Use Default native compilersresult:CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  cmake_minimum_required called with unknown argument "2.8".


CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.thanks again if you can suggest somethingpascal
 Message d'origine 
De : "Eric Noulard" eric.noul...@gmail.com
À : paspa...@noos.fr
Objet : Re: [CMake] message could not create named generator CodeBlocks -MinGW Makefiles
Date : 17/02/2012 09:47:43 CET
Copie à : cmake@cmake.org

2012/2/16  paspa...@noos.fr:
  Hello,
 
  I am trying to use CMake with codeblocks on windows, I created a simple
  project in the folder pCMake
  when I use the CMake interface I got the message:
 
 You mean "graphical interface" where you select the generator from a list?
 
  CMake Error: CMake was unable to find a build program corresponding to
  "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to
  select a different build tool.
 
  and following the tutorial from florian-goujeon (CMake,CodeBlock), it's
  advise to execute a cmake --help from a console in the project folder in
  order to get the generator list
  codeblocks -MinGW Makefiles is listed but when I execute
  cMake . -G"CodeBlocks -MinGW Makefiles" I get also the following message
  CMake Error:could not create names generator CodeBlocks -MinGW Makefiles
 
 There must be a typo in the generator name you used, something like a
 missing space after
 the dash '-' or something similar.
 
  I installed codeblocks with the windows installer with gcc compiler and
  cmake with the windows installer
 
  I don't know what to do, any suggestions will be very helpful
 
 From your first error message
  CMake was unable to find a build program corresponding to
  "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set.
 
 I would say that CMake is not finding mingw make program because it is
 not in your PATH.
 Did you add mingw tools to your path after installing Code::Blocks?
 I don't remember whether if Code::Blocks does that by itself or not.
 
 -- 
 Erk
 Membre de l'April - « promouvoir et défendre le logiciel libre » -
 http://www.april.org
 


--

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] message could not create named generator CodeBlocks -MinGW Makefiles

2012-02-17 Thread pasparis


thank you Eric, I try to do what you explained,I don't if I got it correctlyI got the same message, may I miss something OK I see, this is not the way it works.
 1) You write a CMakeLists.txt and associated C/C++ files in a folder
 2) You create another directory
 3) You ask CMake to **generate** the Code Blocks project from the 
 CMakeLists.txtI did the following things:1-create a folder pCMake1 and put CMakeLists.txt and main.cpp2-create a bin foler in pCMake13-run cmake-gui and put source code c:/pCMake1binaries c:/pCMakes1/Binthen push Generate it asks:specify generator : CodeBlocks -MinGW MakesFilescheck use default native compilerI check that the path variable are there CMake2.8 and CodeBlocks/MinGWand I get:CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
 Message d'origine 
De : "Eric Noulard" eric.noul...@gmail.com
À : paspa...@noos.fr
Objet : Re: Re: [CMake] message could not create named generator CodeBlocks -MinGW Makefiles
Date : 17/02/2012 13:18:15 CET
Copie à : cmake@cmake.org

2012/2/17  paspa...@noos.fr:
  Hello Eric,
 
  thank you for your suggestions and support
 
  I am going to try to detail more what I did:
 
  - Install CMake on Program Files/CMake 2.8/bin
  - Install CodeBlocks with its windows installer at the same time he asks 
 if
  we want the gcc compiler I said ok
  and he installed MinGW in Program Files/CodeBlocks/MinGW
  - as you suggested he didn't set the path variable so now the path 
 variable
  are:
  C:\Program Files\CMake 2.8\bin;C:\Program Files\CodeBlocks\MinGW;
  - I created a codeblock printhello project named pCMake
 
  then at this step I didn't know what to do exactly:
 
  First Attempt:
  I put a CMakeLists.txt file in the codeblocks "Others" folders with the 
 file
  containing:
  cmake_minimum_required(2.8)
  project(pCMake)
  add_executable(pCMake main.cpp)
 
  and in the Project Properties/Project Settings : I set :
  Makefile:CMakeLists and check "This is a custom MakeFile"
 
 OK I see, this is not the way it works.
 1) You write a CMakeLists.txt and associated C/C++ files in a folder
 2) You create another directory
 3) You ask CMake to **generate** the Code Blocks project from the 
 CMakeLists.txt
 
 May be you could read the beginning of thoses documents:
 http://www.cmake.org/cmake/help/cmake_tutorial.html
 https://github.com/TheErk/CMake-tutorial/raw/master/CMake-tutorial-8feb2012.p
 df
 
 in order to have a better idea of the CMake workflow.
 
 
  Second Attempt:
  use CMake cmake-gui interface
  where is the source code:C:\pCMake
  where to buid the binaries:C:\pCMake
 
 It is better habit to have separate directories for sources and binaries.
 see:
 http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees
 
 
  I push the button: Generate
  specify the generator for this project:
  select in the combo :CodeBlocks-MinGW MakeFiles
  check Use Default native compilers
 
  result:
  CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
 
  cmake_minimum_required called with unknown argument "2.8"
 
 you have a syntax error in your CMakeLists.txt
 you should write
 cmake_minimum_required(VERSION 2.8)
 
 read on the documentation:
 http://www.cmake.org/cmake/help/documentation.html
 
  CMake Error: CMake was unable to find a build program corresponding to
  "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to
  select a different build tool.
 
 find "make.exe" program in your Code::Blocks install and add the path to it
 to your PATH.
 
 
 
 -- 
 Erk
 Membre de l'April - « promouvoir et défendre le logiciel libre » -
 http://www.april.org
 


--

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] message could not create named generator CodeBlocks -MinGW Makefiles

2012-02-17 Thread pasparis


Eric thank you very much it was also your last suggestions which was rigththe compiler is placed in a bin folder of MinGWthe generation is done,I have to continue in codeblocks nowthanks againpascal
 Message d'origine 
De : "Eric Noulard" eric.noul...@gmail.com
À : paspa...@noos.fr
Objet : Re: Re: Re: [CMake] message could not create named generator CodeBlocks -MinGW Makefiles
Date : 17/02/2012 22:00:58 CET
Copie à : cmake@cmake.org

2012/2/17  paspa...@noos.fr:
  thank you Eric, I try to do what you explained,I don't if I got it
  correctly
  I got the same message, may I miss something
 
 
  OK I see, this is not the way it works.
  1) You write a CMakeLists.txt and associated C/C++ files in a folder
  2) You create another directory
  3) You ask CMake to **generate** the Code Blocks project from the
  CMakeLists.txt
 
  I did the following things:
  1-create a folder pCMake1 and put CMakeLists.txt and main.cpp
  2-create a bin foler in pCMake1
  3-run cmake-gui and put
  source code c:/pCMake1
  binaries c:/pCMakes1/Bin
 
 that part is ok.
 
  then push Generate it asks:
  specify generator : CodeBlocks -MinGW MakesFiles
  check use default native compiler
 
  I check that the path variable are there CMake2.8 and CodeBlocks/MinGW
 
 PATH should contains path to make.exe and gcc.exe
 
 Is make.exe  in CodeBlocks/MinGW ?
 May be it is not there but in a subdirectory of CodeBlocks/MinGW?
 
 Please avoid complete top-posting this make the message less readable.
 -- 
 Erk
 Membre de l'April - « promouvoir et défendre le logiciel libre » -
 http://www.april.org
 


--

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] message could not create named generator CodeBlocks -MinGW Makefiles

2012-02-16 Thread pasparis


Hello,I am trying to use CMake with codeblocks on windows, I created a simple project in the folder pCMakewhen I use the CMake interface I got the message:CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.and following the tutorial from florian-goujeon (CMake,CodeBlock), it's advise to execute a cmake --help from a console in the project folder in order to get the generator listcodeblocks -MinGW Makefiles is listed but when I executecMake . -G"CodeBlocks -MinGW Makefiles" I get also the following messageCMake Error:could not create names generator CodeBlocks -MinGW MakefilesI installed codeblocks with the windows installer with gcc compiler and cmake with the windows installerI don't know what to do, any suggestions will be very helpful


--

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] no rule to make target ' ' needed by- with RCpp and not mysql++

2012-01-24 Thread pasparis


Hellosereral days ago I got from Eric in the mail list the way to link mysql++ in kdevelop with cmake. it works fine but as soon asI want to do the same thing with RCpp and RInside two libraries which manage a link between C++ and the R software when I compile the main prog I getmake[3]: *** No rule to make target `/usr/lib/R/site-library/Rcpp/lib/libRCpp.so', needed by `pkdr1'. Stop.I don't understand why thanks in advance if someone could help meCMakeList Library file (which uses msql++ and RInside)project(pliba)include_directories(/usr/include)include_directories(/usr/include/mysql)include_directories(/usr/include/mysql++)include_directories(/usr/lib/R/site-library/Rcpp/include)include_directories(/usr/lib/R/site-library/RInside/include)include_directories(/home/pascal/pKDR1/pLibA/Include)add_library(pliba STATIC test_RInside.cpp)target_link_libraries(pliba /usr/lib/libmysqlpp.a)target_link_libraries(pliba /usr/lib/libmysqlclient.a)target_link_libraries(pliba /usr/lib/i386-linux-gnu/libz.so)target_link_libraries(pliba /usr/lib/R/lib/libR.so)target_link_libraries(pliba /usr/lib/R/site-library/Rcpp/lib/libRCpp.so)target_link_libraries(pliba /usr/lib/R/site-library/RInside/lib/libRInside.so)CMakeList program file which uses the librarycmake_minimum_required(VERSION 2.8)project(pkdr1)add_subdirectory(pLibA)include_directories (${PROJA_SOURCE_DIR}/pLibA) add_executable(pkdr1 main.cpp)target_link_libraries(pkdr1 pliba)


--

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] no rule to make target ' ' needed by- with RCpp and not mysql++

2012-01-24 Thread pasparis


I find the problem it was the name of the library: libRcpp.so instead of libRCpp.so
 Message d'origine 
De : paspa...@noos.fr
À : cmake@cmake.org
Objet : [CMake] no rule to make target ' ' needed by- with RCpp and not mysql++
Date : 24/01/2012 10:10:01 CET

Hellosereral days ago I got from Eric in the mail list the way to link mysql++ in kdevelop with cmake. it works fine but as soon asI want to do the same thing with RCpp and RInside two libraries which manage a link between C++ and the R software when I compile the main prog I getmake[3]: *** No rule to make target `/usr/lib/R/site-library/Rcpp/lib/libRCpp.so', needed by `pkdr1'. Stop.I don't understand why thanks in advance if someone could help meCMakeList Library file (which uses msql++ and RInside)project(pliba)include_directories(/usr/include)include_directories(/usr/include/mysql)include_directories(/usr/include/mysql++)include_directories(/usr/lib/R/site-library/Rcpp/include)include_directories(/usr/lib/R/site-library/RInside/include)include_directories(/home/pascal/pKDR1/pLibA/Include)add_library(pliba STATIC test_RInside.cpp)target_link_libraries(pliba /usr/lib/libmysqlpp.a)target_link_libraries(pliba /usr/lib/libmysqlclient.a)target_link_libraries(pliba /usr/lib/i386-linux-gnu/libz.so)target_link_libraries(pliba /usr/lib/R/lib/libR.so)target_link_libraries(pliba /usr/lib/R/site-library/Rcpp/lib/libRCpp.so)target_link_libraries(pliba /usr/lib/R/site-library/RInside/lib/libRInside.so)CMakeList program file which uses the librarycmake_minimum_required(VERSION 2.8)project(pkdr1)add_subdirectory(pLibA)include_directories (${PROJA_SOURCE_DIR}/pLibA) add_executable(pkdr1 main.cpp)target_link_libraries(pkdr1 pliba)


--

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] Multi-project libraries with CMake and KDevelop

2012-01-17 Thread pasparis


HelloI am trying to create a multiproject containing several projects libraries with KDEvelop4 and CMakeyesterday I was helped from the mailing list to execute a single library.I don't know the exact rules to follow in order to set up a multi project library with KDEvelop and CMake: the problem is the followingI would like to have all the project at the same level in a directory.the root directory is pKD0 and in pKD0 I create with KDevelop projA (library A),projB (library B) etc.. and projMain (executable using the set of libraries)their CMakeList files areprojA:project(proja)add_library(proja STATIC cTest.cpp)projMain:cmake_minimum_required(VERSION 2.8)project(projMain)add_subdirectory(projA)include_directories (${PROJA_SOURCE_DIR}/projA) add_executable(projMain main.cpp)target_link_libraries(projMain proja)I got a message that "projA is not an existing library" and when I put add_subdirectory(/pascal/pKD0/projA) I get "no rule to make target" this works when projA is under ProjMain directory, but when I add a new project under the ProjMain KDEvelop put it both outside and under the projmainI don't know hown to organise the multiproject directories with KDevelop and CMake, thank you in advance if someone could clarrify this pointpascal


--

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] shared library with CMake in kdevelop4

2012-01-16 Thread pasparis


I am new with kdevelop and cmake so apologize for this pretty naive question, I create in kdevelop a proj3 project and want to link a library so I create a second project projA within the proj3 directorythe projA CMakelist is project(proja)set( lib_SOURCES Execute_Msg.cpp )add_library(proja ${lib_SOURCES} )the proj3 CMakelist iscmake_minimum_required(VERSION 2.8)project(proj3)link_directories(/pascal/pKD3/proj3/projA/build)add_executable(proj3 main.cpp)target_link_libraries(proj3 libproja)there is a libproja file in the /pascal/pKD3/proj3/projA/build directory, so I don't understand why I get the message /usr/bin/ld: cannot find -llibprojathanks for help


--

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