Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can anyone compile this? #33

Open
kevkid opened this issue Oct 20, 2020 · 2 comments
Open

Can anyone compile this? #33

kevkid opened this issue Oct 20, 2020 · 2 comments

Comments

@kevkid
Copy link

kevkid commented Oct 20, 2020

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

@kevkid
Copy link
Author

kevkid commented Oct 28, 2020

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants