Nimblephysics Build from The Source Code
The current latest version of Nimblephysics is v0.8.6 when this article is posted.
The OS is wsl2(I have changed the OS to ubuntu20.04 desktop) and the python is 3.7.12.
The GUI
The 0.8.6 version of Nimblephysics has trouble showing the anime scenes in the Localhost. It is a bug. Maybe it could be fixed in near future.
Anyway, v0.7.7 is a more stable version and the GUI function is available.
Steps To Build
Step 1
1 | https://github.com/nimblephysics/nimblephysics.git |
Git clone from the above link and switch to version 0.7.7.
Step 2
This step is based on your computer. If you are using a new environment, just follow the instruction of The dependency installation bash script. However, if you have installed some packages related to the study of robots, run this instruction python3 setup.py install --user
straightforward and install packages depending on the error messages will save you a lot of time.
The following files or packages need some attention.
The dependency installation bash script
This script lists several dependencies to be installed. However, some of them need to be treated carefully.
ezc3D
Not mentioned in the script. But we need it to build the file.
gRPC
The real version should be 1.35.0, not 1.33.2. When manually git clone
its third-party packages, remember to switch to the named version.
Meanwhile, the make install
should be executed carefully.
Tinyxm12
Add a line
1 | set(CMAKE_POSITION_INDEPENDENT_CODE ON) |
to its CMakeList.txt
. Otherwise, you will fail in the last step.
The rest to be installed or modified is based on the CMake error messages.
Conclusion
It takes me about 3 days to finish its building. On day 1, I messed up the system and had to reboot the whole virtual machine. On day 2, I finished most of the packages. On day 3, I fixed all the errors alarmed by the CMake under the guidance of my mentor.