PoseCNN icon indicating copy to clipboard operation
PoseCNN copied to clipboard

cannot handel opengl problem

Open esdgdhln opened this issue 6 years ago • 8 comments

Hi,here: I met this kind errors,": error: ‘pangolin::GlBuffer::GlBuffer(const pangolin::GlBuffer&)’ is private",while using ubuntu14.04,the default opengl-version is 2.1. some discussion say that,using opengl version4.1 can avoid these error,however,as I know,opengl version is depend on nvida-driver,and if I install nvidia driver without "--no-opengl-files",I get struck in circular login while turn on computer.So,do you know how to avoid or solve it?Thank you.

esdgdhln avatar Jun 11 '18 07:06 esdgdhln

besides that,I got another error, "tensorflow.python.framework.errors_impl.NotFoundError: /home/sky/PoseCNN/Posecnn-0/PoseCNN-master/tools/../lib/hough_voting_layer/hough_voting.so: undefined symbol: _ZN2cv6String8allocateEm" ,I use opencv3.2.do anyone else have this problem?

esdgdhln avatar Jun 12 '18 08:06 esdgdhln

For pangolin error, you can comment out the "private:" in the code. You need to have ubuntu 16.04 to compile the c++ code.

yuxng avatar Jun 12 '18 18:06 yuxng

well,I cannot use 16.04 in other bugs.did the opencv version you use is 2.x?

esdgdhln avatar Jun 15 '18 01:06 esdgdhln

Is this the official solution? Private variables are private for a reason and should not be tinkered with, so if anybody finds a better solution please let us know.

Kaju-Bubanja avatar Aug 07 '18 10:08 Kaju-Bubanja

Hi, all. I tried out @yuxng 's suggested solution. It got me out of the "private" related problem.

But now I am facing this problem:

/home/mukit/PycharmProjects/surgeon/PoseCNN/lib/synthesize/synthesize.hpp:250:70: required from here /usr/include/c++/5/bits/stl_construct.h:75:7: error: use of deleted function ‘pangolin::GlBuffer::GlBuffer(const pangolin::GlBuffer&)’ { ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }

Abdul-Mukit avatar Dec 20 '18 03:12 Abdul-Mukit

@Abdul-Mukit If you have installed Pangolin before Eigen you have to install Pangolin again. (since it will be pointing at the old eigen which has the cuda bug mentioned here: https://devtalk.nvidia.com/default/topic/1026622/cuda-programming-and-performance/nvcc-can-t-compile-code-that-uses-eigen/

wget https://github.com/stevenlovegrove/Pangolin/archive/1ec721d59ff6b799b9c24b8817f3b7ad2c929b83.zip

Required Dependencies C++11 OpenGL (Desktop / ES / ES2) Glew (deb) sudo apt-get install libglew-dev CMake (for build environment) (deb) sudo apt-get install cmake Recommended Dependencies Python2 / Python3, for drop-down interactive console (deb) sudo apt-get install libpython2.7-dev (for pybind11) git submodule init && git submodule update (useful modules) sudo python -mpip install numpy pyopengl Pillow pybind11

Add folowing line to the CMakeLists.txt add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0) beause of error: https://github.com/yuxng/DA-RNN/issues/7

mkdir build cd build cmake .. cmake --build .

#If you would like to build the documentation and you have Doxygen installed, you can execute: cmake --build . --target doc

This Infos are from https://github.com/Kaju-Bubanja/PoseCNN/tree/docu_updated realy checkout his install guide.

And you should install Pangolin etc with:

sudo apt-get install gcc-4.8 sudo apt-get install g++-4.8

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 30

sudo update-alternatives --config gcc #press 1 to get to 4.8

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 30

sudo update-alternatives --config g++ #press 1 to get to 4.8

I hope something of this can help you, I forgot how I fixed this bug.

Luedeke avatar Dec 20 '18 11:12 Luedeke

@Luedeke Thank you, very much for your help. I reinstalled Pangolin but this time I used the c2a6ef524401945b493f14f8b5b8aa76cc7d71a9 commit the owner used. And this problem was solved. However, I got two new errors like the original "private" related problem in this issue. I simply commented the private declarations out and finally reached 100% build.

Abdul-Mukit avatar Dec 20 '18 22:12 Abdul-Mukit

Where did you comment out the "private"?

marmas92 avatar Aug 29 '19 09:08 marmas92