diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-06 23:33:00 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-06-06 23:33:00 +0800 |
commit | bd56a1c9ccd132aad386bf51dde5ef5cde77d2cf (patch) | |
tree | 847a780141f8d2ac6e56f68c04f0578eb4fae984 /README.md | |
parent | ca88b55202ce800587d10938507cfd1e76fb9d19 (diff) |
Update instructions, using CMake now
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 27 |
1 files changed, 21 insertions, 6 deletions
@@ -6,37 +6,52 @@ ```sh $ git clone git://darapsa.org/qicclient.git -$ cd qicclient ``` ## Configuring for various target hosts (with optional debugging) ```sh -$ qmake CONFIG+=debug -spec android-clang qicclient.pro +$ mkdir build-qicclient-Desktop-Debug +$ cd build-qicclient-Desktop-Debug +$ cmake -DCMAKE_BUILD_TYPE=Debug ../qicclient ``` or ```sh -$ qmake CONFIG+=debug -spec linux-g++ qicclient.pro +$ mkdir build-qicclient-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug +$ cd build-qicclient-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug +``` + +and then + +```sh +$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r19c/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=/opt/Qt5.14.2/5.14.2/android -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_ABI=arm64-v8a -DCMAKE_INSTALL_PREFIX=/opt/Qt5.14.2/5.14.2/android -DCMAKE_BUILD_TYPE=Debug ../qicclient +``` + +or + +```sh +$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r19c/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=/opt/Qt5.14.2/5.14.2/android -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_ABI=armeabi-v7a -DCMAKE_INSTALL_PREFIX=/opt/Qt5.14.2/5.14.2/android -DCMAKE_BUILD_TYPE=Debug ../qicclient ``` or ```sh -$ qmake CONFIG+=debug -spec macx-clang qicclient.pro +$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r19c/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=/opt/Qt5.14.2/5.14.2/android -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_ABI=x86 -DCMAKE_INSTALL_PREFIX=/opt/Qt5.14.2/5.14.2/android -DCMAKE_BUILD_TYPE=Debug ../qicclient ``` or ```sh -$ qmake CONFIG+=debug -spec macx-ios-clang qicclient.pro +$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r19c/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=/opt/Qt5.14.2/5.14.2/android -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_ABI=x86_64 -DCMAKE_INSTALL_PREFIX=/opt/Qt5.14.2/5.14.2/android -DCMAKE_BUILD_TYPE=Debug ../qicclient ``` or so on. -## Compiling and linking +## Compiling, linking, and installing ```sh $ make # -jN (with N an integer number of parallel tasks you allow your computer to run for compiling this) +$ sudo make install ``` |