Repository navigation
Compiling lmms (Windows)
Tres Finocchiaro edited this page Jun 9, 2014
·
15 revisions
Note: This tutorial was written for Ubuntu 12.04 x64. The steps may work on other Debian-based distros with slight adjustments.
- Download the latest source code per Accessing git repository page
- Add Toby's cross-compiling repo
sudo add-apt-repository ppa:tobydox/mingwNote: Newer distros may need
trustychanged toprecisein/etc/apt/sources.list.d/tobydox-mingw-trusty.list
- Refresh available packages
sudo apt-get update- Install additional dependencies
sudo apt-get install nsis cloog-isl libmpc2 mingw32Note: Newer distros have replaced
libmpc2withlibmpc3requiring the download of libmpc2 manually here and install usingsudo dpkg -i
- Fetch the mingw32 dependencies (700MB)
sudo apt-get install mingw32-x-qt mingw32-x-sdl mingw32-x-libvorbis \
mingw32-x-fluidsynth mingw32-x-stk mingw32-x-glib2 mingw32-x-portaudio \
mingw32-x-libsndfile mingw32-x-fftw mingw32-x-flac mingw32-x-fltk \
mingw32-x-libsamplerate mingw32-x-pkgconfig mingw32-x-pthreads \
mingw32-x-binutils mingw32-x-gcc- And again for mingw64 (500MB)
sudo apt-get install mingw64-x-qt mingw64-x-sdl mingw64-x-libvorbis \
mingw64-x-fluidsynth mingw64-x-stk mingw64-x-glib2 mingw64-x-portaudio \
mingw64-x-libsndfile mingw64-x-fftw mingw64-x-flac mingw64-x-fltk \
mingw64-x-libsamplerate mingw64-x-pkgconfig mingw64-x-pthreads \
mingw64-x-binutils mingw64-x-gcc- Prepare the mingw build environment
cd
cd lmms
mkdir build target
cd build
chmod u+x ../build_mingw*-
Run the mingw build script
../build_mingw32
../build_mingw32 make
### Package
1. Creates the Windows installer package
```sh
make package
- You will receive a message
CPack: - package: /home/ubuntu/lmms/build/lmms-x.x.x-win32.exe generated.- You may now distribute your Windows Installer package (25MB)

- Remove previous cmake cache
rm CMakeCache.txt