1. download qjson source code from official website
- http://gitorious.org/qjson
2. set cmake configure file to find a specific Qt4 source
- extract file and enter the folder
- edit CMakeList.txt and add the following sentence before FIND_PACKAGE( Qt4 REQUIRED )
set( DESIRED_QT_VERSION 4 )3. compile qjson source code
set( QT_QMAKE_EXECUTABLE "/home/qt-everywhere-opensource-src-4.7.4-Embedded/bin/qmake" ) - set this by your environment
set( QT_QMAKE_LOCATION "/home/qt-everywhere-opensource-src-4.7.4-Embedded/bin" ) - set this by your environment
FIND_PACKAGE( Qt4 REQUIRED )
- cmake -DCMAKE_INSTALL_PREFIX=path_to _install_qjson/
- make
- make install
0 意見:
張貼留言