diff options
| author | Tom Harley | 2019-01-29 19:12:22 +0000 |
|---|---|---|
| committer | Tom Harley | 2019-01-29 19:12:22 +0000 |
| commit | 7b4f42242d277adeaec7a40eaac7d178141d4621 (patch) | |
| tree | eacece268545df914d730ad80d6a1b69f1448296 /solvitaire/archive/build-notes.md | |
| parent | Add support for reading gamestates from json files (diff) | |
| download | metasol-7b4f42242d277adeaec7a40eaac7d178141d4621.tar.gz metasol-7b4f42242d277adeaec7a40eaac7d178141d4621.zip | |
Reorganise submodules (and submodulise solvitaire)
The submodules should now point to repos I’ve made in order to produce static libraries from them. Also, solvitaire now points to a similar personal repo.
Diffstat (limited to 'solvitaire/archive/build-notes.md')
| m--------- | solvitaire | 0 | ||||
| -rw-r--r-- | solvitaire/archive/build-notes.md | 56 |
2 files changed, 0 insertions, 56 deletions
diff --git a/solvitaire b/solvitaire new file mode 160000 +Subproject b835e10bfb21a73b4f89e09ddeb400f41538483 diff --git a/solvitaire/archive/build-notes.md b/solvitaire/archive/build-notes.md deleted file mode 100644 index c7aca09..0000000 --- a/solvitaire/archive/build-notes.md +++ /dev/null @@ -1,56 +0,0 @@ -# How to build / run the project - -The project uses the CMake build system generator. there are several stages for -building the project, running the program, and creating an installer. - -### Installing dependencies - -#### Upgrade GCC (if you don't have version 6) -`sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y` - -`sudo apt-get update -qq` - -`sudo apt-get install -qq g++-6` - -`sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6` - -#### Boost - -Note: this doesn't have to (and probably shouldn't) be run from within the project, unlike the other commands listed here. - -`sudo wget -O boost_1_63_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.63.0/boost_1_63_0.tar.gz/download` - -`sudo tar xzvf boost_1_63_0.tar.gz` - -`cd boost_1_63_0/` - -`sudo ./bootstrap.sh --with-libraries=log` - -`sudo ./b2 link=shared threading=multi toolset=gcc optimization=space` - -`sudo ./b2 install` - -`cd ..` - -### Generate Build System - -`cmake [-G "CodeBlocks - Unix Makefiles"] -D CMAKE_CXX_COMPILER=g++-6 -DCMAKE_BUILD_TYPE=[DEBUG|RELEASE] -Bcmake-build-[debug|release] -H.` - -### Build project - -`cmake --build cmake-build-[debug|release]` - -### Run executable - -`./cmake-build-[debug|release]/bin/solvitaire` - -### Create project installer - -`cpack --config cmake-build-[debug|release]/CPackConfig.cmake` - -## Profiling - -To get line numbers, you will first need to change the release build from -03 to -02 - -valgrind --tool=callgrind --log-file=callgrind.log cmake-build-release/bin/solvitaire ... -kcachegrind callgrind.out._ |
