uoip / pangolin

Python binding of 3D visualization library Pangolin
MIT License
285 stars 90 forks source link

Can anyone compile this? #33

Open kevkid opened 3 years ago

kevkid commented 3 years ago

Ubuntu 20.04, I can't compile this at all.

kevkid commented 3 years ago

Okay I got it compiled I was getting this error:

make[2]: *** [src/CMakeFiles/_pangolin.dir/build.make:999: src/CMakeFiles/_pangolin.dir/video/drivers/ffmpeg.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:516: src/CMakeFiles/_pangolin.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

to solve we just so cmake -DBUILD_PANGOLIN_FFMPEG=OFF ..

Also if you get something like this:

pangolin/include/pangolin/display/opengl_render_state.h:40:10: fatal error: Eigen/Core: No such file or directory
   40 | #include <Eigen/Core>
      |          ^~~~~~~~~~~~

I just installed: sudo apt install libeigen3-dev

if you get this error:

Traceback (most recent call last):
  File "HelloPangolin.py", line 4, in <module>
    import pangolin
ImportError: /usr/lib/python3/dist-packages/pangolin.so: undefined symbol: _Py_ZeroStruct

you must also tell cmake where python is:

cmake -DBUILD_PANGOLIN_FFMPEG=OFF -DPYBIND11_PYTHON_VERSION=3.8 ..

NOTE: I did install eigen-3.3.4 from source

chopin1998 commented 3 years ago

Okay I got it compiled I was getting this error:

make[2]: *** [src/CMakeFiles/_pangolin.dir/build.make:999: src/CMakeFiles/_pangolin.dir/video/drivers/ffmpeg.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:516: src/CMakeFiles/_pangolin.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

to solve we just so cmake -DBUILD_PANGOLIN_FFMPEG=OFF ..

Also if you get something like this:

pangolin/include/pangolin/display/opengl_render_state.h:40:10: fatal error: Eigen/Core: No such file or directory
   40 | #include <Eigen/Core>
      |          ^~~~~~~~~~~~

I just installed: sudo apt install libeigen3-dev

if you get this error:

Traceback (most recent call last):
  File "HelloPangolin.py", line 4, in <module>
    import pangolin
ImportError: /usr/lib/python3/dist-packages/pangolin.so: undefined symbol: _Py_ZeroStruct

you must also tell cmake where python is:

cmake -DBUILD_PANGOLIN_FFMPEG=OFF -DPYBIND11_PYTHON_VERSION=3.8 ..

NOTE: I did install eigen-3.3.4 from source

also ubuntu 20.04

follow your method, compile fine, but make install error:

-- Install configuration: "Release"
CMake Error at src/cmake_install.cmake:49 (file):
  file INSTALL cannot find
  "/home/marco/tmp/build/pangolin/build/src/include/_pangolin/config.h": No
  such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:43 (include)

make: *** [Makefile:108: install] Error 1

did you meet this?