File tree 10 files changed +31
-13
lines changed 10 files changed +31
-13
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 2025.04.06] - v1.1.1.2
2
+ ### [ Optimize] cmake scripts for linux
1
3
2
4
## [ 2025.04.05] - v1.1.1.1
3
5
### [ Optimize] windows package section and doc
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ message("CMAKE_TOOLCHAIN_ROOT = ${CMAKE_TOOLCHAIN_ROOT} ")
23
23
message ("include(${CMAKE_TOOLCHAIN_ROOT} /cmake-core/global.cmake) " )
24
24
25
25
26
- project (${PROJECT_NAME} VERSION 1.1.1.1 )
26
+ project (${PROJECT_NAME} VERSION 1.1.1.2 )
27
27
# set(CMAKE_DEBUG_POSTFIX d)
28
28
set (LIB_TYPE SHARED) # SHARED STATIC
29
29
# set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
Original file line number Diff line number Diff line change 30
30
* build osx lib: ` sh $HOME/Desktop/DevAssistant/app/run_unix.sh build `
31
31
- 2-Linux:
32
32
* Setup-env:
33
- * Ubuntu/Debian : ` bash /opt/shared_dir/DevAssistant/tools/env-apt.sh `
33
+ * Ubuntu/OpenKylin2.0 : ` bash /opt/shared_dir/DevAssistant/tools/env-apt.sh `
34
34
* Run way1:
35
35
* ` sed -i 's/\r//' /opt/shared_dir/DevAssistant/app/run_unix.sh && bash /opt/shared_dir/DevAssistant/app/run_unix.sh `
36
36
* Run way2:
65
65
* ` sh $HOME/Desktop/DevAssistant/app/run_android.sh `
66
66
- 2-Linux:
67
67
* Setup-env:
68
- * Ubuntu/Debian : ` bash /opt/shared_dir/DevAssistant/tools/env-apt.sh `
68
+ * Ubuntu/OpenKylin2.0 : ` bash /opt/shared_dir/DevAssistant/tools/env-apt.sh `
69
69
* Run way1:
70
70
* ` sed -i 's/\r//' /opt/shared_dir/DevAssistant/app/run_android.sh && bash /opt/shared_dir/DevAssistant/app/run_android.sh `
71
71
* Run way2:
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ start /wait %QT_HOME%\bin\windeployqt.exe -qmldir %QT_HOME%/qml %BIN_DIR%\%PROJ_
21
21
22
22
call %SCRIPT_DIR% \vs-env.bat
23
23
24
- set VERSION = " 1.1.1.1 "
24
+ set VERSION = " 1.1.1.2 "
25
25
echo packaging %VERSION% for " x64"
26
26
makensis /INPUTCHARSET UTF8 /DPRODUCT_NAME=%PROJ_NAME% /DPRODUCT_VERSION=%VERSION% /DOS_ARCH=" x64" %SCRIPT_DIR% /pkg-win-nsis.nsi
27
27
echo packaging %VERSION% for " x86"
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ else # Linux
46
46
if [[ ` uname` == " Linux" ]]; then
47
47
if [[ -f " /etc/redhat-release" ]]; then # Redhat / CentOS
48
48
LINUX_OS=" CentOS"
49
- elif [[ -f " /etc/lsb-release" ]]; then # Ubuntu / Debian
49
+ elif [[ -f " /etc/lsb-release" ]]; then # Ubuntu / OpenKylin2.0
50
50
LINUX_OS=" Ubuntu"
51
51
fi
52
52
fi
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ if(WITH_QT)
85
85
# CentOS
86
86
SET (QT_INC_HOME /usr/include /qt5)
87
87
SET (QT_LIB_HOME /usr/lib64)
88
- # Ubuntu
88
+ # Ubuntu / OpenKylin2.0
89
89
if ("${LINUX_OS} " STREQUAL "Ubuntu" )
90
90
SET (QT_INC_HOME /usr/include /x86_64-linux-gnu/qt5)
91
91
SET (QT_LIB_HOME /usr/lib/x86_64-linux-gnu)
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ void QDAHelpDialog::OnHelpShow()
30
30
void QDAHelpDialog::OnShowVersion ()
31
31
{
32
32
std::string version = u8R"(
33
- 版本号(Version) : v1.1.1.1
33
+ 版本号(Version) : v1.1.1.2
34
34
35
- 日期(Date) : 2025/03/27
35
+ 日期(Date) : 2025/04/06
36
36
)" ;
37
37
QMessageBox::information (NULL , QStringLiteral (" Version" ), QString::fromStdString (version));
38
38
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ else # Linux
46
46
if [[ ` uname` == " Linux" ]]; then
47
47
if [[ -f " /etc/redhat-release" ]]; then # Redhat / CentOS
48
48
LINUX_OS=" CentOS"
49
- elif [[ -f " /etc/lsb-release" ]]; then # Ubuntu / Debian
49
+ elif [[ -f " /etc/lsb-release" ]]; then # Ubuntu / OpenKylin2.0
50
50
LINUX_OS=" Ubuntu"
51
51
fi
52
52
fi
Original file line number Diff line number Diff line change @@ -54,7 +54,17 @@ if(WIN)
54
54
elseif(LINUX)
55
55
set(OS_TYPE "linux")
56
56
add_definitions(-DLINUX)
57
- set(CMAKE_PREFIX_PATH "/usr/lib64/cmake/Qt5")
57
+
58
+ if("${LINUX_OS}" STREQUAL "CentOS")
59
+ set(CMAKE_PREFIX_PATH "/usr/lib64/cmake/Qt5")
60
+ elseif("${LINUX_OS}" STREQUAL "Ubuntu")
61
+ set(CMAKE_PREFIX_PATH "/usr/lib/x86_64-linux-gnu/cmake")
62
+ endif(LINUX_OS)
63
+ message("CMAKE_PREFIX_PATH = ${CMAKE_PREFIX_PATH}")
64
+
65
+ if(WITH_QT)
66
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
67
+ endif(WITH_QT)
58
68
59
69
elseif(OSX)
60
70
set(APPLE ON)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # satrt docker:
2
+ # Support OS: ubuntu/OpenKylin2.0
3
+ # start docker:
3
4
# Windows: docker run -it -d --shm-size=2g --network=host -v D:\Research:/opt/shared_dir ubuntu2204:v1.0 /bin/bash
4
5
# Linux: docker run -it -d --shm-size=2g --network=host -v $HOME/dockers/shared_dir:/opt/shared_dir ubuntu2204-dev-v1.0 --privileged ubuntu2204:v1.0 /bin/bash
5
6
# docker exec -it a3822da6accba9625129bc63c9fe0001367a7282a7eda0d50783ab90e75c7513 /bin/bash
11
12
12
13
# echo color: https://www.cnblogs.com/unclemac/p/12783387.html
13
14
15
+ # vmware load shared dir:
16
+ # temp: sudo mkdir /mnt/hgfs && sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
17
+ # forever: vim /etc/fstab
18
+ # add info: .host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other, defaults 0 0
19
+
14
20
OS=` uname`
15
21
ANDROID_SDK_HOME=" /usr/lib/android-sdk"
16
22
ANDROID_NDK_HOME=" $ANDROID_SDK_HOME /ndk"
@@ -107,7 +113,7 @@ function android_ndk() {
107
113
setup_source
108
114
setup_cert
109
115
setup_soft
110
- setup_pip
116
+ # setup_pip
111
117
java_env
112
118
android_sdk
113
- android_ndk
119
+ android_ndk
You can’t perform that action at this time.
0 commit comments