Changeset View
Changeset View
Standalone View
Standalone View
doc/Phonon4Qt5.dox
Show All 11 Lines | |||||
12 | 12 | | |||
13 | It has the same API as a Phonon built against Qt4, but differs in ABI and file | 13 | It has the same API as a Phonon built against Qt4, but differs in ABI and file | ||
14 | names. | 14 | names. | ||
15 | This allows development and/or delpoyment of your application to happen against | 15 | This allows development and/or delpoyment of your application to happen against | ||
16 | either version of Qt. | 16 | either version of Qt. | ||
17 | 17 | | |||
18 | \section phonon4qt5_building Building | 18 | \section phonon4qt5_building Building | ||
19 | 19 | | |||
20 | To build Phonon4Qt5 you will have to pass PHONON_BUILD_PHONON4QT5 to CMake to | 20 | Building Phonon in Qt5 mode is controlled by the CMake variable | ||
21 | switch it into Qt5 build mode. | 21 | PHONON_BUILD_PHONON4QT5, which is enabled by default. | ||
22 | 22 | | |||
23 | Additionally if you are building against a qt-project provided binary build of Qt5 | 23 | Additionally if you are building against a qt-project provided binary build of Qt5 | ||
24 | you may have to define the CMAKE_PREFIX_PATH to make CMake find Qt5. If you are | 24 | you may have to define the CMAKE_PREFIX_PATH to make CMake find Qt5. If you are | ||
25 | using QMake for your application you will additionally have to instruct cmake to | 25 | using QMake for your application you will additionally have to instruct cmake to | ||
26 | install Qt extensions into the actual Qt directory using | 26 | install Qt extensions into the actual Qt directory using | ||
27 | PHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT. | 27 | PHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT. | ||
28 | 28 | | |||
29 | For example: | 29 | For example: | ||
30 | \verbatim | 30 | \verbatim | ||
31 | mkdir build5 | 31 | mkdir build5 | ||
32 | cd build5 | 32 | cd build5 | ||
33 | cmake .. -DPHONON_BUILD_PHONON4QT5=ON -DCMAKE_PREFIX_PATH=/opt/Qt5.0.0/5.0.0/gcc_64 -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON | 33 | cmake .. -DCMAKE_PREFIX_PATH=/opt/Qt5.0.0/5.0.0/gcc_64 -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON | ||
34 | \endverbatim | 34 | \endverbatim | ||
35 | 35 | | |||
36 | Phonon4Qt5 installation does not conflict with regular Phonon installations in | 36 | Phonon4Qt5 installation does not conflict with regular Phonon installations in | ||
37 | any way; It uses different file and folder names for everything installed. | 37 | any way; It uses different file and folder names for everything installed. | ||
38 | 38 | | |||
39 | \subsection phonon4qt5_building_backends Backends | 39 | \subsection phonon4qt5_building_backends Backends | ||
40 | 40 | | |||
41 | Since Phonon4Qt5 uses isolated paths from regular Phonon, the backends also need | 41 | Since Phonon4Qt5 uses isolated paths from regular Phonon, the backends also need | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |