The whole setup is based on cget. You can install cget with pip3 install cget
.
First we have to pick a directory, I usually choose ~/local
.
mkdir -p ~/local; cd ~/local
git init; git remote add origin git@github.com:lecopivo/my-cget-recipes.git; git pull origin master;
Now you can easily install packages, e.g. to install the latest version of Magnum you just run $cget --prefix ~/local install magnum
.
You probably want to set up environmental variables such that install binaries and libraries can be found.
Add this to your ~/.profile
(you probably want to relogin to take an effect)
export PATH=${HOME}/local/bin:$PATH
export LD_LIBRARY_PATH=${HOME}/local/lib:$LD_LIBRARY_PATH
export CGET_PREFIX=${HOME}/local
Now you can install library just by calling cget install magnum
You need Emscripten installed and environment variable EMSCRIPTEN
has to be set to the directory where em++
is e.g. export EMSCIRPTEN=some path/emsdk/emscripten/1.37.36/
.
Now we pick a directory where to set up our environment, I usually choose ~/wasm-local/
. Then you run
mkdir -p ~/wasm-local; cd ~/wasm-local
git init; git remote add origin git@github.com:lecopivo/my-cget-recipes.git; git pull origin master;
cget init --prefix . --toolchain ./etc/toolchains/generic/Emscripten-wasm.cmake
Now you can easily install packages, e.g. to install the latest version of Magnum you just run $cget --prefix ~/wasm-local install magnum
.
NOTE: All the following examples are for environment ~/wasm-local/
, change
the directory to the appropriate directory.
To install package:
cget --prefix ~/wasm-local install magnum
NOTE: All the following examples are for environment ~/wasm-local/
, change
the directory to the appropriate directory.
To run cmake for specific build environment just supply appropriate toolchain file
cmake .. -DCMAKE_TOOLCHAIN_FILE=~/wasm-local/cget/cget.cmake
Or in the directory where CMakeLists.txt
exists run
~/wasm-local/bin/configure-build