Project update‎ > ‎

20130107-gen-PartBasedDetector building

posted Jan 7, 2013, 3:30 AM by 陳建儒
modify:
新增FindEigen.cmake檔案在/home/islab/workspace
/home/islab/workspace/PartBasedDetector-master/src資料夾複製到/home/islab/workspace
修改在/home/islab/workspace的CMakeLists.txt如下:
7-11行:把功能關掉
option(BUILD_EXECUTABLE "Build as executable to test functionality"                     ON)
option(BUILD_DOC        "Build documentation with Doxygen"                              OFF)
option(WITH_OPENMP      "Build with OpenMP support for multithreading"                  OFF)
option(WITH_ECTO        "Build with ECTO bindings if building in a Catkin environment"  OFF)
option(WITH_ROS         "Build with ROS bindings if building in a Catkin environment"   OFF)
86-89行:加上使用函式庫之絕對路徑
set(BOOST_ROOT "/home/islab/workdir/library/boost")
set(OPENCV_ROOT "~/Desktop/OpenCV-2.0.0")
set(EIGEN_ROOT "/home/islab/workdir/library/eigen-3.1.2")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})


修改install PCL:
sudo aptitude install libpcl-all

install FLANN :
$cd flann-x.y.z-src
$ mkdir build
$ cd build
$ cmake ..
$ make

install HDF5 
$ sudo apt-get install libhdf5-serial-dev
$ sudo apt-get install libhdf5-mpich-dev

install ROS
$ sudo apt-get install ros-fuerte-pcl

install BOOST 
sudo apt-get install libboost-dev libboost-doc
http://www.blog.highub.com/linux/install-c-boost-on-ubuntu/
http://stackoverflow.com/questions/5759434/boost-installation

install VTK
 1.sudo apt-get install libvtk5.2(只能更新到5.2版,故不採用)
2.mkdir VTK_BUILD
    cd VTK_BUILD
    ccmake ../VTK
    sudo make -j 8 install
http://compgroups.net/comp.graphics.api.opengl/how-can-i-install-opengl-on-ubuntu/244967

install OpenGL

直接打下列指令出現error:
sudo apt-get install libgl1-mesa-dev
error:
Depends: libgl1-mesa-glx (= 7.7.1-1ubuntu2) but 7.7.1-1ubuntu3 is to be installed libglu1-mesa-dev
查網路說可能是第三方函式庫引起的問題,故先clean一下再安裝,試了後可成功安裝
sudo apt-get remove libgl1-mesa-glx && sudo apt-get update && sudo apt-get install libgl1-mesa-dev
http://bbs.csdn.net/topics/380097124



Comments