Changes between Version 1 and Version 2 of PacpusGettingStarted/LinuxCompilation
- Timestamp:
- Dec 12, 2014, 4:05:32 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PacpusGettingStarted/LinuxCompilation
v1 v2 1 = 0.1.x branch build = 1 2 2 3 === Getting the source code === 3 To checkout !PacpusFramework repository (version 0.1. 1) into your workspace directory, e.g. into `~/workspace/pacpus`,4 To checkout !PacpusFramework repository (version 0.1.x) into your workspace directory, e.g. into `~/pacpus`, 4 5 5 6 {{{#!sh 6 cd ~/ workspace/pacpus7 svn co https://devel.hds.utc.fr/svn/pacpusframework/ tags/0.1.1/ pacpusframework7 cd ~/pacpus 8 svn co https://devel.hds.utc.fr/svn/pacpusframework/branches/0.1.x/ pacpusframework 8 9 }}} 9 10 **Note:** You can as well use any GUI wrapper for SVN, such as [http://tortoisesvn.net/ TortoiseSVN].11 10 12 11 === Using CMake === 13 12 14 ==== GUI ====15 You have to point the source code directory with the root `CMakeLists.txt` file, e.g. `~/workspace/pacpus/framework`16 and the build directory, e.g. `~/workspace/pacpus/framework-build`.17 Then press `Configure` and `Generate`.18 You can change the CMake variables as well.19 13 20 ==== Command -line ====14 ==== Command Line Interface ==== 21 15 22 Without changing directory (stay in `~/workspace/pacpus`), create a new directory for build, change the directory to the newly created one and execute CMake. 16 First go to the build folder and run the build script. 23 17 24 18 {{{#!sh 25 cd ~/workspace/pacpus 26 mkdir framework-build 27 cd framework-build 28 cmake ../framework -G "Unix Makefiles" 19 cd ~/pacpus/pacpusframework/build 20 ./build.sh 29 21 }}} 30 31 **Note:** You can specify a different makefile generator instead of `-G "Unix Makefiles"`.32 Type `cmake --help` for a list of generators available on your platform.33 34 === Compiling ===35 If you have created Makefile files, than just run the command:36 {{{#!sh37 make38 }}}39 or a similar one (`nmake`, `mingw32-make`, etc.).40 41 If you have created project files (for example using option `-G Visual Studio 11`), than just open the solution file **Pacpus.(extension)**, e.g.:42 {{{#!sh43 Pacpus.sln44 }}}