-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:mtao/mandoline
- Loading branch information
Showing
43 changed files
with
840 additions
and
140 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
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,3 @@ | ||
#!/bin/bash | ||
|
||
brew install eigen mpfr cgal cmake boost protobuf libomp mercurial |
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,4 @@ | ||
#!/bin/bash | ||
|
||
sudo apt install -y git cmake libboost-thread-dev libmpfr-dev libmpfrc++-dev libcgal-dev libeigen3-dev protobuf-compiler mercurial debhelper libgl-dev libopenal-dev libglfw3-dev libsdl2-dev libbullet-dev libglm-dev | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/package/homebrew/magnum-integration.rb b/package/homebrew/magnum-integration.rb | ||
index f49f5a0..0f7ca18 100644 | ||
--- a/package/homebrew/magnum-integration.rb | ||
+++ b/package/homebrew/magnum-integration.rb | ||
@@ -16,7 +16,7 @@ class MagnumIntegration < Formula | ||
def install | ||
system "mkdir build" | ||
cd "build" do | ||
- system "cmake", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DWITH_BULLET=ON", "-DWITH_DART=ON", "-DWITH_EIGEN=ON", "-DWITH_GLM=ON", "-DWITH_IMGUI=OFF", ".." | ||
+ system "cmake", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DWITH_BULLET=ON", "-DWITH_DART=ON", "-DWITH_EIGEN=ON", "-DWITH_GLM=ON", "-DWITH_IMGUI=ON", "-DIMGUI_DIR=IMDIR", ".." | ||
system "cmake", "--build", "." | ||
system "cmake", "--build", ".", "--target", "install" | ||
end |
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,14 @@ | ||
#!/bin/bash | ||
|
||
TMPDIR="$1" | ||
|
||
|
||
mkdir -p ${TMPDIR}/mosra; pushd ${TMPDIR}/mosra; | ||
for repo in corrade magnum magnum-integration; | ||
do git clone https://github.com/mosra/$repo; | ||
pushd $repo | ||
git checkout tags/v2019.10 | ||
popd | ||
done | ||
|
||
popd #mosra |
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,24 @@ | ||
#!/bin/bash | ||
# http://stackoverflow.com/questions/3572030/bash-script-absolute-path-with-os-x | ||
realpath() { | ||
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | ||
} | ||
|
||
TMPDIR="$1" | ||
IMGUI_DIR=$( realpath "$2" ) | ||
SCRIPT_DIR=$( realpath "$3" ) | ||
echo "SCRIPT DIR: ${SCRIPT_DIR}" | ||
echo "TMPDIR DIR: ${SCRIPT_DIR}" | ||
pushd "$TMPDIR/mosra" | ||
pushd magnum-integration; | ||
|
||
sed "s|IMDIR|${IMGUI_DIR}|g" ${SCRIPT_DIR}/magnum_integration_homebrew.patch > magnum_integration_imgui.patch | ||
patch -b ./package/homebrew/magnum-integration magnum_integration_imgui.patch | ||
popd #magnum integration | ||
|
||
for repo in corrade magnum magnum-integration; | ||
do pushd $repo; | ||
brew install package/homebrew/${repo}.rb | ||
popd | ||
done | ||
popd |
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,24 @@ | ||
#!/bin/bash | ||
realpath() { | ||
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | ||
} | ||
|
||
TMPDIR="$1" | ||
IMGUI_DIR=$( realpath "$2" ) | ||
SCRIPT_DIR=$( realpath "$3" ) | ||
pushd "${TMPDIR}/mosra" | ||
pushd magnum-integration; | ||
|
||
sed "s|IMDIR|${IMGUI_DIR}|g" ${SCRIPT_DIR}/magnum_integration_deb.patch > magnum_integration_imgui.patch | ||
patch -b ./package/debian/rules magnum_integration_imgui.patch | ||
popd #magnum integration | ||
|
||
for repo in corrade magnum magnum-integration; | ||
do pushd $repo; | ||
ln -s package/debian . | ||
# ignoring the dsc errors taht happen from magnum | ||
dpkg-buildpackage || true | ||
popd | ||
dpkg -i ${repo}*.deb | ||
done | ||
popd |
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,28 @@ | ||
#/bin/bash | ||
|
||
git submodule update --recursive --init | ||
|
||
#https://stackoverflow.com/questions/59895/get-the-source-directory-of-a-bash-script-from-within-the-script-itself | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
MANDOLINE_DIR="${SCRIPT_DIR}/../" | ||
IMGUI_DIR="${MANDOLINE_DIR}/extern/core/extern/imgui" | ||
|
||
CUR_DIR="$(pwd)" | ||
BUILD_DIR="${MANDOLINE_DIR}/build" | ||
|
||
mkdir -p "${BUILD_DIR}" | ||
|
||
bash ${SCRIPT_DIR}/fetch_dependencies_osx.sh | ||
|
||
bash ${SCRIPT_DIR}/magnum_setup.sh "${SCRIPT_DIR}" "${SCRIPT_DIR}" | ||
bash ${SCRIPT_DIR}/magnum_setup_osx.sh "${SCRIPT_DIR}" "${IMGUI_DIR}" "${SCRIPT_DIR}" | ||
|
||
pushd ${MANDOLINE_DIR}/extern | ||
hg clone http://bitbucket.org/eigen/eigen | ||
popd | ||
|
||
pushd "${BUILD_DIR}" | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DMTAO_CUSTOM_EIGEN_PATH=${MANDOLINE_DIR}/extern/eigen | ||
make -j$( nproc ) make_cutmesh_gui exploded_mesh | ||
popd |
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,28 @@ | ||
#/bin/bash | ||
|
||
git submodule update --recursive --init | ||
|
||
#https://stackoverflow.com/questions/59895/get-the-source-directory-of-a-bash-script-from-within-the-script-itself | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
MANDOLINE_DIR="${SCRIPT_DIR}/../" | ||
IMGUI_DIR="${MANDOLINE_DIR}/extern/core/extern/imgui" | ||
|
||
CUR_DIR="$(pwd)" | ||
BUILD_DIR="${MANDOLINE_DIR}/build" | ||
|
||
mkdir -p "${BUILD_DIR}" | ||
|
||
bash ${SCRIPT_DIR}/fetch_dependencies_ubuntu.sh | ||
|
||
bash ${SCRIPT_DIR}/magnum_setup.sh "${SCRIPT_DIR}" "${SCRIPT_DIR}" | ||
sudo bash ${SCRIPT_DIR}/magnum_setup_ubuntu.sh "${SCRIPT_DIR}" "${IMGUI_DIR}" "${SCRIPT_DIR}" | ||
|
||
pushd ${MANDOLINE_DIR}/extern | ||
hg clone http://bitbucket.org/eigen/eigen | ||
popd | ||
|
||
pushd "${BUILD_DIR}" | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DMTAO_CUSTOM_EIGEN_PATH=${MANDOLINE_DIR}/extern/eigen | ||
make -j$( nproc ) make_cutmesh_gui exploded_mesh | ||
popd |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ADD_EXECUTABLE(exploded_mesh main.cpp) | ||
find_package(Magnum REQUIRED GL Shaders GlxContext GlfwApplication SceneGraph MeshTools) | ||
find_package(Magnum REQUIRED GL Shaders GlxContext GlfwApplication SceneGraph | ||
MeshTools Trade) | ||
find_package(MagnumIntegration REQUIRED ImGui) | ||
TARGET_LINK_LIBRARIES(exploded_mesh mandoline mtao::visualization) |
Oops, something went wrong.