pianobooster/BUILD.md

67 lines
1.9 KiB
Markdown
Raw Normal View History

2019-06-05 05:03:40 +02:00
# Linux
Ensure that the following packages 'cmake', 'libqt5-dev', 'libasound2-dev' and
'build-essential" are installed.
2019-06-20 05:10:35 +02:00
Then type
```cmake .```
```make```
Finally as root type
2019-06-23 23:32:05 +02:00
```make install -C build```
2019-06-20 05:10:35 +02:00
2019-06-13 07:55:18 +02:00
(The pianobooster binary executable is now in the "build" subdirectory.)
2019-06-05 05:03:40 +02:00
2019-06-20 05:10:35 +02:00
To build a debug version create a dir called "debug" and change to that dir and then type
```cmake -DCMAKE_BUILD_TYPE=Debug .```
2019-06-05 05:03:40 +02:00
2019-06-23 23:32:05 +02:00
(Alternatively you can use qmake followed by make.)
2019-06-05 05:03:40 +02:00
See [DEB](pkgs/deb) for more details.
2019-06-11 00:12:58 +02:00
See [RPM](pkgs/rpm/pianobooster.spec) for more details.
See [ARCH](pkgs/arch/PKGBUILD) for more details.
2019-06-13 07:55:18 +02:00
2019-06-11 00:03:14 +02:00
If you make changes to the source code then please post details.
2019-06-05 05:03:40 +02:00
# macOS
2019-06-13 07:55:18 +02:00
Install latest Xcode (from Apple Developer Connection, free registration required).
2019-06-05 05:03:40 +02:00
Install CMake and QT libraries via Homebrew:
2019-06-20 05:10:35 +02:00
```$ brew install cmake qt5```
2019-06-05 05:03:40 +02:00
Generate XCode project file via CMake:
2019-06-20 05:10:35 +02:00
```$ cmake -G Xcode . -DCMAKE_PREFIX_PATH=$(brew --prefix qt)```
2019-06-05 05:03:40 +02:00
Open the project file in XCode, set whatever options you like (universal or single architecture,
2019-06-13 07:55:18 +02:00
debug or release etc.) and compile.
2019-06-05 05:03:40 +02:00
2019-06-13 07:55:18 +02:00
To make a self contained application bundle use QT's macdeployqt tool (included in QT 4.5.0).
2019-06-05 05:03:40 +02:00
2019-06-11 00:03:14 +02:00
If you make changes to the source code then please post details.
2019-06-05 05:03:40 +02:00
# Windows
To compile in Windows install the Open Source version of Qt and CMake and optionally Geany.
When installing Qt select the option to download and install the MinGW compiler. Open the
Qt Command Prompt and then change to the "PianoBooster" directory and then type the
command below.
2019-06-20 05:10:35 +02:00
```"C:\Program Files\CMake 2.6\bin\cmake.exe" -G "MinGW Makefiles" .```
Once this is completed type
2019-06-05 05:03:40 +02:00
2019-06-20 05:10:35 +02:00
```make```
2019-06-05 05:03:40 +02:00
2019-06-13 07:55:18 +02:00
Or alternatively you can install QtCreator and then open the pianobooster.pro
2019-06-05 05:03:40 +02:00
2019-06-11 00:03:14 +02:00
If you make changes to the source code then please post details.