Skip to content

Commit

Permalink
Related to #96: for now, we do install PCL on the end-user system (no…
Browse files Browse the repository at this point in the history
…t on the CI/CD). It is hoped this will work around the issue with cmake/vcpkg/github-actions.
  • Loading branch information
jackjansen committed Mar 11, 2024
1 parent d7bc2d9 commit e5c4300
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/install-3rdparty-full-win1064.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,26 @@ if (Test-Path $env:TEMP\cwipc-3rdparty-downloads) {
}
$tmpinstalldir="$((Get-Item $env:TEMP\cwipc-3rdparty-downloads).FullName)"


#
# Install PCL 1.14
#
if ($global:ghActionRunner) {
Write-Output "pcl: skipped"
} elseif (Can-Execute-From-Path("pcl_generate -help")) {
Write-Output "pcl: already installed"
} else {
Write-Output "pcl: downloading..."
$installer="$tmpinstalldir\PCL-1.14.0-AllInOne-msvc2022-win64.exe"
(New-Object System.Net.WebClient).DownloadFile("https://github.com/PointCloudLibrary/pcl/releases/download/pcl-1.14.0/PCL-1.14.0-AllInOne-msvc2022-win64.exe",$installer);
Write-Output "pcl: installing..."
Start-Process -FilePath $installer -ArgumentList "/S" -Wait
Add-PathVariable("C:\Program Files\PCL 1.14.0\bin")
Add-PathVariable("C:\Program Files\PCL 1.14.0\3rdParty\VTK\bin")
Add-PathVariable("C:\Program Files\OpenNI2\Redist")
Write-Output "pcl: installed"
}

#
# Install Realsense SDK.
#
Expand Down

0 comments on commit e5c4300

Please sign in to comment.