Skip to content

Install SplashKit

SplashKit is a beginner’s all-purpose software toolkit that will allow you to create fun and exciting programs more easily, especially for Graphical User Interface (GUI) programs.

Follow these steps to set up SplashKit on Linux and start building interactive, visually engaging applications quickly and easily!

Installation Steps

  1. Open the Terminal

    Opening a terminal

  2. Install the SplashKit Manager

    Copy and paste the following command into your terminal, then press Enter:

    Terminal window
    bash <(curl -s https://raw.githubusercontent.com/splashkit/skm/master/install-scripts/skm-install.sh)
  3. Restart the Terminal and Test the Installation

    After restarting the terminal, run the following command to confirm the installation:

    Terminal window
    skm

    You should see messages similar to:

    Terminal window
    SplashKit is installed successfully!
    Missing skm command. For help use 'skm help'
  4. Install Dependencies and Compile SplashKit

    Use the following command to install the necessary dependencies and compile SplashKit:

    Terminal window
    skm linux install

    If you encounter dependency issues, you can install the dependencies manually using the commands below for your Linux distribution:

    Terminal window
    sudo apt-get install cmake libpng-dev libcurl4-openssl-dev libsdl2-dev libsdl2-mixer-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-net-dev libsdl2-ttf-dev libmikmod-dev libncurses5-dev libbz2-dev libflac-dev libvorbis-dev libwebp-dev libfreetype6-dev build-essential clang
  5. Add SplashKit to Your Path

    If you encounter issues with the skm command, manually add SplashKit to your PATH:

    Update your bash or zsh profile manually:
    1. Update Path in ~/.bashrc or ~/.zshrc

      Open your ~/.bashrc file:

      Terminal window
      nano ~/.bashrc

      Add the following lines near the end:

      Terminal window
      export PATH="$PATH:$HOME/.splashkit:$PATH"

      Update your profile:

      Terminal window
      source ~/.bashrc
    2. Update the System Library Path

      Run the following command to add /usr/local/lib to the system’s library path, ensuring they are available to your applications:

      Terminal window
      sudo ldconfig /usr/local/lib
  6. Install SplashKit Globally Run the following command to install SplashKit globally:

    Terminal window
    skm global install