yuxng / PoseCNN

A Convolutional Neural Network for 6D Object Pose Estimation in Cluttered Scenes
https://rse-lab.cs.washington.edu/projects/posecnn/
MIT License
744 stars 242 forks source link

Synthesize compiling issue #86

Open liuyunyao1996 opened 5 years ago

liuyunyao1996 commented 5 years ago

Hi I meet a problem when compile synthesize, the environment version I use is Tensorflow: 1.8 (build from source) CUDA: 9.0 CUDNN: 7.0.5 Eigen: 3.3.0 Ubuntu 16.04 gcc: 4.8 cmake: 3.10 And all the other dependencies I install are fellow the guidelinehttps://github.com/Kaju-Bubanja/PoseCNN of @Kaju-Bubanja , I have compile the kinect_fusion successfully, but when I compile synthesize, I did cmake and get:

CMake Error at /usr/share/pcl-1.8/PCLConfig.cmake:45 (message): PCL can not be found on this machine Call Stack (most recent call first): /usr/share/pcl-1.8/PCLConfig.cmake:773 (pcl_report_not_found) CMakeLists.txt:22 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/yunyao/myGit/PoseCNN/lib/synthesize/build/CMakeFiles/CMakeOutput.log". See also "/home/yunyao/myGit/PoseCNN/lib/synthesize/build/CMakeFiles/CMakeError.log".

Then I fellow the guidelinehttps://askubuntu.com/questions/916260/how-to-install-point-cloud-library-v1-8-pcl-1-8-0-on-ubuntu-16-04-2-lts-for to install pcl, the version is pcl-1.8.0, when I cmake pcl I got:

-- Boost version: 1.67.0 -- Found the following Boost libraries: -- filesystem -- thread -- date_time -- iostreams -- system -- chrono -- atomic -- regex -- DOXYGEN_FOUND -- HTML_HELP_COMPILER -- Found CPack generators: DEB -- The following subsystems will be built: -- common -- kdtree -- octree -- search -- sample_consensus -- filters -- 2d -- geometry -- io -- features -- ml -- segmentation -- surface -- registration -- keypoints -- tracking -- recognition -- stereo -- gpu_containers -- gpu_utils -- gpu_octree -- gpu_features -- gpu_segmentation -- tools -- The following subsystems will not be built: -- visualization: VTK was not found. -- apps: Disabled: visualization missing. -- outofcore: Requires visualization. -- examples: Code examples are disabled by default. -- gpu_kinfu: OpenNI was not found or was disabled by the user. -- gpu_kinfu_large_scale: OpenNI was not found or was disabled by the user. -- gpu_people: Disabled by default. -- gpu_surface: Disabled by default. -- gpu_tracking: Disabled by default. -- people: Requires visualization. -- simulation: Disabled: visualization missing. -- global_tests: No reason -- Configuring done -- Generating done -- Build files have been written to: /home/yunyao/myGit/pcl/build

It seems that I did not install pcl completely and the reason is "VTK not found". But I have already build VTK 7.1.0 from source. After I install pcl above I still can not compile synthesize because of the not found pcl issue. Is there any solution of this? How to install pcl completely and compile synthesize?

Forgot to mention that when I install pcl and VTK above I switch gcc from 4.8.5 to 5.4.0 because of the incompatibility. Should I try to downgrade the pcl and VTK version?

liuyunyao1996 commented 5 years ago

Update: Solved this problem by re-download the pcl source code by

wget https://github.com/PointCloudLibrary/pcl/archive/pcl-1.8.0.tar.gz

but not

git clone https://github.com/PointCloudLibrary/pcl.git

Then compile synthesize and met some errors, the GL_SHADER_STORAGE_BUFFER error solved by followinghttps://github.com/stevenlovegrove/Pangolin/issues/268 and CV_P3P CV_EPNP error solved by following https://github.com/yuxng/PoseCNN/issues/85.

At last when I do make, the error I got is

[ 75%] Building CXX object CMakeFiles/synthesizer.dir/Hypothesis.cpp.o In file included from /home/yunyao/myGit/PoseCNN/lib/synthesize/Hypothesis.h:34:0, from /home/yunyao/myGit/PoseCNN/lib/synthesize/Hypothesis.cpp:28: /home/yunyao/myGit/PoseCNN/lib/synthesize/types.h: In function ‘cv::Mat jp::float2double(cv::Mat&)’: /home/yunyao/myGit/PoseCNN/lib/synthesize/types.h:159:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned i = 0; i < fmat.cols; i++) ^ /home/yunyao/myGit/PoseCNN/lib/synthesize/types.h:160:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned j = 0; j < fmat.rows; j++) ^ /home/yunyao/myGit/PoseCNN/lib/synthesize/types.h: In function ‘cv::Mat jp::double2float(cv::Mat&)’: /home/yunyao/myGit/PoseCNN/lib/synthesize/types.h:176:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned i = 0; i < dmat.cols; i++) ^ /home/yunyao/myGit/PoseCNN/lib/synthesize/types.h:177:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned j = 0; j < dmat.rows; j++) ^ make[2]: No rule to make target '/usr/lib/x86_64-linux-gnu/libjsoncpp.so', needed by 'libsynthesizer.so'. Stop. CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/synthesizer.dir/all' failed make[1]: [CMakeFiles/synthesizer.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

It seems I need to compile some other libraries, before this I have already compiling kinect_fusion completely. How to solve this issue?

yunxijun commented 5 years ago

@liuyunyao1996 can we become qq friend to go futher comunicate ? my qq 2318085206

Guo-Ling commented 3 years ago

Then compile synthesize and met some errors, the GL_SHADER_STORAGE_BUFFER error solved by followinghttps://github.com/stevenlovegrove/Pangolin/issues/268 and CV_P3P CV_EPNP error solved by following https://github.com/yuxng/PoseCNN/issues/85.

I have the same error. Can you tell me how to upgrade OpenGL to version 4.3? And the[https://github.com/yuxng/PoseCNN/issues/85 has been closed. Can you tell me how to solve the problem?

btknzn commented 2 years ago

Sorry I have also same error. How did you solve it ?