forked from jf---/python-fcl
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from CyrilWaechter/master
Update to fcl 0.6.1 and ci build for linux/win/mac using github actions
- Loading branch information
Showing
27 changed files
with
1,019 additions
and
704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheel on ${{matrix.platform}} | ||
runs-on: ${{matrix.platform}} | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release | ||
|
||
on: release | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheel on ${{matrix.platform}} | ||
runs-on: ${{matrix.platform}} | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- uses: xresloader/upload-to-github-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
file: ./wheelhouse/*.whl | ||
overwrite: true | ||
draft: false | ||
update_latest_release: true | ||
tag_name: v0.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
mkdir -p deps | ||
cd deps | ||
get eigen | ||
curl -OL https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz | ||
tar -zxf eigen-3.3.9.tar.gz | ||
|
||
rm -rf libccd | ||
git clone --depth 1 --branch v2.1 https://github.com/danfis/libccd.git | ||
|
||
rm -rf octomap | ||
git clone --depth 1 --branch v1.8.0 https://github.com/OctoMap/octomap.git | ||
|
||
rm -rf fcl | ||
git clone --depth 1 --branch v0.6.1 https://github.com/flexible-collision-library/fcl.git | ||
|
||
echo "Install eigen" | ||
cmake -B build -S eigen-3.3.9 | ||
cmake --install build | ||
|
||
echo "Build and install libccd" | ||
cd libccd | ||
cmake . | ||
make -j4 | ||
make install | ||
cd .. | ||
|
||
echo "Build and install octomap" | ||
cd octomap | ||
cmake . | ||
make -j4 | ||
make install | ||
cd .. | ||
|
||
echo "Build and install fcl" | ||
cd fcl | ||
cmake . | ||
make -j4 | ||
make install | ||
cd .. | ||
|
||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
brew update > /dev/null | ||
|
||
# brew install git | ||
# brew install cmake | ||
# brew install eigen | ||
# brew install libccd | ||
brew install fcl | ||
|
||
# mkdir -p deps | ||
# cd deps | ||
# # Octomap | ||
# git clone https://github.com/OctoMap/octomap | ||
# cd octomap | ||
# git checkout tags/v1.8.0 | ||
# mkdir build | ||
# cd build | ||
# cmake .. | ||
# make | ||
# sudo make install | ||
|
||
# cd .. | ||
# cd .. | ||
# cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<# | ||
Originally based on script written by Pebaz (https://github.com/Pebaz/python-fcl/blob/master/requirements/build_win32.ps1) | ||
but with many modification in order to use fcl 0.6.1 and install dependencies without admin rights. | ||
This script builds fcl and it's dependencies for python-fcl on Windows. | ||
It downloads, builds, installs: | ||
* fcl | ||
* libccd | ||
* eigen | ||
* octomap | ||
#> | ||
|
||
# Remember starting location for future usage | ||
$base_dir = Get-Location | ||
|
||
# Create a directory that encapsulates all dependencies | ||
mkdir -p deps; Set-Location deps | ||
|
||
# Build options | ||
$generator = "Visual Studio 16 2019" | ||
|
||
# All compiled depencies will be install in following folder | ||
$install_dir = "$base_dir\deps\install" | ||
|
||
|
||
#------------------------------------------------------------------------------ | ||
# Eigen | ||
Write-Host "Building Eigen" | ||
$eigen_ver = "3.3.9" | ||
Invoke-WebRequest -Uri https://gitlab.com/libeigen/eigen/-/archive/$eigen_ver/eigen-$eigen_ver.tar.gz -Outfile eigen-$eigen_ver.tar.gz | ||
tar -zxf "eigen-$eigen_ver.tar.gz" | ||
Set-Location "eigen-$eigen_ver" | ||
|
||
cmake -B build ` | ||
-D CMAKE_BUILD_TYPE=Release ` | ||
-G $generator ` | ||
-D BUILD_SHARED_LIBS=ON ` | ||
-D CMAKE_INSTALL_PREFIX=$install_dir | ||
cmake --install build | ||
|
||
Set-Location .. | ||
|
||
|
||
# ------------------------------------------------------------------------------ | ||
# LibCCD | ||
Write-Host "Building LibCCD" | ||
git clone --depth 1 --branch v2.1 https://github.com/danfis/libccd | ||
Set-Location libccd | ||
|
||
cmake -B build ` | ||
-D CMAKE_BUILD_TYPE=Release ` | ||
-G $generator ` | ||
-D BUILD_SHARED_LIBS=ON ` | ||
-D CMAKE_INSTALL_PREFIX=$install_dir | ||
cmake --build build --config Release --target install | ||
|
||
Set-Location .. | ||
|
||
|
||
# ------------------------------------------------------------------------------ | ||
# Octomap | ||
Write-Host "Building Octomap" | ||
git clone --depth 1 --branch v1.8.0 https://github.com/OctoMap/octomap | ||
Set-Location octomap | ||
|
||
cmake -B build ` | ||
-D CMAKE_PREFIX_PATH=$install_dir ` | ||
-D CMAKE_BUILD_TYPE=Release ` | ||
-G $generator ` | ||
-D BUILD_SHARED_LIBS=ON ` | ||
-D CMAKE_INSTALL_PREFIX=$install_dir ` | ||
-D BUILD_OCTOVIS_SUBPROJECT=OFF ` | ||
-D BUILD_DYNAMICETD3D_SUBPROJECT=OFF | ||
cmake --build build --config Release | ||
cmake --build build --config Release --target install | ||
|
||
Set-Location .. | ||
|
||
# ------------------------------------------------------------------------------ | ||
# FCL | ||
Write-Host "Building FCL" | ||
git clone --depth 1 --branch v0.6.1 https://github.com/flexible-collision-library/fcl | ||
Set-Location fcl | ||
|
||
cmake -B build ` | ||
-D CMAKE_PREFIX_PATH=$install_dir ` | ||
-D CMAKE_BUILD_TYPE=Release ` | ||
-G $generator ` | ||
-D CMAKE_INSTALL_PREFIX=$install_dir | ||
|
||
cmake --build build --config Release --target install | ||
Set-Location .. | ||
|
||
# ------------------------------------------------------------------------------ | ||
# Python-FCL | ||
|
||
Write-Host "Copying dependent DLLs" | ||
Copy-Item $install_dir\bin\octomap.dll $base_dir\src\fcl | ||
Copy-Item $install_dir\bin\octomath.dll $base_dir\src\fcl | ||
Copy-Item $install_dir\bin\ccd.dll $base_dir\src\fcl | ||
|
||
Set-Location $base_dir | ||
Write-Host "All done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<# | ||
This script install precompiled dependencies to build python-fcl on Windows: | ||
* fcl | ||
* libccd | ||
* eigen | ||
* octomap | ||
#> | ||
|
||
# Remember starting location for future usage | ||
$base_dir = Get-Location | ||
# Binaries folder | ||
$install_dir = "$base_dir\deps\install" | ||
|
||
|
||
$file_name = "PrecompiledDependenciesWindows.zip" | ||
Invoke-WebRequest -Uri "https://github.com/CyrilWaechter/python-fcl/releases/download/v0.6.1/$file_name" -Outfile $file_name | ||
Expand-Archive $file_name -DestinationPath deps | ||
|
||
|
||
# ------------------------------------------------------------------------------ | ||
# Python-FCL | ||
|
||
Write-Host "Copying dependent DLLs" | ||
Copy-Item $install_dir\bin\octomap.dll $base_dir\src\fcl | ||
Copy-Item $install_dir\bin\octomath.dll $base_dir\src\fcl | ||
Copy-Item $install_dir\bin\ccd.dll $base_dir\src\fcl | ||
|
||
Set-Location $base_dir | ||
Write-Host "All done!" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.