-
git
andmake
are installed by default. -
Install
XCode
and Command Line Toolsxcode-select --install
-
Create a fork of SplashKit.
-
Clone the forked repository into your preferred location.
git clone --recursive -j2 https://github.com/<username>/splashkit-core.git
-
Build the test project:
-
In a terminal application, go into the cloned directory of your SplashKit fork, and type:
cd projects/cmake cmake . make
-
-
Run the test program by executing
cd ../../bin ./sktest
-
Add features to code in
./coresdk
-
Add test code into
coresdk/src/test
. Now you should be good to go.
-
Update your system
sudo apt-get update sudo apt-get upgrade -y
-
Install the packages
sudo apt-get install -y \ git build-essential cmake g++ libpng-dev libcurl4-openssl-dev libsdl2-dev \ libsdl2-mixer-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-net-dev libsdl2-ttf-dev \ libmikmod-dev libbz2-dev libflac-dev libvorbis-dev libwebp-dev libfreetype6-dev
-
Create a fork of SplashKit.
-
Clone the forked repository into your preferred location.
git clone --recursive -j2 https://github.com/<username>/splashkit-core.git
-
Build the test project:
-
In a terminal application, go into the cloned directory of your SplashKit fork, and type:
cd projects/cmake cmake . make
-
-
Run the test program by executing
cd ../../bin ./sktest
-
Add features to code in
./coresdk
-
Add test code into
coresdk/src/test
. Now you should be good to go.
-
Install MSYS2 subsystem and follow installer instructions - use defaults if unsure, DO NOT INSTALL TO DIRECTORY WITH SPACES!
-
Install SplashKit SDK
- Go into MSYS2 terminal emulator and install Git over MSYS2 subsystem by typing:
pacman -S git --noconfirm --disable-download-timeout
- Now clone and install SplashKit via install-scripts:
bash <(curl -s https://raw.githubusercontent.com/splashkit/skm/master/install-scripts/skm-install.sh)
- Restart terminal, type the following command in terminal to verify successfully installation.
skm
- Go into MSYS2 terminal emulator and install Git over MSYS2 subsystem by typing:
-
Install language tools (compilers / libs):
- For C#, install the DotNet core SDK.
- For C++, install GNU Compiler Collection (GCC) - g++ and clang++ in MSYS2.
- Run the following command in terminal:
pacman --disable-download-timeout -S mingw-w64-{x86_64,i686}-gcc mingw-w64-{i686,x86_64}-gdb
- Do not run compiler from main MSYS2 MSYS terminal, instead run from MSYS2 MinGW32 or MinGW64 terminals.
- Run the following command in terminal:
-
Install remaining tools to build Splashkit:
- Install
cmake
pacman -S mingw-w64-x86_64-cmake
- Install
make
pacman -S mingw-w64-x86_64-make
- Install
-
Create a fork of SplashKit.
-
Clone the forked repository into your preferred location.
git clone --recursive -j2 https://github.com/<username>/splashkit-core.git
-
Build the test project:
-
Go into the cloned directory of your SplashKit fork, open a MinGw-W64 MSYS2 shell and type:
cd projects/cmake cmake -G "Unix Makefiles" . make
-
Note: if the above does not work, try using the actual Unix
make
andcmake
installations, rather than the MinGw-specific ones; but do not try a combination of both. Remove packages using the following commandpacman -Rs <package> pacman -S cmake make
-
-
Run the test program by executing
cd ../../bin ./sktest
-
Add features to code in
./coresdk
-
Add test code into
coresdk/src/test
. Now you should be good to go.