yuxng / PoseCNN

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

Execute "cmake .." and "make" Error #73

Open niwanli opened 6 years ago

niwanli commented 6 years ago

When I execute "cmake .." and "make" output errors as follows. I can't solve them, especially, vtkRenderingPythonTkWidgets can't be found, and `PCL' can't be installed successfully.

fm@FM-DELL:~/niwanli/PoseCNN-master/lib/synthesize/build$ cmake ..
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   filesystem
--   thread
--   date_time
--   iostreams
--   serialization
--   chrono
--   atomic
--   regex
** WARNING ** io features related to pcap will be disabled
** WARNING ** io features related to png will be disabled
-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- looking for PCL_COMMON
-- looking for PCL_KDTREE
-- looking for PCL_OCTREE
-- looking for PCL_SEARCH
-- looking for PCL_IO
-- looking for PCL_SAMPLE_CONSENSUS
-- looking for PCL_FILTERS
-- looking for PCL_GEOMETRY
-- looking for PCL_FEATURES
-- looking for PCL_SEGMENTATION
-- looking for PCL_SURFACE
-- looking for PCL_REGISTRATION
-- looking for PCL_RECOGNITION
-- looking for PCL_KEYPOINTS
-- looking for PCL_VISUALIZATION
-- looking for PCL_PEOPLE
-- looking for PCL_OUTOFCORE
-- looking for PCL_TRACKING
-- looking for PCL_APPS
-- Could NOT find PCL_APPS (missing:  PCL_APPS_LIBRARY) 
-- looking for PCL_MODELER
-- looking for PCL_IN_HAND_SCANNER
-- looking for PCL_POINT_CLOUD_EDITOR
-- xFusion root: /home/fm/niwanli/PoseCNN-master/lib/synthesize/../kinect_fusion
-- pangolin: /home/fm/niwanli/Pangolin/include;/home/fm/niwanli/Pangolin/build/src/include;/usr/include;/usr/include;/usr/include
-- Configuring done
CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA.cmake:1649 (add_library):
  Cannot generate a safe runtime search path for target synthesizer because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/lib
      /home/fm/anaconda3/lib
    runtime library [libtiff.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libfreetype.so.6] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libexpat.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libxml2.so.2] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libQt5OpenGL.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libQt5WebKitWidgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libQt5WebKit.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libQt5Network.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libQt5Widgets.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libQt5Gui.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libQt5Sql.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib
    runtime library [libQt5Core.so.5] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/fm/anaconda3/lib

  Some of these libraries may not be found correctly.
Call Stack (most recent call first):
  CMakeLists.txt:80 (cuda_add_library)

-- Generating done
-- Build files have been written to: /home/fm/niwanli/PoseCNN-master/lib/synthesize/build
fm@FM-DELL:~/niwanli/PoseCNN-master/lib/synthesize/build$ make
[ 25%] Building CXX object CMakeFiles/synthesizer.dir/synthesize.cpp.o
In file included from /home/fm/niwanli/PoseCNN-master/lib/synthesize/synthesize.cpp:1:0:
/home/fm/niwanli/PoseCNN-master/lib/synthesize/synthesize.hpp:20:28: fatal error: assimp/cimport.h: on such file or directory.
compilation terminated.
CMakeFiles/synthesizer.dir/build.make:62: recipe for target 'CMakeFiles/synthesizer.dir/synthesize.cpp.o' failed
make[2]: *** [CMakeFiles/synthesizer.dir/synthesize.cpp.o] Error 1
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
drahmad89 commented 6 years ago

the same with me

atabakd commented 5 years ago

Me too, I get the fatal error: assimp/cimport.h: No such file or directory

UPDATE: Solved by running sudo apt install libassimp-dev

wangjunfeng90214 commented 5 years ago

I tried to cmake and make the kinect_fusion, but I met this error:

17 errors detected in the compilation of "/tmp/tmpxft_00007741_00000000-7_fusion.cpp1.ii".

--error 0x2 --

CMake Error at kinectFusion_generated_fusion.cu.o.cmake:266 (message): Error generating file /PycharmProjects/PoseCNN/lib/kinect_fusion/build/CMakeFiles/kinectFusion.dir/src/fusion/./kinectFusion_generated_fusion.cu.o

CMakeFiles/kinectFusion.dir/build.make:1147: recipe for target 'CMakeFiles/kinectFusion.dir/src/fusion/kinectFusion_generated_fusion.cu.o' failed make[2]: [CMakeFiles/kinectFusion.dir/src/fusion/kinectFusion_generated_fusion.cu.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/kinectFusion.dir/all' failed make[1]: [CMakeFiles/kinectFusion.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

How can I fix this error?

iris0329 commented 5 years ago

I tried to cmake and make the kinect_fusion, but I met this error:

17 errors detected in the compilation of "/tmp/tmpxft_00007741_00000000-7_fusion.cpp1.ii".

--error 0x2 --

CMake Error at kinectFusion_generated_fusion.cu.o.cmake:266 (message): Error generating file /PycharmProjects/PoseCNN/lib/kinect_fusion/build/CMakeFiles/kinectFusion.dir/src/fusion/./kinectFusion_generated_fusion.cu.o

CMakeFiles/kinectFusion.dir/build.make:1147: recipe for target 'CMakeFiles/kinectFusion.dir/src/fusion/kinectFusion_generated_fusion.cu.o' failed make[2]: [CMakeFiles/kinectFusion.dir/src/fusion/kinectFusion_generated_fusion.cu.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/kinectFusion.dir/all' failed make[1]: [CMakeFiles/kinectFusion.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

How can I fix this error?

i meet the same question!!! if i solve the problem i will come back to update


Update

i solve this problem in #50

dingshenglan commented 5 years ago

Me too, I get the fatal error: assimp/cimport.h: No such file or directory

UPDATE: Solved by running sudo apt install libassimp-dev

Me too, I get the fatal error: assimp/cimport.h: No such file or directory

UPDATE: Solved by running sudo apt install libassimp-dev

I met the same problem, but I cannot solve it by using this method, can you give me some other solutions?

iris0329 commented 5 years ago

seems this problem is because of you don't install pcl library. recommand u to have a try

tyseng92 commented 5 years ago

I am trying eigen 3.3.90, I used Eigen 3.2.92 before . the problem is solved !!!

I have updated the eigen to the latest version 3.3.7. But still unable to solve the error in compilation process. Below is the error I have encountered. @iris0329 do you have any idea to solve it?

# --error 0x1 -- CMake Error at kfusion_generated_nonrigid.cu.o.cmake:207 (message): Error generating /home/xxx/catkin_ws/src/PoseCNN/lib/kinect_fusion/build/CMakeFiles/kfusion.dir/src/transform/./kfusion_generated_nonrigid.cu.o CMakeFiles/kfusion.dir/build.make:161: recipe for target 'CMakeFiles/kfusion.dir/src/transform/kfusion_generated_nonrigid.cu.o' failed make[2]: *** [CMakeFiles/kfusion.dir/src/transform/kfusion_generated_nonrigid.cu.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/kfusion.dir/all' failed make[1]: *** [CMakeFiles/kfusion.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

huckl3b3rry87 commented 4 years ago

I am getting the same error

CMake Error at kfusion_generated_nonrigid.cu.o.cmake:266 (message):
  Error generating file
  /root/visuotactile_pose_estimation_ws/src/pose_refinement/lib/kinect_fusion/CMakeFiles/kfusion.dir/src/transform/./kfusion_generated_nonrigid.cu.o

CMakeFiles/kinectFusion.dir/build.make:5465: recipe for target 'CMakeFiles/kfusion.dir/src/transform/kfusion_generated_nonrigid.cu.o' failed
make[2]: *** [CMakeFiles/kfusion.dir/src/transform/kfusion_generated_nonrigid.cu.o] Error 1

I also tried several versions of eigen and followed https://github.com/yuxng/PoseCNN/pull/54

any suggestions @Kaju-Bubanja

Some Versions

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Tue_Jun_12_23:07:04_CDT_2018
Cuda compilation tools, release 9.2, V9.2.148
cmake --version
cmake version 3.5.1

Installation instructions I used as per https://github.com/yuxng/PoseCNN/pull/54

# update boost
apt-get update
#apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev
apt install wget
cd /opt
wget -O boost_1_67_0.tar.gz https://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.gz/download
tar xzvf boost_1_67_0.tar.gz
cd boost_1_67_0/
./bootstrap.sh --prefix=/usr/
./b2
./b2 install
cat /usr/include/boost/version.hpp | grep "define BOOST_LIB_VERSION"

cd /opt
git clone https://gitlab.com/libeigen/eigen.git
cd eigen
git checkout 3.3.0
mkdir build
cd build
cmake ..
make
make install

cd /opt
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
git reset --hard c2a6ef524401945b493f14f8b5b8aa76cc7d71a9
mkdir build
cd build
cmake ..
cmake --build .
make install

cd /opt
git clone git://github.com/stevengj/nlopt
cd nlopt
git reset --hard 74e647b667f7c4500cdb4f37653e59c29deb9ee2
mkdir build
cd build
cmake ..
make
make install

cd /opt
git clone https://github.com/strasdat/Sophus
cd Sophus
git reset --hard ceb6380a1584b300e687feeeea8799353d48859f
mkdir build
cd build
cmake ..
make
make install
huckl3b3rry87 commented 4 years ago

also, when I run

/lib/kinect_fusion/build# cmake ..

I get:

-- Found Eigen3: /usr/include/eigen3 (found version 3.2)

where it seems like it should be using

-- Configured Eigen 3.3.0

which was part of the output to installing Eigen, as described above and corresponds to

pkg-config --modversion eigen3

which gives

3.3.0
huckl3b3rry87 commented 4 years ago

OK...finally got it to build

# update boost
apt-get update
#apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev
apt install wget
cd /opt
wget -O boost_1_67_0.tar.gz https://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.gz/download
tar xzvf boost_1_67_0.tar.gz
cd boost_1_67_0/
./bootstrap.sh --prefix=/usr/
./b2
./b2 install
cat /usr/include/boost/version.hpp | grep "define BOOST_LIB_VERSION"

# change eigen version
apt remove libeigen3-dev
cd /opt
git clone https://gitlab.com/libeigen/eigen.git
cd eigen
git checkout 3.3.0
mkdir build
cd build
cmake ..
make
make install
# make a symbolic link
cd /usr/local/include
ln -sf eigen3/Eigen Eigen
ln -sf eigen3/unsupported unsupported
ln -sf eigen3/Eigen /usr/include/Eigen
# TODO make a patch in
#/usr/local/include/eigen3/Core
#change: include <math_functions.hpp> TO: include <cuda_runtime.h>
cp -r /usr/local/include/eigen3 /usr/include/eigen3

cd /opt
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
git reset --hard c2a6ef524401945b493f14f8b5b8aa76cc7d71a9
#git reset --hard 1ec721d59ff6b799b9c24b8817f3b7ad2c929b83
mkdir build
cd build
cmake ..
cmake --build .
make install

cd /opt
git clone git://github.com/stevengj/nlopt
cd nlopt
git reset --hard 74e647b667f7c4500cdb4f37653e59c29deb9ee2
mkdir build
cd build
cmake ..
make
make install

cd /opt
git clone https://github.com/strasdat/Sophus
cd Sophus
git reset --hard ceb6380a1584b300e687feeeea8799353d48859f
# TODO include patch in CMake  (do we still need?)
#-find_package(Eigen3 REQUIRED)
#+find_package(PkgConfig)
#+pkg_search_module(Eigen3 REQUIRED eigen3)
mkdir build
cd build
cmake ..
make
make install

cd /opt
git clone https://github.com/jlblancoc/nanoflann
cd nanoflann
git reset --hard ad7547f4e6beb1cdb3e360912fd2e352ef959465
mkdir build
cd build
cmake ..
make
make install

cd /root/visuotactile_pose_estimation_ws/src/pose_refinement/lib/kinect_fusion
mkdir build
cd build
cmake ..
cd ..
make
XiaoxianJin commented 3 years ago

Has anyone solved this problem yet?I have met the same one.

(base) kim@jxx:~/software/PoseCNN-master/lib/synthesize/build$ make
[ 25%] Building CXX object CMakeFiles/synthesizer.dir/synthesize.cpp.o
In file included from /home/kim/software/PoseCNN-master/lib/synthesize/../kinect_fusion/include/df/util/cudaHelpers.h:5:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/../kinect_fusion/include/df/optimization/linearSystems.h:7,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/../kinect_fusion/include/df/optimization/icp.h:8,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:47,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/local/cuda-10.0/include/device_functions.h:54:2: warning: #warning "device_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
 #warning "device_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead."
  ^
In file included from /home/kim/anaconda3/envs/posecnn/Pangolin/include/pangolin/pangolin.h:33:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:15,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = pangolin::GlBuffer; _Args = {const pangolin::GlBuffer&}]’:
/usr/include/c++/4.8/bits/stl_uninitialized.h:75:53:   required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlBuffer*, std::vector<pangolin::GlBuffer> >; _ForwardIterator = pangolin::GlBuffer*; bool _TrivialValueTypes = false]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:117:41:   required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlBuffer*, std::vector<pangolin::GlBuffer> >; _ForwardIterator = pangolin::GlBuffer*]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:258:63:   required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlBuffer*, std::vector<pangolin::GlBuffer> >; _ForwardIterator = pangolin::GlBuffer*; _Tp = pangolin::GlBuffer]’
/usr/include/c++/4.8/bits/stl_vector.h:316:32:   required from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = pangolin::GlBuffer; _Alloc = std::allocator<pangolin::GlBuffer>]’
/home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:105:7:   required from ‘boost::python::objects::value_holder<Value>::value_holder(PyObject*, A0) [with A0 = boost::reference_wrapper<const Synthesizer>; Value = Synthesizer; PyObject = _object]’
/usr/local/include/boost/python/object/make_instance.hpp:72:48:   [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/local/include/boost/python/object/class_metadata.hpp:227:80:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux2(T2*, Callback) [with T2 = Synthesizer; Callback = boost::integral_constant<bool, false>; T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/object/class_metadata.hpp:218:60:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux(void*) [with T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/object/class_metadata.hpp:204:43:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_() [with T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:450:29:   required from ‘void boost::python::class_<T, X1, X2, X3>::initialize(const DefVisitor&) [with DefVisitor = boost::python::init_base<boost::python::init<char*, char*> >; W = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:204:9:   required from ‘boost::python::class_<T, X1, X2, X3>::class_(const char*, const boost::python::init_base<DerivedT>&) [with DerivedT = boost::python::init<char*, char*>; W = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:250:60:   required from here
/home/kim/anaconda3/envs/posecnn/Pangolin/include/pangolin/gl/gl.h:210:5: error: ‘pangolin::GlBuffer::GlBuffer(const pangolin::GlBuffer&)’ is private
     GlBuffer(const GlBuffer&) {}
     ^
In file included from /usr/include/c++/4.8/vector:62:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:6,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/include/c++/4.8/bits/stl_construct.h:75:7: error: within this context
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^
In file included from /home/kim/anaconda3/envs/posecnn/Pangolin/include/pangolin/pangolin.h:33:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:15,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = pangolin::GlTexture; _Args = {const pangolin::GlTexture&}]’:
/usr/include/c++/4.8/bits/stl_uninitialized.h:75:53:   required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlTexture*, std::vector<pangolin::GlTexture> >; _ForwardIterator = pangolin::GlTexture*; bool _TrivialValueTypes = false]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:117:41:   required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlTexture*, std::vector<pangolin::GlTexture> >; _ForwardIterator = pangolin::GlTexture*]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:258:63:   required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlTexture*, std::vector<pangolin::GlTexture> >; _ForwardIterator = pangolin::GlTexture*; _Tp = pangolin::GlTexture]’
/usr/include/c++/4.8/bits/stl_vector.h:316:32:   required from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = pangolin::GlTexture; _Alloc = std::allocator<pangolin::GlTexture>]’
/home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:105:7:   required from ‘boost::python::objects::value_holder<Value>::value_holder(PyObject*, A0) [with A0 = boost::reference_wrapper<const Synthesizer>; Value = Synthesizer; PyObject = _object]’
/usr/local/include/boost/python/object/make_instance.hpp:72:48:   [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/local/include/boost/python/object/class_metadata.hpp:227:80:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux2(T2*, Callback) [with T2 = Synthesizer; Callback = boost::integral_constant<bool, false>; T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/object/class_metadata.hpp:218:60:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux(void*) [with T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/object/class_metadata.hpp:204:43:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_() [with T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:450:29:   required from ‘void boost::python::class_<T, X1, X2, X3>::initialize(const DefVisitor&) [with DefVisitor = boost::python::init_base<boost::python::init<char*, char*> >; W = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:204:9:   required from ‘boost::python::class_<T, X1, X2, X3>::class_(const char*, const boost::python::init_base<DerivedT>&) [with DerivedT = boost::python::init<char*, char*>; W = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:250:60:   required from here
/home/kim/anaconda3/envs/posecnn/Pangolin/include/pangolin/gl/gl.h:118:5: error: ‘pangolin::GlTexture::GlTexture(const pangolin::GlTexture&)’ is private
     GlTexture(const GlTexture&) {}
     ^
In file included from /usr/include/c++/4.8/vector:62:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:6,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/include/c++/4.8/bits/stl_construct.h:75:7: error: within this context
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^
CMakeFiles/synthesizer.dir/build.make:62: recipe for target 'CMakeFiles/synthesizer.dir/synthesize.cpp.o' failed
make[2]: *** [CMakeFiles/synthesizer.dir/synthesize.cpp.o] Error 1
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
renjiahao0928 commented 3 years ago

Has anyone solved this problem yet?I have met the same one.

(base) kim@jxx:~/software/PoseCNN-master/lib/synthesize/build$ make
[ 25%] Building CXX object CMakeFiles/synthesizer.dir/synthesize.cpp.o
In file included from /home/kim/software/PoseCNN-master/lib/synthesize/../kinect_fusion/include/df/util/cudaHelpers.h:5:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/../kinect_fusion/include/df/optimization/linearSystems.h:7,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/../kinect_fusion/include/df/optimization/icp.h:8,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:47,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/local/cuda-10.0/include/device_functions.h:54:2: warning: #warning "device_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp]
 #warning "device_functions.h is an internal header file and must not be used directly.  This file will be removed in a future CUDA release.  Please use cuda_runtime_api.h or cuda_runtime.h instead."
  ^
In file included from /home/kim/anaconda3/envs/posecnn/Pangolin/include/pangolin/pangolin.h:33:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:15,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = pangolin::GlBuffer; _Args = {const pangolin::GlBuffer&}]’:
/usr/include/c++/4.8/bits/stl_uninitialized.h:75:53:   required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlBuffer*, std::vector<pangolin::GlBuffer> >; _ForwardIterator = pangolin::GlBuffer*; bool _TrivialValueTypes = false]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:117:41:   required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlBuffer*, std::vector<pangolin::GlBuffer> >; _ForwardIterator = pangolin::GlBuffer*]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:258:63:   required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlBuffer*, std::vector<pangolin::GlBuffer> >; _ForwardIterator = pangolin::GlBuffer*; _Tp = pangolin::GlBuffer]’
/usr/include/c++/4.8/bits/stl_vector.h:316:32:   required from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = pangolin::GlBuffer; _Alloc = std::allocator<pangolin::GlBuffer>]’
/home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:105:7:   required from ‘boost::python::objects::value_holder<Value>::value_holder(PyObject*, A0) [with A0 = boost::reference_wrapper<const Synthesizer>; Value = Synthesizer; PyObject = _object]’
/usr/local/include/boost/python/object/make_instance.hpp:72:48:   [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/local/include/boost/python/object/class_metadata.hpp:227:80:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux2(T2*, Callback) [with T2 = Synthesizer; Callback = boost::integral_constant<bool, false>; T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/object/class_metadata.hpp:218:60:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux(void*) [with T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/object/class_metadata.hpp:204:43:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_() [with T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:450:29:   required from ‘void boost::python::class_<T, X1, X2, X3>::initialize(const DefVisitor&) [with DefVisitor = boost::python::init_base<boost::python::init<char*, char*> >; W = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:204:9:   required from ‘boost::python::class_<T, X1, X2, X3>::class_(const char*, const boost::python::init_base<DerivedT>&) [with DerivedT = boost::python::init<char*, char*>; W = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:250:60:   required from here
/home/kim/anaconda3/envs/posecnn/Pangolin/include/pangolin/gl/gl.h:210:5: error: ‘pangolin::GlBuffer::GlBuffer(const pangolin::GlBuffer&)’ is private
     GlBuffer(const GlBuffer&) {}
     ^
In file included from /usr/include/c++/4.8/vector:62:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:6,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/include/c++/4.8/bits/stl_construct.h:75:7: error: within this context
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^
In file included from /home/kim/anaconda3/envs/posecnn/Pangolin/include/pangolin/pangolin.h:33:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:15,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = pangolin::GlTexture; _Args = {const pangolin::GlTexture&}]’:
/usr/include/c++/4.8/bits/stl_uninitialized.h:75:53:   required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlTexture*, std::vector<pangolin::GlTexture> >; _ForwardIterator = pangolin::GlTexture*; bool _TrivialValueTypes = false]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:117:41:   required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlTexture*, std::vector<pangolin::GlTexture> >; _ForwardIterator = pangolin::GlTexture*]’
/usr/include/c++/4.8/bits/stl_uninitialized.h:258:63:   required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const pangolin::GlTexture*, std::vector<pangolin::GlTexture> >; _ForwardIterator = pangolin::GlTexture*; _Tp = pangolin::GlTexture]’
/usr/include/c++/4.8/bits/stl_vector.h:316:32:   required from ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = pangolin::GlTexture; _Alloc = std::allocator<pangolin::GlTexture>]’
/home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:105:7:   required from ‘boost::python::objects::value_holder<Value>::value_holder(PyObject*, A0) [with A0 = boost::reference_wrapper<const Synthesizer>; Value = Synthesizer; PyObject = _object]’
/usr/local/include/boost/python/object/make_instance.hpp:72:48:   [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/local/include/boost/python/object/class_metadata.hpp:227:80:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux2(T2*, Callback) [with T2 = Synthesizer; Callback = boost::integral_constant<bool, false>; T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/object/class_metadata.hpp:218:60:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_aux(void*) [with T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/object/class_metadata.hpp:204:43:   required from ‘static void boost::python::objects::class_metadata<T, X1, X2, X3>::register_() [with T = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:450:29:   required from ‘void boost::python::class_<T, X1, X2, X3>::initialize(const DefVisitor&) [with DefVisitor = boost::python::init_base<boost::python::init<char*, char*> >; W = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:204:9:   required from ‘boost::python::class_<T, X1, X2, X3>::class_(const char*, const boost::python::init_base<DerivedT>&) [with DerivedT = boost::python::init<char*, char*>; W = Synthesizer; X1 = boost::python::detail::not_specified; X2 = boost::python::detail::not_specified; X3 = boost::python::detail::not_specified]’
/home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:250:60:   required from here
/home/kim/anaconda3/envs/posecnn/Pangolin/include/pangolin/gl/gl.h:118:5: error: ‘pangolin::GlTexture::GlTexture(const pangolin::GlTexture&)’ is private
     GlTexture(const GlTexture&) {}
     ^
In file included from /usr/include/c++/4.8/vector:62:0,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.hpp:6,
                 from /home/kim/software/PoseCNN-master/lib/synthesize/synthesize.cpp:1:
/usr/include/c++/4.8/bits/stl_construct.h:75:7: error: within this context
     { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
       ^
CMakeFiles/synthesizer.dir/build.make:62: recipe for target 'CMakeFiles/synthesizer.dir/synthesize.cpp.o' failed
make[2]: *** [CMakeFiles/synthesizer.dir/synthesize.cpp.o] Error 1
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

same error,did you solve it?