From bd56a1c9ccd132aad386bf51dde5ef5cde77d2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 6 Jun 2020 23:33:00 +0800 Subject: Update instructions, using CMake now --- README.md | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 71ee8f6..2570cf9 100644 --- a/README.md +++ b/README.md @@ -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 ``` -- cgit v1.2.3