同步操作将从 shengzhe8688/Tasks 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
=========================================================
Author: KangLin (kl222@126.com)
Mac os and IOS, I don't have the corresponding equipment, please compile and test the students with the corresponding equipment.
linux
Decompress. Copy Tasks_v0.3.4.tar.gz to install directory, then decompress it:
mkdir Tasks
cd Tasks
cp $DOWNLOAD/Tasks_v0.3.4.tar.gz .
tar xvfz Tasks_v0.3.4.tar.gz
install
./install1.sh install_autostart Tasks
If you want to uninstall
./install1.sh remove Tasks
ubuntu
windows
android
git clone https://github.com/KangLin/RabbitCommon.git
Create and enter the build directory
git clone --recursive https://github.com/KangLin/Tasks.git
cd Tasks
mkdir build
Compile
cd build
qmake ../Tasks.pro RabbitCommon_DIR=
make install
windows or linux
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`pwd`/install \
-DCMAKE_BUILD_TYPE=Release \
-DQt5_DIR=${QT_ROOT}/lib/cmake/Qt5 \
-DRabbitCommon_DIR=
cmake --build . --config Release --target install
android
The host is linux
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=`pwd`/android-build \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
-DANDROID_ABI="armeabi-v7a with NEON" \
-DANDROID_PLATFORM=android-18 \
-DQt5_DIR= \
-DRabbitCommon_DIR=
cmake --build . --config Release --target install
cmake --build . --target APK
The host is windows
cd build
cmake .. -G"Unix Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=`pwd`/android-build \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
-DCMAKE_MAKE_PROGRAM=${ANDROID_NDK}/prebuilt/windows-x86_64/bin/make.exe \
-DANDROID_PLATFORM=android-18 \
-DANDROID_ABI=arm64-v8a \
-DANDROID_ARM_NEON=ON \
-DQt5_DIR= \
-DRabbitCommon_DIR=
cmake --build . --config Release --target install
cmake --build . --target APK
Parameter Description: https://developer.android.google.cn/ndk/guides/cmake
Install apk to devices
adb install android-build-debug.apk
Note
windows If you build app. Qt does not provide openssl dynamic library for copyright reasons, so you must copy the dynamic library of openssl to the installation directory.
linux
sudo apt-get install libssl1.1
pro
Library mode: Add the following code to the project file:
isEmpty(Tasks_DIR): Tasks_DIR=$ENV{Tasks_DIR}
isEmpty(Tasks_DIR){
message("1. Please download Tasks source code from https://github.com/KangLin/Tasks")
message(" ag:")
message(" git clone https://github.com/KangLin/Tasks.git")
message("2. Build the project, get library")
error("2. Then set value Tasks_DIR to library root dirctory")
}
INCLUDEPATH *= $${Tasks_DIR}/include $${Tasks_DIR}/include/export
LIBS *= -L$${Tasks_DIR}/lib -lLunarCalendar -lTasks
cmake
Source code
Submodule mode
add_subdirectory(3th_libs/Tasks/Src)
Non-submodule mode
set(Tasks_DIR $ENV{Tasks_DIR} CACHE PATH "Set Tasks source code root directory.")
if(EXISTS ${Tasks_DIR}/Src)
add_subdirectory(${Tasks_DIR}/Src ${CMAKE_BINARY_DIR}/Tasks)
else()
message("1. Please download Tasks source code from https://github.com/KangLin/Tasks")
message(" ag:")
message(" git clone https://github.com/KangLin/Tasks.git")
message("2. Then set cmake value or environment variable Tasks_DIR to download root dirctory.")
message(" ag:")
message(FATAL_ERROR " cmake -DTasks_DIR= ")
endif()
Library mode:
Cmake parameter Tasks_DIR specifies the installation root directory
FIND_PACKAGE(Tasks)
Add libraries and include in CMakeLists.txt
SET(APP_LIBS ${PROJECT_NAME} ${QT_LIBRARIES})
if(Tasks_FOUND)
target_compile_definitions(${PROJECT_NAME}
PRIVATE -DTasks)
target_include_directories(${PROJECT_NAME}
PRIVATE "${Tasks_INCLUDE_DIRS}/Src"
"${Tasks_INCLUDE_DIRS}/Src/export")
set(APP_LIBS ${APP_LIBS} ${Tasks_LIBRARIES})
endif()
target_link_libraries(${PROJECT_NAME} ${APP_LIBS})
Question: https://github.com/KangLin/Tasks/issues
Project location: https://github.com/KangLin/Tasks
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。