So, I haven't run ubuntu in probably 9 years, but let's see what I can remember.
First thing that will probably help is making sure color mode is supported in your terminal and set up in bash. It'll help with navigating around and telling what's going on (I would expect it to be on by default, but if the terminal is monochrome, that'd be the first thing to fix).
You should be able to get cmake installed system wide, no need to build it from source.
- Code: Select all
sudo apt-get install cmake
If you do, for some reason, need to build cmake from source, use dpkg to do it.
- Code: Select all
sudo apt-get build-dep cmake
apt-get source cmake
Note no sudo on the second command. This will create a local copy of the cmake source (in a directory called cmake-<version>, currently cmake-3.7.2 ). You can then edit the cmake source code for whatever changes are needed, then
- Code: Select all
cd cmake-3.7.2
dpkg-buildpackage
which will build a local copy of the .debs for cmake.
As I said, I would be surprised if that's needed, but that is the general procedure for custom building packages on debian/ubuntu systems.
Once you have cmake set up, you should be able to checkout newton from git:
- Code: Select all
git clone https://github.com/MADEAPPS/newton-dynamics
Then make a cmake build folder in the source tree, and invoke cmake.
- Code: Select all
cd newton-dynamics
mkdir build
cd build
cmake ..
Once you get cmake working properly (the above will fail noisily), you can then call
- Code: Select all
make
to build the default targets.