This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] install - what does cmake do?

Tags: None
(comma "," separated)
HWJ
Registered Member
Posts
18
Karma
0
Hi,

having next to no experience with 'cmake' (my GenToo system does it for me)
what does Eigen's cmake do?

Is it more than just copying the include directory to a suitable place?

Does it any configuration (depending on the host)?

Many thanks for an info,
Helmut.

Last edited by ggael on Mon Mar 09, 2009 11:17 am, edited 1 time in total.
User avatar
bjacob
Registered Member
Posts
658
Karma
3

RE: install - what does cmake do?

Sun Feb 22, 2009 2:45 pm
CMake does several things, but is absolutely not required in order to just use Eigen.

CMake can install Eigen. That is just copying files to the destination. There is no configuration at that stage, Eigen does not have a "config.h" that depends on the host machine. Eigen does all its own configuration at the moment of the compilation of the code that uses Eigen, with tests like "#ifdef __GNUC__".

CMake also serves to build the documentation if you have LaTex and Doxygen installed. To see the instructions, open the file eigen2/Mainpage.dox at line 113.

CMake also serves to build the unit-tests, and the demos.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
anthon
Registered Member
Posts
26
Karma
0
OS

RE: install - what does cmake do?

Tue Feb 24, 2009 11:48 pm
Hello
I am trying to compile Eigen and I am having troubles:
So I checked out the stable 2.0 (but same problem with the trunk one).
I do
cmake .
and everything seems to be ok (despite a warning on my cmake version - even though my version is the same as the one asked by the warning :/). There I get a Makefile which seems to be ok too.
And now if I do
make
nothing happens. Literally. No error, no warning, and no compiling... I just get a new prompt. Am I missing something?
Thank you.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

RE: install - what does cmake do?

Wed Feb 25, 2009 1:43 am
anthon wrote:Hello
I am trying to compile Eigen and I am having troubles:
So I checked out the stable 2.0 (but same problem with the trunk one).
I do
cmake .
and everything seems to be ok (despite a warning on my cmake version - even though my version is the same as the one asked by the warning :/). There I get a Makefile which seems to be ok too.
And now if I do
make
nothing happens. Literally. No error, no warning, and no compiling... I just get a new prompt. Am I missing something?
Thank you.


first of all it is not recommended to use the source dir as the build dir.

now, what you is perfectly normal because Eigen is pure template library, there is nothing to compile ! you can use it right away ! see the the comments of bjacob just above your message, I have not much to say. ok, 3 tips:

once you have run cmake you can do:

Code: Select all
make doc (to generate the doxygen doc)
make install (to copy the header to your installation prefix)


to run the unit tests:

Code: Select all
cmake . -DEIGEN_BUILD_TESTS=on
make
ctest


that's it !
User avatar
Spiros
Registered Member
Posts
25
Karma
1
OS

RE: install - what does cmake do?

Wed Feb 25, 2009 9:44 am
ggael wrote:
Code: Select all
make doc (to generate the doxygen doc)
make install (to copy the header to your installation prefix)



How can I specify an installation path different from /usr/local?

Last edited by Spiros on Wed Feb 25, 2009 9:46 am, edited 1 time in total.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

RE: install - what does cmake do?

Wed Feb 25, 2009 1:47 pm
all is explained in the cmake doc, but the option is:

-DCMAKE_INSTALL_PREFIX=blabla

to see all options you can do in the build dir:

ccmake .

which gives you a CLI interface, or, if you have Qt and installed cmake-gui:

cmake-gui .



Spiros wrote:
ggael wrote:
Code: Select all
make doc (to generate the doxygen doc)
make install (to copy the header to your installation prefix)



How can I specify an installation path different from /usr/local?
anthon
Registered Member
Posts
26
Karma
0
OS

RE: install - what does cmake do?

Wed Feb 25, 2009 4:15 pm
Thank you.
I was actually expecting the demos to compile with the "make".
I cmake -DEIGEN_BUILD_DEMOS=ON and now it works! thanks again!


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell