Skip to content

Building

D. Fober edited this page May 4, 2017 · 4 revisions

Compiling the Guidolib project


Compiling the GUIDOEngine


The GUIDOEngine relies on CMake, a cross-platform, open-source build system. The build folder contains the project description and is used to generate native projects.

You should run make from the build folder. Your target platform is inferred from the Makefile. It builds the GUIDEngine library, the Guido tools, the Guido Qt libraries, applications and tools.

Run make help for more details and a description of all the possible targets.

OPTIONS

To embed Midi file export in the library, you should call make with MIDIEXPORT='yes | no' as argument.

Note about MIDI export:

MIDI export requires libmidisharelight.

  • For MacOS and Windows, the library is embedded in binary form in the src/midisharelight folder. Thus there is no additional step.
  • On linux, you must get the library source code, compile and install.
Note for Android:

The Android SDK and NDK must be installed and ndk-buildmust be available from your current PATH.

  • from the build folder: run make android
  • from the platforms/android folder: run makeor make help for details about the targets.
Note for Linux platforms:

You need to have libcairo2-dev installed to compile the GUIDOEngine. The procedure to compile is close to the usual 'configure' 'make' 'make install' steps. Actually, you can simply do the following: > cd /your_path_to_the_guidolib_project/build > make > sudo make install

Supporting MIDI export on linux:

You must get the midisharelight library source code. Make sure you checkout the dev branch. You don't need to compile midishare but only the midisharelight library (only available from the 'dev' branch). It is located at the project root folder. midisharelight is cmake based: > cd midisharelight/cmake > cmake -G "Unix Makefiles" > make > sudo make install

Note for Windows platforms:

The CMake project description is "Visual Studio" oriented. Using MingW may require some adaptation.


Compiling the Guido Qt applications


You need to have the Qt SDK installed to compile the Guido Qt applications. It is recommended to upgrade to the latest SDK.

The Guido Qt applications are compiled from the main build/Makefile target and you can also run makefrom the environments/Qt folder. Note that since all the projects are qmake based, you can use QTCreator on all platforms to compile the applications.


In case of trouble, contact me: [email protected]

Clone this wiki locally