Skip to content
Jonathan Moerman edited this page Mar 29, 2017 · 4 revisions

Building on Gnu/Linux

To build Go For It! you need to have the following software installed:

valac >= 0.16  (>= 0.26 is recommended if you have GLib > 2.40 installed.)
cmake >= 2.6
gtk+-3.0 (>= 3.10 recommended)
glib-2.0
libnotify
gettext

On Debian/Ubuntu you should be able to install everything you need with:

sudo apt-get install valac libgtk-3-dev libnotify-dev cmake 

Use the following commands in the root of the project in this order to build Go For It!:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr .. # assuming you want to install everything in /usr
make
sudo make install

Use the following commands to update the translation files:

mkdir build
cd build
make pot

Building on Windows

Go For It! can be built in a similar way to how it's built on Linux using MSYS2.

The following instructions are for making a x64 build of Go For It!.

Setting up MSYS2

  • Install MSYS2 (installer, wiki)
  • Install git, make, vala, gtk3, cmake, gettext, the mingw toolchain (msys2/mingw64 console: pacman -S msys/git msys/make mingw64/mingw-w64-x86_64-vala mingw64/mingw-w64-x86_64-gtk3 mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-gettext mingw64/mingw-w64-x86_64-toolchain)
  • If you want to edit the code it may be nice to have an editor with at least Vala and CMake syntax highlighting. You could use pacman to install gedit (pacman -S mingw64/mingw-w64-x86_64-gedit mingw64/mingw-w64-x86_64-gedit-plugins) which can then be launched from the mingw64 console. Any other editor that has syntax highlighting support for Vala and CMake will of course do.

Building Go For It! with MSYS2

  • open a mingw64 console (MSYS2 MinGW 64-bit/mingw64.exe).

  • Get the code from the windows-cmake branch git clone https://github.com/mank319/Go-For-It.git --branch windows-cmake

  • cd into the root of the Go For It! project.

  • build and install Go For It! as a mingw64 application

      mkdir build
      cd build
      cmake -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw64 ..
      make
      make install
    
  • Download notify-send and place notify-send in <path to msys2 installation directory>\mingw64\bin

  • You should now be able to launch Go For It! from the mingw64 console

      go-for-it
    

Troubleshooting

  • Try removing the contents of build and run cmake again.