Skip to content

Commit 2a5d243

Browse files
authored
Merge pull request #53 from Ludwigstrasse/Development_Hananiah
【AL-82】Bridge the occt viewer to view system
2 parents eaff708 + f160ac7 commit 2a5d243

19 files changed

Lines changed: 48 additions & 9 deletions

.github/workflows/c-cpp.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,30 @@ jobs:
3737
qtdeclarative5-dev \
3838
qtquickcontrols2-5-dev\
3939
python3 \
40-
uuid-dev
40+
uuid-dev \
41+
build-essential ninja-build rsync pkg-config curl \
42+
libgl1-mesa-dev libglu1-mesa-dev xorg-dev
43+
44+
45+
- name: Build OCCT SDK (Linux)
46+
run: |
47+
set -e
48+
49+
# 防止 Windows 提交的 CRLF 让 Ubuntu 解释器看到 "sh\r" / "bash\r"
50+
# (当前 CI 报错就是这个原因:/usr/bin/env: 'sh\r': No such file or directory)
51+
if [ -d "AliceThirdParty/scripts" ]; then
52+
find AliceThirdParty/scripts -maxdepth 1 -name "*.sh" -print0 | xargs -0 sed -i 's/\r$//'
53+
chmod +x AliceThirdParty/scripts/*.sh
54+
fi
55+
56+
# If OCCT SDK is not present in the repo snapshot, build it in CI and export into Externals/3rdParty.
57+
if [ ! -f "Externals/3rdParty/sdk/linux-x64/Release/occt/lib/cmake/opencascade/OpenCASCADEConfig.cmake" ] && \
58+
[ ! -f "Externals/3rdParty/sdk/linux-x64/Release/occt/cmake/OpenCASCADEConfig.cmake" ]; then
59+
bash AliceThirdParty/scripts/build-occt.sh Release x64-linux
60+
bash AliceThirdParty/scripts/export-occt-sdk.sh Release "$GITHUB_WORKSPACE"
61+
else
62+
echo "OCCT SDK already exists in Externals/3rdParty/sdk/linux-x64/Release/occt"
63+
fi
4164
4265
4366

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# ThirdParty SDK output (do NOT commit)
2-
Externals/3rdParty/sdk/**
3-
Externals/3rdParty/runtime/**
2+
Externals/3rdParty/sdk/msvc2022-x64-md/Debug/occt/data/*.*
3+
Externals/3rdParty/sdk/msvc2022-x64-md/Debug/occt/win64/vc14/bind/*.pdb
44
Externals/3rdParty/install/**

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@
1010
path = AliceThirdParty
1111
url = git@github.com:Ludwigstrasse/AliceThirdParty.git
1212
branch = main
13+
[submodule "Externals/3rdParty/sdk"]
14+
path = Externals/3rdParty/sdk
15+
url = git@github.com:Ludwigstrasse/AliceSdk.git
16+
branch = main

Alice

Submodule Alice updated from a94b899 to fd7b1c1

AutoGenerateVsProject.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ echo %cd%
6464
echo "Start to cmake... ..."
6565

6666
:: -B 指定工程的输出路径 -H 指定CMAKELIST.TXT的路径
67-
..\SolidDesigner\ToolChain\cmake\bin\cmake.exe -B ..\SolidDesigner_Build -H..\SolidDesigner -DCMAKE_GENERATOR_PLATFORM=x64 -G "Visual Studio 16 2019"
67+
..\SolidDesigner\ToolChain\cmake\bin\cmake.exe -B ..\SolidDesigner_Build -H..\SolidDesigner -DCMAKE_GENERATOR_PLATFORM=x64 -G "Visual Studio 17 2022"
6868

6969
if errorlevel 1 (
7070
echo "CMake failed."
@@ -80,7 +80,7 @@ if %errorlevel% neq 0 (
8080
echo "devenv.exe is not running. Starting a new instance..."
8181
echo "Opening Visual Studio..."
8282
::start "" "%VS140COMNTOOLS%\..\IDE\devenv.exe" "%cd%\SolidDesigner.sln"
83-
start "" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\devenv.exe" "%cd%\SolidDesigner.sln"
83+
start "" "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\IDE\\devenv.exe" "%cd%\SolidDesigner.sln"
8484
) else (
8585
echo "devenv.exe is already running with PID %vs_pid%. Proceeding to open project..."
8686
)
Binary file not shown.
Binary file not shown.
Binary file not shown.
186 KB
Binary file not shown.

0 commit comments

Comments
 (0)