2011年9月22日 星期四

Build qjson with Qt4 for ARM

Build qjson (JSON Library for Qt4) with Qt4 for ARM

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 )
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 )
3. compile qjson source code
    - cmake -DCMAKE_INSTALL_PREFIX=path_to _install_qjson/
    - make
    - make install

0 意見: