[CMake] installing cmake

2008-11-14 Thread shoosh moosh
I'm trying to install cmake. I downloaded it from the cmake.org website. Then I changed the directory to the location of the source. Then I typed ./bootstrap in the terminal and I got this error. Error when bootstrapping CMake: Cannot find appropriate C compiler on this system. Please specify

Re: [CMake] installing cmake

2008-11-14 Thread Hendrik Sattler
shoosh moosh schrieb: I tried typing CC=gcc ./bootstrap but it still didn't work. Is gcc really installed? Can someone tell me how to fix this error. I'm working on ubuntu. This should also work but may not be the latest release: apt-get install cmake HS

[CMake] intalling cmake

2008-11-14 Thread shoosh moosh
I'm trying to install cmake. I downloaded it from the cmake.org website. Then I changed the directory to the location of the source. Then I typed ./bootstrap in the terminal and I got this error. Error when bootstrapping CMake: Cannot find appropriate C

Re: [CMake] installing cmake

2008-11-14 Thread shoosh moosh
Thanks, apt-get install worked to install cmake! Date: Fri, 14 Nov 2008 10:13:04 +0100 From: [EMAIL PROTECTED] To: cmake@cmake.org Subject: Re: [CMake] installing cmake shoosh moosh schrieb: I tried typing CC=gcc ./bootstrap but it still didn't work. Is gcc really installed?

Re: [CMake] intalling cmake

2008-11-14 Thread Hendrik Sattler
shoosh moosh schrieb: cmake_bootstrap_8199.test.c:5:18: error: stdio.h: No such file or directory Install a complete build environment, please. On Debian this is apt-get install build-essential which includes the libc6-dev packages that you are missing. You know that you can search online which

[CMake] UNC-path issue in lists used in set and get_filename_component

2008-11-14 Thread Markus Schwarzenberg
Hello, i'm using cmake (2.6.2/WIN32) and running into problems with UNC-paths used in the set variant set(variable value CACHE type docstring ) when value is a list (of paths) and type is FILEPATH. In this case, the (essential) double slashes // at the beginning of UNC path list

[CMake] CMake -fPIC

2008-11-14 Thread Andreas Pokorny
Hello, 2008/11/14 ami guru [EMAIL PROTECTED]: [...] /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../lib/libftgl.a(FTFont.o): relocation R_X86_64_32S against `vtable for FTFont' can not be used when making a shared object; recompile with -fPIC

Re: [CMake] Installing FindCGAL.cmake

2008-11-14 Thread Fernando Cacciola
Hendrik Sattler wrote: Am Friday 14 November 2008 04:18:59 schrieb Fernando Cacciola: In preparing the cmake build system for CGAL I'm having this issue: Users can define CGAL_DIR explicitely when configuring their own programs in order to allow find_package(CGAL) to locate CGALConfig.cmake.

Re: [CMake] CMake -fPIC

2008-11-14 Thread Andreas Pakulat
On 14.11.08 03:06:46, ami guru wrote: Hello, now i built the static FTGL library and worked fine. But get a new type of error while compiling the H3D API that uses CMake Did you remove everything from your builddir? Especially the CMakeCache.txt file might still contain a reference to

Re: [CMake] Installing FindCGAL.cmake

2008-11-14 Thread Hendrik Sattler
Fernando Cacciola schrieb: Nope... my users don't want to do that... (or rather I don't know which DESTDIR, if any, they'll use at all, so the solution cannot involve anything like it) They want to install CGAL in the correct place, whatever that is, but without FindCGAL.cmake unless

Re: [CMake] CMake -fPIC

2008-11-14 Thread ami guru
Hello Andreas, Thanks! It solved the issue. It compiled fine Sajjad On Fri, Nov 14, 2008 at 12:46 PM, Andreas Pakulat [EMAIL PROTECTED] wrote: On 14.11.08 03:06:46, ami guru wrote: Hello, now i built the static FTGL library and worked fine. But get a new type of error while

Re: [CMake] Unix Makefiles/XCode not linking properly on Mac

2008-11-14 Thread Michael Jackson
On Nov 13, 2008, at 7:59 PM, Neal Meyer wrote: I have a project that I have been working on for a while using the Visual Studio generator in Windows, and I am now attempting to build in on Mac. Right now it's very early and I'm having problems building any of the executables using the

Re: [CMake] Installing FindCGAL.cmake

2008-11-14 Thread Fernando Cacciola
Hendrik Sattler wrote: Fernando Cacciola schrieb: Nope... my users don't want to do that... (or rather I don't know which DESTDIR, if any, they'll use at all, so the solution cannot involve anything like it) They want to install CGAL in the correct place, whatever that is, but without

Re: [CMake] Installing FindCGAL.cmake

2008-11-14 Thread Hendrik Sattler
Fernando Cacciola schrieb: and install the CGALConfig.cmake, only. It doesn't make sense to install both at the same time. Not really... FindCGAL.cmake basically locates and loads CGALConfig.cmake, which is better placed in the install tree since the binary folder (where it is first created)

[CMake] Create library and executable with libraries but no source files

2008-11-14 Thread [EMAIL PROTECTED]
Hi, I would like to create a library (static or shared) and an executable with only libraries (static) but no sources files. It seems add_library and add_executable commands do not accept no source files. In my project, parent directory creates library or executable from libraries created in

[CMake] Where is ccmake?

2008-11-14 Thread Levine, Zachary
I am trying to install a series of packages. The first two are CMake and VTK. I installed cmake-2.6.2. There didn't seem to be any errors with ./bootstrap gmake sudo ./install When I try to install VTK, it says it doesn't find ccmake. There is: /usr/local/bin/cmake and

Re: [CMake] Where is ccmake?

2008-11-14 Thread Mathieu Malaterre
I believe during the boostrap cmake reported it could not find the header files for ncurses on your system.In which case it does not build the curses interface to cmake. sudo apt-get install libncurses5-dev on a debian system should solve your issue. 2cts On Fri, Nov 14, 2008 at 3:11 PM,

Re: [CMake] Create library and executable with libraries but no source files

2008-11-14 Thread Mathieu Malaterre
To build you executable you need at least a 'main' function. Did you place that file into one of your libs ? On Fri, Nov 14, 2008 at 3:05 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I would like to create a library (static or shared) and an executable with only libraries (static) but

Re: [CMake] Create library and executable with libraries but no source files

2008-11-14 Thread Andreas Pakulat
On 14.11.08 15:05:17, [EMAIL PROTECTED] wrote: I would like to create a library (static or shared) and an executable with only libraries (static) but no sources files. That doesn't make sense. An executable always needs the main() function, which a library doesn't have. A library without

Re: [CMake] Installing FindCGAL.cmake

2008-11-14 Thread Fernando Cacciola
Hendrik Sattler wrote: Fernando Cacciola schrieb: and install the CGALConfig.cmake, only. It doesn't make sense to install both at the same time. Not really... FindCGAL.cmake basically locates and loads CGALConfig.cmake, which is better placed in the install tree since the binary folder

[CMake] Increasing the size of STDOUT saved for test output in the dashboard?

2008-11-14 Thread Bartlett, Roscoe A
Hello, Does anyone know how to get Cdash to increase the amount of data it will stored for STDOUT for passing tests in the dashboard? Currently it is only storing 1024 bytes and I want that increased by a lot. I then want to thin out the data from the database later but I want to see

Re: [CMake] Create library and executable with libraries but no source files

2008-11-14 Thread [EMAIL PROTECTED]
Hi, main.c is not necessary for diab compiler (microcontroller) (add_executable generates an .elf file thanks to my toolchain file). I agree with you for executable and gcc but what about library ? Seb Message du 14/11/08 à 15h24 De : Mathieu Malaterre A : [EMAIL PROTECTED] Copie à :

Re: [CMake] [PATCH] support for CTEST_INITIAL_CACHE in new-style ctest script

2008-11-14 Thread Bill Hoffman
Alexander Neundorf wrote: Well, it would be quite backward compatible, so it would just work for users expecting to set() this variable. I don't think this needs to be backwards compatible. People might expect the other variables from the declarative style to do something as well. Or a

Re: [CMake] Installing FindCGAL.cmake

2008-11-14 Thread Hendrik Sattler
Am Friday 14 November 2008 15:34:10 schrieb Fernando Cacciola: stuff, there, that you cannot do in CGALConfig.cmake? One particular stuff that can't possibly be done in CGALConfig.cmake: locating it (CGALConfig.cmake). find_package() would automagically locate and load FindCGAL if it finds

[CMake] installing cmake --- aCC not found

2008-11-14 Thread Levine, Zachary
Thanks to Mathieu Malaterre for his answer. I went and looked at cmake_bootstrap.log. In that file the first error is: ./bootstrap: line 422: aCC: command not found So I went to this website: http://research.msrg.utoronto.ca/ACC/Download and I downloaded aCC, which failed to compile in

[CMake] Problem with file (GLOB_RECURSE ...)

2008-11-14 Thread [EMAIL PROTECTED]
Hi, I have troubles with file (GLOB_RECURSE ...) command : if two files, in different sub-directories, have the same name, an error occurs : CMake Error: Attempt to add a custom rule to output D:/bar/MyFile.pp.c.rule which already has a custom rule. Is there any way to fix it ? Thanks, Seb

Re: [CMake] Variable naming when writing FindXXX.cmake files

2008-11-14 Thread Alexander Neundorf
On Friday 14 November 2008, Andreas Pakulat wrote: ... Interesting, then why does the (relatively new) FindBoost.cmake module not follow this? It uses all-uppercase for environment and cmake variables (given on the commandline) but uses mixed case for all variables it exports. I recall that

[CMake] Problem on FindBoost.cmake under Windows with Visualstudio 2008

2008-11-14 Thread Yang, Y.
Hi, All When I try to find Boost using cmake, I run into the following problem. D:\test\buildcmake -G NMake Makefiles .. -- The CXX compiler identification is MSVC -- Check for CL compiler version -- Check for CL compiler version - 1500 -- Check if this is a free VC compiler -- Check if this is

Re: [CMake] Installing FindCGAL.cmake

2008-11-14 Thread Alexander Neundorf
On Friday 14 November 2008, Hendrik Sattler wrote: Am Friday 14 November 2008 15:34:10 schrieb Fernando Cacciola: ... That is, cmake doesn't *search* for CGALConfig.cmake, it merely looks for it at CGAL_DIR That's not what the descriptions says and most of the additional arguments for

Re: [CMake] Installing FindCGAL.cmake

2008-11-14 Thread Alexander Neundorf
On Friday 14 November 2008, Fernando Cacciola wrote: Hi, In preparing the cmake build system for CGAL I'm having this issue: Users can define CGAL_DIR explicitely when configuring their own programs in order to allow find_package(CGAL) to locate CGALConfig.cmake. OTOH, if FindCGAL.cmake is

Re: [CMake] intalling cmake

2008-11-14 Thread Alexander Neundorf
On Friday 14 November 2008, shoosh moosh wrote: I'm trying to install cmake. I downloaded it from the cmake.org website. Then I changed the directory to the location of the source. Then I typed ./bootstrap in the terminal and I got this error. Error when bootstrapping CMake: Cannot find

Re: [CMake] Create library and executable with libraries but no source files

2008-11-14 Thread Alexander Neundorf
On Friday 14 November 2008, [EMAIL PROTECTED] wrote: Hi, main.c is not necessary for diab compiler (microcontroller) (add_executable generates an .elf file thanks to my toolchain file). I agree with you for executable and gcc but what about library ? I don't really understand you here.

Re: [CMake] Problem on FindBoost.cmake under Windows with Visualstudio 2008

2008-11-14 Thread Andreas Pakulat
On 14.11.08 18:45:22, Yang, Y. wrote: Hi, All When I try to find Boost using cmake, I run into the following problem. D:\test\buildcmake -G NMake Makefiles .. -- The CXX compiler identification is MSVC -- Check for CL compiler version -- Check for CL compiler version - 1500 -- Check if

Re: [CMake] [PATCH] support for CTEST_INITIAL_ CACHE in new-style ctest script

2008-11-14 Thread Alexander Neundorf
On Friday 14 November 2008, Bill Hoffman wrote: Alexander Neundorf wrote: ... So the user would just tell ctest_configure() which variables to hand over to cmake, and ctest_configure() would then write the CMakeCache.txt (or a cmake script to be preloaded using -C). Or we could stick with

Re: [CMake] Unix Makefiles/XCode not linking properly on Mac

2008-11-14 Thread Neal Meyer
I built an extremely simple project. Contains main.cpp, and then a library with widget.cpp init. here is the CMakeLists.txt that I'm using project( c++_cmd_line ) CMAKE_MINIMUM_REQUIRED(VERSION 2.6) #setup the output directories set( LIB_OUT_DIR ${CMAKE_BINARY_DIR}/bin/lib ) set( EXE_OUT_DIR

[CMake] question on cpack and building debian packages

2008-11-14 Thread Michael Lasmanis
hi all, we've been using cmake for some time now and love it. thanks for building such a great tool. we currently have a home grown debian package builder that integrates w/ cmake. we've been looking at moving to cpack now that 2.6 supports debian packages. however a lot of our

Re: [CMake] Unix Makefiles/XCode not linking properly on Mac

2008-11-14 Thread David Cole
You do not need an add_dependencies call after the add_executable, you need a target_link_libraries to tell the exe to link in the library... HTH, David On Fri, Nov 14, 2008 at 1:23 PM, Neal Meyer [EMAIL PROTECTED] wrote: I built an extremely simple project. Contains main.cpp, and then a

Re: [CMake] Unix Makefiles/XCode not linking properly on Mac

2008-11-14 Thread Neal Meyer
Alright. That fixed it in all of the projects. The real project I'm doing was originally done just on Visual studio, and setting the dependencies is all that was required to get the exe's to properly link. Thx. On Fri, Nov 14, 2008 at 10:47 AM, David Cole [EMAIL PROTECTED] wrote: You do not

Re: [CMake] intalling cmake

2008-11-14 Thread Hendrik Sattler
Am Friday 14 November 2008 19:00:25 schrieb Alexander Neundorf: On Friday 14 November 2008, shoosh moosh wrote: I'm trying to install cmake. I downloaded it from the cmake.org website. Then I changed the directory to the location of the source. Then I typed ./bootstrap in the terminal and I