ipc-sim / rigid-ipc Goto Github PK
View Code? Open in Web Editor NEWRobust, intersection-free, simulations of rigid bodies.
Home Page: https://ipc-sim.github.io/rigid-ipc
License: MIT License
Robust, intersection-free, simulations of rigid bodies.
Home Page: https://ipc-sim.github.io/rigid-ipc
License: MIT License
Hi, I git clone the rigid-ipc, and use python build.py to compile the project.
It gives this error:
CMake Error at python/CMakeLists.txt:6 (rigid_ipc_download_project):
Unknown CMake command "rigid_ipc_download_project".
Call Stack (most recent call first):
python/CMakeLists.txt:13 (rigid_ipc_download_pybind11)
my cmake version is 3.16.3
os: ubuntu 20.04
python: miniconda with python 3.7
BTW, I also tried with:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
This can make with no mistakes.
I think something wrong with the python part?
Any suggestions? Thanks!
I tried some of the examples in the "fixtures" directory, and the simulator works great! Nice work!
However, I discovered that there are some examples that don't run either because their mesh files don't exist in the repo or because of some other problem.
For example, this example is missing its meshes:
https://github.com/ipc-sim/rigid-ipc/blob/main/fixtures/3D/mechanisms/expanding-lock-box.json#L11-L57
This example says [2021-09-30 19:57:28.039] [error] Invalid Json file
:
https://github.com/ipc-sim/rigid-ipc/blob/main/fixtures/2D/compactor.json
Here is what I typed:
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
-- GCC >= 4.9 detected, enabling colored diagnostics
-- Third-party: creating target 'Eigen3::Eigen'
-- Third-party: creating target 'igl::core'
-- Creating target: igl::core (igl)
-- Creating target: igl::opengl (igl_opengl)
-- Creating target: igl::opengl_glfw (igl_opengl_glfw)
-- Using X11 for window creation
-- Creating target: igl::opengl_glfw_imgui (igl_opengl_glfw_imgui)
-- Creating target: igl::png (igl_png)
-- Creating target: igl::predicates (igl_predicates)
-- Third-party: creating target 'nlohmann::json'
-- Third-party: creating target 'spdlog::spdlog'
-- Build spdlog: 1.9.0
-- Build type: Release
-- Generating install
-- Third-party: creating target 'finitediff::finitediff'
-- Third-party: creating targets 'Boost::boost'
-- Fetching Boost
-- Fetching Boost - done
-- Boost found: 1.71.0 /home/glenn/src/github.com/ipc-sim/rigid-ipc/build/_deps/boost-src
-- Found the following ICU libraries:
-- uc (required)
-- dt (required)
-- i18n (required)
-- Third-party: creating target 'TBB::tbb'
-- Third-party: creating target 'tight_inclusion::tight_inclusion'
-- Tight-Inclusion CCD bottom-level project
-- GCC >= 4.9 detected, enabling colored diagnostics
-- Searching for AVX...
-- Using CPU native flags for AVX optimization: -march=native
-- Found AVX 2.0 extensions, using flags: -march=native -mavx2 -mno-avx512f -mno-avx512pf -mno-avx512er -mno-avx512cd
-- Using Double Precision Floating Points
-- Third-party: creating target 'PolyFEM::polysolve'
[ 11%] Performing download step (git clone) for 'polysolve-populate'
Cloning into 'polysolve-src'...
fatal: reference is not a tree: a94e9b8ed8302d4b479533c67419f31addb1e987
CMake Error at polysolve-subbuild/polysolve-populate-prefix/tmp/polysolve-populate-gitclone.cmake:40 (message):
Failed to checkout tag: 'a94e9b8ed8302d4b479533c67419f31addb1e987'
CMakeFiles/polysolve-populate.dir/build.make:110: recipe for target 'polysolve-populate-prefix/src/polysolve-populate-stamp/polysolve-populate-download' failed
make[2]: *** [polysolve-populate-prefix/src/polysolve-populate-stamp/polysolve-populate-download] Error 1
CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/polysolve-populate.dir/all' failed
make[1]: *** [CMakeFiles/polysolve-populate.dir/all] Error 2
Makefile:102: recipe for target 'all' failed
make: *** [all] Error 2
CMake Error at /usr/local/cmake-3.18.2-Linux-x86_64/share/cmake-3.18/Modules/FetchContent.cmake:987 (message):
Build step for polysolve failed: 2
Call Stack (most recent call first):
/usr/local/cmake-3.18.2-Linux-x86_64/share/cmake-3.18/Modules/FetchContent.cmake:1082:EVAL:2 (__FetchContent_directPopulate)
/usr/local/cmake-3.18.2-Linux-x86_64/share/cmake-3.18/Modules/FetchContent.cmake:1082 (cmake_language)
/usr/local/cmake-3.18.2-Linux-x86_64/share/cmake-3.18/Modules/FetchContent.cmake:1125 (FetchContent_Populate)
cmake/recipes/polysolve.cmake:14 (FetchContent_MakeAvailable)
CMakeLists.txt:225 (include)
-- Configuring incomplete, errors occurred!
See also "/home/glenn/src/github.com/ipc-sim/rigid-ipc/build/CMakeFiles/CMakeOutput.log".
See also "/home/glenn/src/github.com/ipc-sim/rigid-ipc/build/CMakeFiles/CMakeError.log".
Any ideas how to fix this? It looks like a bad git reference in polysolve-src
, possibly.
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.