-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLinuxBuildSteps.txt
76 lines (75 loc) · 3.46 KB
/
LinuxBuildSteps.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Linux Build steps:
[key >> cmd line]
Important cmake vars: CMAKE_INCLUDE_PATH; CMAKE_LIBRARY_PATH
Install steps initial:
* Install GCC tool chain etc
* >> sudo apt-get install build-essential
* install git
* >> sudo apt-get install git
* [install llvm & clang]
* >> wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
* >> sudo apt-get install clang-3.4 lldb-3.4
* Also install libc++-dev & libc++abi-dev
* enable clang toolchain,
* >> sudo update-alternatives --config c++ [and select clang++]
* >> sudo update-alternatives --config cc [and select clang++]
* install cmake 2.8.12.2 minimum
* download cmake 2.8.12.2, unzip somewhere, build & install
* >> ./configure --prefix=$HOME/dev/installs
* >> make
* >> sudo make install
* Add cmake to your path, I did this via the .profile script under ~ so...
* >> gedit ~/.profile
* add the following...
if [ -d "$HOME/dev/installs/bin" ] ; then
PATH="$HOME/dev/installs/bin:$PATH"
fi
* Clone the repo to $heart_repo
* >> git clone https://github.com/JoJo2nd/Heart
* create a directory to build camke in $build_dir
* >> cd $build_dir
* download protobuf 2.5.0 and unzip somewhere
* cd to protobuf source
* >> ./configure --prefix=$HOME/dev/installs CC=clang CXX="clang++ -std=c++11 -stdlib=libc++ -lc++abi" CXXFLAGS="-O3"
* >> make
* >> make install
* cd to protobuf/python directory
* >> sudo apt-get install python-setuptools
* >> python setup.py build
* >> python setup.py install
* should now be in $HOME/dev/installs
* download boost 1.53
* unzip somewhere and cd to directory
* >> ./bootstrap.sh --prefix=$HOME/dev/installs
* >> ./b2 install toolset=clang cxxflags="-stdlib=libc++ -fPIC" linkflags="-stdlib=libc++" --prefix=$HOME/dev/installs --without-iostreams
* Download SDL2, unzip somewhere and cd to it
* >> sudo apt-get install autoconf
* >> sh autogen.sh
* >> ./configure --prefix=$HOME/dev/installs
* >> make
* >> make install
* >> sudo apt-get install ia32-libs-sdl
* [install wxWidgets - package manager install - mint/ubuntu]
* >> sudo apt-add-repository 'deb http://repos.codelite.org/wx3.0.1/ubuntu/ trusty universe'
* >> sudo apt-get update
* >> sudo apt-get install libwxbase3.0-0-unofficial libwxbase3.0-dev libwxgtk3.0-0-unofficial libwxgtk3.0-dev wx3.0-headers wx-common libwxbase3.0-dbg libwxgtk3.0-dbg wx3.0-i18n wx3.0-examples wx3.0-doc
* [Install GLEW]
* download glew source (latest at 1.10), unzip somewhere and cd to directory
* >> sudo apt-get install mesa-common-dev
* >> sudo apt-get install libx11-dev libxmu-dev libxi-dev libgl-dev
* >> export GLEW_DEST=$HOME/dev/installs
* >> make install
* download and install Freeimage
* install lua-protobuf
* >> git clone https://github.com/JoJo2nd/lua-protobuf
* cd to install directory
* >> sudo apt-get install python-setuptools
* >> python setup.py build
* >> python setup.py install
* cd $heart_repo
* mkdir $build_dir
* rm -rf *
* cmake -G "Unix Makefiles" ./../ -DCMAKE_INCLUDE_PATH="$HOME/dev/usr/local/include;$HOME/dev/installs/include;$HOME/dev/installs/include/SDL2" -DCMAKE_LIBRARY_PATH="$HOME/dev/usr/local/lib;$HOME/dev/installs/lib;$HOME/dev/installs/lib64" -DCMAKE_PROGRAM_PATH="$HOME/dev/usr/local/bin;$HOME/dev/installs/bin"
-- or --
* cmake -G "Unix Makefiles" [path to source] -DCMAKE_INCLUDE_PATH="$HOME/dev/usr/local/include;$HOME/dev/installs/include;$HOME/dev/installs/include/SDL2" -DCMAKE_LIBRARY_PATH="$HOME/dev/installs/lib;$HOME/dev/installs/lib64" -DCMAKE_PROGRAM_PATH="$HOME/dev/installs/bin" -D_CMAKE_TOOLCHAIN_PREFIX=llvm- -DCMAKE_BUILD_TYPE=Debug/Release
* Profit