@@ -44,46 +44,43 @@ if not exist "%targetDir%" (
4444
4545:: Download the file
4646echo Downloading Open3D...
47- curl -L -o " %filePath% " " %url% "
48-
49- :: check if the file was downloaded if not wait
50- :wait
51- if not exist " %filePath% " (
52- echo Waiting for download to complete...
53- timeout /t 5 /nobreak > nul
54- goto wait
47+ curl -L -o " %targetDir% \open3d.zip" " %url% "
48+
49+ :: Check if the file was downloaded
50+ if not exist " %targetDir% \open3d.zip" (
51+ echo Failed to download Open3D.
52+ exit /b 1
5553)
56- echo File downloaded.
5754
5855:: Extract the file
5956echo Extracting Open3D...
6057powershell -Command " Expand-Archive -Path '%targetDir% \open3d.zip' -DestinationPath '%targetDir% '"
6158
62- :: Delete the downloaded zip file
63- del " %targetDir% \open3d.zip"
64-
65- :: Change to the target directory
66- cd /d " %targetDir% "
67-
68- :: Run the cmake commands
69- echo Building Open3D...
70- cmake -DBUILD_WEBRTC=OFF -DBUILD_SHARED_LIBS=ON -G " Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX=" %targetDir% " -S . -B build
71- if errorlevel 1 (
72- echo Failed to run cmake configuration command.
73- exit /b 1
74- )
75-
76- cmake --build build --config Release --target ALL_BUILD
77- if errorlevel 1 (
78- echo Failed to build ALL_BUILD.
79- exit /b 1
80- )
81-
82- cmake --build build --config Release --target INSTALL
83- if errorlevel 1 (
84- echo Failed to install.
85- exit /b 1
86- )
87-
88- echo Done.
89- endlocal
59+ @ REM :: Delete the downloaded zip file
60+ @ REM del "%targetDir%\open3d.zip"
61+
62+ @ REM :: Change to the target directory
63+ @ REM cd /d "%targetDir%"
64+
65+ @ REM :: Run the cmake commands
66+ @ REM echo Building Open3D...
67+ @ REM cmake -DBUILD_WEBRTC=OFF -DBUILD_SHARED_LIBS=ON -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX="%targetDir%" -S . -B build
68+ @ REM if errorlevel 1 (
69+ @ REM echo Failed to run cmake configuration command.
70+ @ REM exit /b 1
71+ @ REM )
72+
73+ @ REM cmake --build build --config Release --target ALL_BUILD
74+ @ REM if errorlevel 1 (
75+ @ REM echo Failed to build ALL_BUILD.
76+ @ REM exit /b 1
77+ @ REM )
78+
79+ @ REM cmake --build build --config Release --target INSTALL
80+ @ REM if errorlevel 1 (
81+ @ REM echo Failed to install.
82+ @ REM exit /b 1
83+ @ REM )
84+
85+ @ REM echo Done.
86+ @ REM endlocal
0 commit comments