-
Notifications
You must be signed in to change notification settings - Fork 166
Compiling UltraStar Deluxe
Freepascal 3.0.0 or newer is required to compile UltraStar Deluxe. If you had some older version of fpc installed before, make sure to remove everything of it correctly before trying to install freepascal (otherwise compiling will fail with various weird error messages). Also, using the 3.0-development branch with current fixes is suggested. If you want to help the project by coding patches, we suggest you to use the Lazarus 1.6 or newer integrated development environment. For linking and running the game, the following libraries are also required:
- SDL2, SDL2_gfx, SDL2_mixer, SDL2_image, SDL2_ttf, SDL2_net
- ffmpeg 2.8 or older
- sqlite
- bass
- some fonts like ttf-dejavu and ttf-freefont
- portaudio
- pcre
- lua 5.1 or 5.2 or 5.3
- opencv if you want webcam support
- projectM if you want audio visualisation support
####Compiling using Lazarus
- Start Lazarus.
- Choose Project → Open Project … in the menu bar. A file-dialog box will show.
- Change to the src subdirectory of your USDX working copy (e.g. ultrastardx/src).
- If you are running Windows, open the ultrastardx-win.lpi project-file.
- On Unix-like systems use the ultrastardx-unix.lpi file.
- Now you can compile USDX by choosing the menu entry Run → Build or pressing Ctrl+F9.
- If you want to compile and/or start USDX directly choose Run → Run or press F9.
####Compiling on Linux/BSD using make
- make sure all required libraries are installed
- for current debian / ubuntu:
sudo apt-get update && sudo apt-get install git fpc libsdl2-dev libsdl2-image-dev libsdl2-image-2.0-0 libsdl2-2.0-0 libsdl2-mixer-2.0-0 libsdl2-mixer-dev libsdl2-net-2.0-0 libsdl2-net-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev libsdl2-gfx-1.0-0 libsdl2-gfx-dev ffmpeg libavdevice-dev libsqlite3-0 libsqlite3-dev libpcre3 libpcre3-dev ttf-dejavu ttf-freefont portaudio19-dev lua5.1-dev libpng16-16 libopencv-highgui-dev libprojectm-dev
- for arch linux there is an aur package called ultrastardx-git
git clone https://github.com/UltraStar-Deluxe/USDX
cd USDX
-
./configure
(or use autoconf) make
- Play the game,
- install the game and start it
sudo make install
ultrastardx
- or start it directly
./game/ultrastardx
- install the game and start it
####Compiling on OS X
- USDX is built using Homebrew and official FreePascal build (using its compiler FPC)
- You can install Homebrew from brew.sh
- You can get the FPC build from freepascal.org
- Don't miss XQuartz from xquartz.org
- Make sure the XCode command line tools are installed.
xcode-select --install
- Needed brew libraries can be installed using:
brew install sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_net sdl2_ttf ffmpeg libav portaudio binutils sqlite freetype libpng pcre lua libtiff
brew switch ffmpeg 2.8.6
- Pass argument
--enable-osx-fink
or--enable-osx-brew
(default) according to the packaging you are using ./configure
make macosx-standalone-app
Feel free to fork this project, modify it to your hearts content and maybe also do pull requests to this repository for additional features, improvements or clean-ups.