Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steps for ubuntu 14.04 #10

Open
kevinkit opened this issue Jul 25, 2017 · 5 comments
Open

Steps for ubuntu 14.04 #10

kevinkit opened this issue Jul 25, 2017 · 5 comments

Comments

@kevinkit
Copy link
Contributor

Since Ubuntu 16.04 seems to have some issues regarding to pangolin ( #7 ) and @JackHenry1992 successfully got the kinect_fusion code to compile on Ubuntu 14.04 , I am kindly asking to provide the steps needed to get it run on ubuntu 14.04. (see #9 for previous discussions)

@DonBilb0

@JackHenry1992
Copy link

JackHenry1992 commented Jul 25, 2017

All detail steps as follows:

pangolin

opengl build

git clone https://github.com/stevenlovegrove/Pangolin.git
git checkout 7bab0ae6b3e0971ae16e872ef8f5637d571ac2ac
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .

Sophus

needed correct version of Sophus

git clone https://github.com/strasdat/Sophus  
git checkout 341346e306d657ac8acaf052939ffd85dacd8f82
cd Sophus
mkdir build
cd build
cmake ..
make -j32
make install

nanoflann

download

mkdir build
cd build
cmake ..
make 
make install

Eigen

replace eigen use this version

tar -xzvf 
copy download eigen/* to /usr/include/eigen3/
copy download eigen/* to /usr/local/lib/python2.7/dist-packages/tensorflow/include/

Kinect_fusion

sudo apt-get install libnlopt-dev
sudo apt-get install libmetis-dev
sudo apt-get install liblapack-dev

Compile the Cython interface for RNN and KinectFusion

python setup.py build_ext --inplace

# if numpy/arrayobject.h not such file
# modify line 144 of setup.py
include_dirs =[numpy_include, ...]

run test

sudo pip install easydict
sudo apt-get install python-yaml

# create data link 
ln -s path/to/data data

./experiments/scripts/rgbd_scene_multi_rgbd.sh 0

@kevinkit
Copy link
Contributor Author

Thank you really much for that !
Are the steps chornological ordererd?

Pangolin needs a Eigen installation, does it need the provided Eigen isntallation, or the "normal" one?

@JackHenry1992
Copy link

JackHenry1992 commented Jul 25, 2017

I build Pangolin with the provided Eigen by @yuxng . Have you built ok?
For me, only Eigen ordered.

@wolf943134497
Copy link

Hi, @JackHenry1992 .Thank you really much for that !
I install all dependencies of KinectFusion, when Compile KinectFusion with cmake, I get the error

/home/gwm/DA-RNN/lib/kinect_fusion/include/df/prediction/raycast.h(17): error: explicit type is missing ("int" assumed)
/home/gwm/DA-RNN/lib/kinect_fusion/include/df/prediction/raycast.h(17): error: qualified name is not allowed
/home/gwm/DA-RNN/lib/kinect_fusion/include/df/prediction/raycast.h(17): error: expected a ")"
/home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(63): error: explicit type is missing ("int" assumed)
/home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(63): error: qualified name is not allowed
/home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(63): error: expected a ")"
/home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(129): error: explicit type is missing ("int" assumed)
/home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(129): error: qualified name is not allowed
/home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(129): error: expected a ")"
/home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/cameraModel.h(22): error: name followed by "::" must be a class or namespace name
/home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/camera.h(13): error: name followed by "::" must be a class or namespace name
/home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/camera.h(36): error: name followed by "::" must be a class or namespace name
/home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/cameraFactory.h(18): error: name followed by "::" must be a class or namespace name
/home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/cameraFactory.h(20): error: name followed by "::" must be a class or namespace name
/home/gwm/DA-RNN/lib/kinect_fusion/include/df/camera/poly3.h(26): error: name followed by "::" must be a class or namespace name
/home/gwm/DA-RNN/lib/kinect_fusion/./src/prediction//raycast.cu(155): error: no instance of function template "df::raycast" matches the specified type
16 errors detected in the compilation of "/tmp/tmpxft_00003140_00000000-7_raycast.cpp1.ii".

--error 0x2 --

CMake Error at kfusion_generated_raycast.cu.o.cmake:264 (message):
Error generating file
/home/gwm/DA-RNN/lib/kinect_fusion/build/CMakeFiles/kfusion.dir/src/prediction/./kfusion_generated_raycast.cu.o

seem like some Syntax error. Ubuntu14.04 CUDA8.0 cmake 3.5.2 gcc 4.8.5 .
Did you run successfully? Can you provide the environment configuration information? Thanks!

@kevinkit
Copy link
Contributor Author

Hi @wolf943134497 , I had this error, too and was able to resolve it with the correct Pangolin version and you may want to check out #7 and try the mentioned fixes there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants