Pangolin icon indicating copy to clipboard operation
Pangolin copied to clipboard

Old compiler not C++17 compliant

Open HU-517 opened this issue 3 years ago • 6 comments

make[1]: *** [CMakeFiles/pango_vars.dir/all] Error 2 /home/hu/Software/Pangolin-master/components/pango_windowing/src/display_x11.cpp: In member function 'virtual void pangolin::X11Window::ProcessEvents(): /home/hu/Software/Pangolin-master/components/pango_windowing/src/display_x11.cpp:403:13: error: no matching function for call to 'pangolin::MouseEvent::MouseEvent()' })); ^

HU-517 avatar Sep 15 '21 11:09 HU-517

Can you please give the full build output and say what platform you're on?

stevenlovegrove avatar Sep 16 '21 04:09 stevenlovegrove

I have met the same problem, and my platform is Ubuntu16.04 on VMware,the build output are shown below:

image

ssaye avatar Sep 17 '21 06:09 ssaye

Thanks for the info @ssaye. If you're on 16.04 (from 2016) I guess you're probably also on an old compiler.

I committed 914b5ef46bd409738f36045a00305bc514c4de49 in the hopes that it may help. Otherwise I'd recommend upgrading your compiler or fiddling with the syntax on those lines. Basically, it doesn't like the initialization of the subclass including the base-class fields but that is valid C++. Let me know if it works or if you find a code workaround that I can commit. I'll close for now.

stevenlovegrove avatar Sep 29 '21 21:09 stevenlovegrove

Sorry,I still get the same issue by using the latest code.

ivyone avatar Oct 06 '21 12:10 ivyone

Still get the same error too.... I'm using ubuntu1604 in VMware

Aaron-zyh avatar Oct 20 '21 12:10 Aaron-zyh

I made the same mistake.I am run ROS ubuntu 16.04 kinetic,I installed eigen3 3.3.7 and opencv 2.4.9.1。I am do this code: `cd ~/your_fav_code_directory git clone --recursive https://github.com/stevenlovegrove/Pangolin.git cd Pangolin

Install dependencies (as described above, or your preferred method)

./scripts/install_prerequisites.sh recommended

Configure and build

mkdir build && cd build cmake .. cmake --build .` it‘s build error,please help me image

DandyLorenz avatar Nov 10 '21 04:11 DandyLorenz