Prepare workspace for build with cmake:
cd qomp mkdir build cd build
Prepare sources to build with Qt4:
cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_QT5=OFF ..
Prepare sources to build with Qt5:
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
Build qomp:
make
Install qomp
make install
1.Create build_qomp.cmd file in qomp root directory
2.Open this file in text editor and paste this:
set QMAKESPEC=win32-g++ set /p BINTYPE=Do you want to build qomp debug version [y/n(default)]:%=% @echo _ ::change this part of file set QTDIR=C:\Qt\5.3\5.3\mingw482_32 set MINGWDIR=C:\Qt\5.3\Tools\mingw482_32 set CMAKEDIR=C:\build\cmake\ set TAGLIB=C:\buid\taglib set CUELIB=C:\buid\libcue :: if /i "%BINTYPE%"=="y" ( set BTYPE=Debug ) else ( set BTYPE=Release ) set PATH=%QTDIR%\;%QTDIR%\bin;%MINGWDIR%;%MINGWDIR%\bin;%CMAKEDIR% set PREFIX=qomp_%BTYPE% set BDIR=build_qomp_%BTYPE% mkdir %BDIR% cd %BDIR% %CMAKEDIR%\bin\cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=%PREFIX% -DCMAKE_BUILD_TYPE=%BTYPE% -DTAGLIB_ROOT=%TAGLIB% -DLIBCUE_ROOT=%CUELIB% -DUSE_QT5=ON .. pause @echo Runing mingw32-make mingw32-make mingw32-make install pause @goto exit :exit pause }}} - change this part of file with your values {{{ set QTDIR=C:\Qt\5.3\5.3\mingw482_32 set MINGWDIR=C:\Qt\5.3\Tools\mingw482_32 set CMAKEDIR=C:\build\cmake\ set TAGLIB=C:\buid\taglib set CUELIB=C:\buid\libcue
Save and run this *
.cmd file.
Qomp files will be installed into qomp_Release or qomp_Debug directory
- Or you can run QtCreator and open CMakeLists.txt file.
To build qomp with only needed plugins just add this flag:
-DBUILD_PLUGINS="filesystemplugin;urlplugin" ..
Possible values for -DBUILD_PLUGINS variable:
filesystemplugin urlplugin prostopleerplugin myzukaruplugin notificationsplugin yandexmusicplugin lastfmplugin tunetofileplugin mprisplugin
To set path to taglib library (useful for windows):
-DTAGLIB_ROOT="YOUR_PATH"
To set path to libcue library (useful for windows):
-DLIBCUE_ROOT="YOUR_PATH"
To set build type:
-DCMAKE_BUILD_TYPE=Release or -DCMAKE_BUILD_TYPE=Debug
To build with Qt4:
-DUSE_QT5=OFF
To install qomp to your path:
-DCMAKE_INSTALL_PREFIX="YOUR_PATH"
for example:
cmake -DCMAKE_INSTALL_PREFIX=./install ..
all files will be installed into build/install directory