yankailab / OpenKAI

OpenKAI: A modern framework for unmanned vehicle and robot control
GNU Affero General Public License v3.0
230 stars 93 forks source link

Guide for x86_64 is out of date? #12

Closed aprentis closed 6 years ago

aprentis commented 7 years ago

Ubuntu 16.04

I`ve tried to follow this guide: http://www.openkai.xyz/x86build.html and got errors while compiling jetson-inference. jetson-inference/tensorNet.h:159:12: error: ‘Dims3’ in namespace ‘nvinfer1’ does not name a type

Ive tried it with TensorRT 2.1 and 1.0 both. Also ive tried to build OpenKAI and got this: tensorRT.h:3:30: fatal error: cudaMappedMemory.h: No such file or directory.

What`s wrong with this guide?

yankailab commented 7 years ago

Hi Aprentis, looks like the dir to dependencies are not set correctly. Could you try ccmake to set up directories:

cd ~/src/jetson-inference/ mkdir build cd build ccmake ../ //<-Use ccmake instead of cmake, will open the configuration for cmake, set the directories according to your own environment, then press "c" multiple times and "g". make

Btw, currently it only support TensorRT 1.0. TensorRT 2.0 support is in my task list.

aprentis commented 7 years ago

Hi @yankailab, Thank you for your reply!

Ok, i`ve got it.

aprentis commented 7 years ago

@yankailab After ive run ccmake manually, ive got this. screenshot from 2017-07-13 14-30-35

Then i`ve run make. And nothing changed.

screenshot from 2017-07-13 14-33-34

ive tried to change CUDA_SDK_ROOT_DIR to /usr/local/cuda but there also was no success. Whats wrong with it now?

screenshot from 2017-07-13 14-44-34

yankailab commented 7 years ago

@aprentis , sorry it was my mistake, you dont have to do ccmake for jetson-inference, just cmake and make jetson-inference following its official guide and it should be fine if successfully built.

The problem is for OpenKAI, when ccmake for OpenKAI, have you set all the dir correctly acording to your environment? Cuda root etc. should be okay as they are found and set automatically, pay attention to TensorRT_include and TensorRT_lib as the two should be set manually according to your environment.

ccmake for OpenKAI

aprentis commented 7 years ago

@yankailab Ok, Thank you!

But jetson-inference does not build successfully on my x86_64, as i`ve mentioned above.

cudnn commented 7 years ago

Hi @yankailab may i only use i5 i7 cpu run openkai,dot not use nv card

cudnn commented 7 years ago

Hi @yankailab may i only use stero usb camera instade zed rgbd camera

yankailab commented 7 years ago

@aprentis I updated the install process, please refer here: http://www.openkai.xyz/x86build.html

yankailab commented 7 years ago

@cudnn at the moment I only tested with nvidia GPU installed, will add more support for non-nv setup in future. What kind of usb stereo camera are you going to use?

aprentis commented 7 years ago

@yankailab thank you for the manual. I've managed to pass recent errors, but now I have another problem. While compiling openKAI with Orb_Slam2_gpu my computer got stuck. It's absolutely frozen, even mouse does not move. I've repeated this situation and got the same result. Maybe I should disable ORB_Slam2?

img_0637

yankailab commented 7 years ago

@aprentis , hello, I never met such frozen, which version of gcc are you using? May not be the cause but could you try to remove -j option of make in build.sh?

aprentis commented 7 years ago

@yankailab yesterday I decided to leave my computer for some time and got this error. Today I'll try to build without -j option.
img_0638


Without -j option it`s compiled ok! Is there any additional manual about this kiss Files?

yankailab commented 6 years ago

Working on the documentation site for Kiss files, will be released on docs.openkai.xyz (hopefully) soon