Update README.md

This commit is contained in:
Martin Vladic 2022-07-20 10:24:53 +02:00
parent 5bea2e788d
commit bc11fb34e0

View File

@ -14,8 +14,8 @@ First, build the project using EEZ Studio.
sudo apt-get update sudo apt-get update
sudo apt-get install -y git libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev cmake build-essential libbsd-dev sudo apt-get install -y git libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev cmake build-essential libbsd-dev
cd {{projectDirPath}} cd {{projectDirPath}}
mkdir -p build/linux mkdir -p Src/build/linux
cd build/linux cd Src/build/linux
cmake ../.. cmake ../..
make make
``` ```
@ -45,7 +45,7 @@ set SDL2IMAGEDIR=..\SDL2_image-2.0.4
Execute `cmake.bat`: Execute `cmake.bat`:
``` ```
cd {{projectDirPath}} cd {{projectDirPath}}\Src
.\cmake.bat .\cmake.bat
``` ```
@ -62,8 +62,8 @@ These instructions are for the Linux.
``` ```
source /path/to/emsdk/emsdk_env.sh source /path/to/emsdk/emsdk_env.sh
export EMSCRIPTEN=/path/to/emsdk/upstream/emscripten export EMSCRIPTEN=/path/to/emsdk/upstream/emscripten
mkdir -p {{projectDirPath}}/build/emscripten mkdir -p {{projectDirPath}}/Src/build/emscripten
cd {{projectDirPath}}/build/emscripten cd {{projectDirPath}}/Src/build/emscripten
cmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../.. cmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../..
make make
``` ```