Thanks! I'll give it a try.<div><br><br><div class="gmail_quote">On Sat, Jan 8, 2011 at 12:49 AM, Peter Kümmel <span dir="ltr"><<a href="mailto:syntheticpp@gmx.net">syntheticpp@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 07.01.2011 05:23, Barth Netterfield wrote:<br>
> Is kst2 now able to build with cmake? If so, could you include a short<br>
> tutorial on what you need and how to do it?<br>
><br>
> thanks!<br>
><br>
<br>
</div>I've renamed the old INSTALL to INSTALL.qmake and described cmake build system in INSTALL:<br>
<br>
=========================<br>
Building Kst with CMake<br>
=========================<br>
<br>
Install CMake from <a href="http://www.cmake.org" target="_blank">www.cmake.org</a> or your distribution (version >= 2.8).<br>
<br>
<br>
3rd party libraries<br>
-------------------<br>
<br>
Install Qt 4 and make sure qmake is found.<br>
Add the folder with qmake to the environment variable PATH.<br>
If you've compiled Qt by yourself or qmake is not found after<br>
installing Qt fix PATH,<br>
Linux/Unix: export PATH=<your path to qt>/bin:$PATH<br>
Windows : set PATH=<your path to qt>\bin;%PATH%<br>
<br>
Libraries for plugins:<br>
Currently only Getdata, Gsl, and Netcdf are supported.<br>
On pkg systems the libraries should be found automatically,<br>
on non-pkg systems like Windows you must point to the libraries<br>
by environment variables NETCDF_DIR, GETDATA_DIR, and GSL_DIR.<br>
<br>
<br>
Generating build system files<br>
-----------------------------<br>
<br>
CMake is a build system file generator. On all systems it could<br>
generate files for several build systems, for instance Makefiles<br>
for make, project files for Visual Studio, Xcode, Eclipse.<br>
<br>
Running cmake without any argument lists all supported build<br>
systems on your system. Passing one of them as -G"<build system name>"<br>
argument when running cmake selects this.<br>
<br>
<br>
Building out-of-source<br>
----------------------<br>
<br>
The standard way of using CMake is to build in a folder which doesn't resides<br>
in the source tree. This has the advantage, that a complete fresh build could<br>
be done by simply deleting all files in the build folder and to re-run cmake<br>
again.<br>
<br>
Another benefit of out-of-source builds is that several builds (debug, release,<br>
command-line builds, IDE project files) could all use the same source tree.<br>
<br>
Therefore when using cmake create a folder outside of the source tree and<br>
select this folder when using CMake's GUI, cmake-gui, or go into this folder<br>
when you call cmake from the shell.<br>
<br>
<br>
Using cmake<br>
-------------<br>
<br>
When calling cmake you must pass the path to the source tree (absolute are relative)<br>
and optionally the generator (each system has its own default). Additional arguments<br>
could be passed with the -D prefix.<br>
<br>
Here some examples, assuming the build folder is in the same folder as the source tree:<br>
<br>
* Makefiles on Linux<br>
cmake ../kst/cmake<br>
<br>
* Project files for QtCreator:<br>
Open the kst/cmake/CMakeLists.txt file and select the build folder<br>
or create the files in the command line using the -G"CodeBlocks *" option, eg<br>
cmake ../kst/cmake -G"CodeBlocks - Unix Makefiles"<br>
<br>
* Project files for Xcode<br>
cmake ../kst/cmake -GXcode<br>
<br>
* Project files for Visual Studio 10<br>
cmake ..\kst\cmake -G"Visual Studio 10"<br>
<br>
* NMake files for Visual Studio<br>
cmake ..\kst\cmake -G"NMake Makefiles"<br>
<br>
* Makefiles for MinGW<br>
cmake ..\kst\cmake -G"MinGW Makefiles"<br>
<br>
<br>
Options<br>
-------<br>
<br>
Options could be passed by the -D prefix when running cmake.<br>
Available options will be listed on each cmake run:<br>
<br>
-- kst_merge_files = OFF : Merge files to speedup build<br>
-- kst_merge_rebuild = OFF : Rebuild generated files from merged files build<br>
<br>
To enable a option pass the value ON or 1, eg<br>
cmake ../kst/cmake -Dkst_merge_files=1<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136, 136, 136)">C. Barth Netterfield<br>University of Toronto<br>
416-845-0946</span><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136, 136, 136)"><br></span></div><br>
</div>