Project update‎ > ‎

20121225-gen- Face pose estimation code study II

posted Jan 2, 2013, 8:51 PM by 陳建儒

PartBasedDetector 用編譯時發現至少3個read me裡面沒提到的library要安裝,分別為Boost, PCL, Eigen 三個函式庫要安裝才行

           cmake 介面:
 BUILD_DOC                        ON                                           
 BUILD_EXECUTABLE                 ON                                           
 Boost_DIR                        Boost_DIR-NOTFOUND                           
 CMAKE_BUILD_TYPE                 RelWithDebInfo                               
 CMAKE_INSTALL_PREFIX             /usr/local/lib                               
 OpenCV_DIR                       /home/islab/Desktop/OpenCV-2.0.0             
 PCL_DIR                          PCL_DIR-NOTFOUND                             
 WITH_ECTO                       ON                                           
 WITH_OPENMP                  ON                                           
 WITH_ROS                         ON                                           
 catkin_DIR                       catkin_DIR-NOTFOUND                          
 cvmatio_LIBRARIES                cvmatio_LIBRARIES-NOTFOUND  

進去看Cmakelist後如下89-91行,確定至少3個read me裡面沒提到的library要安裝
find_package(Boost REQUIRED)
find_package(OpenCV REQUIRED)
find_package(PCL REQUIRED)
find_package(Eigen REQUIRED)

沒安裝到的library就會出現下列錯誤訊息:
 CMake Error at CMakeLists.txt:91 (find_package):
   By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by "PCL", but
   CMake did not find one.

   Could not find a package configuration file provided by "PCL" with any of
   the following names:

     PCLConfig.cmake
     pcl-config.cmake

   Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR"
   to a directory containing one of the above files.  If "PCL" provides a
   separate development package or SDK, be sure it has been installed.



1.OpenCV無法找到資料夾
    ans :指定到未編譯的資料夾後解決 /home/islab/Desktop/OpenCV-2.0.0 

2. PCL的安裝步驟找到兩種方法,如下:
     a.Using prebuilt binaries:    http://pointclouds.org/downloads/linux.html
     b.Compiling from source:   http://pointclouds.org/downloads/source.html

2.1先採用a方法安裝

We currently support Ubuntu (Lucid, Maverick, Natty, Oneiric, Quantal) systems via PPA. The installation instructions are:
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-all
輸入第三行指令後沒有安裝成功,訊息如下
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libpcl-all: Depends: libpcl-1.6-all but it is not going to be installed
E: Broken packages
islab@ubuntu:~/workdir$ sudo apt-get install libpcl-all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libpcl-all: Depends: libpcl-1.6-all but it is not going to be installed
E: Broken packages

2.2 再試第b方法,版本為1.4.0

結果在cmake介面中發現PCL library 還需要先裝好FLANN library才行,真是一層又一層丫.....
 cmake 介面:
 Boost_DIR                        Boost_DIR-NOTFOUND                           
 CMAKE_BUILD_TYPE                 RelWithDebInfo                               
 CMAKE_CONFIGURATION_TYPES        Debug;Release                                
 CMAKE_INSTALL_PREFIX             /usr/local                                   
 FLANN_INCLUDE_DIR                FLANN_INCLUDE_DIR-NOTFOUND                   
 FLANN_LIBRARY                    FLANN_LIBRARY-NOTFOUND                       
 FLANN_LIBRARY_DEBUG              FLANN_LIBRARY_DEBUG-NOTFOUND                 
 PCL_VERSION                      1.4.0                           

            去FLANN library官網找編譯方法ing...
3. eigne 用最新版3.1.2照著裡面install檔案教的步驟安裝,成功
  cd build_dir
  cmake source_dir
  make install 
Comments