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 · 3 comments
Open

Can anyone compile this? #33

kevkid opened this issue Oct 20, 2020 · 3 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?

@PAPPY-JOE
Copy link

I can't get around this please, and I have tried everything here

/home/bu22mct2004/pangolin/src/image/image_io_jpg.cpp: In function ‘pangolin::TypedImage pangolin: LoadJpg(std::istream&)’: /home/bu22mct2004/pangolin/src/image/image_io_jpg.cpp:180:13: error: ‘uint8_t’ was not declared in this scope 180 | uint8_t* dstRow = (uint8_t*)image.RowPtr(y); | ^~~~~~~ /home/bu22mct2004/pangolin/src/image/image_io_jpg.cpp:11:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’? 10 | # include <jpeglib.h> +++ |+#include <cstdint> 11 | # ifdef _WIN_ /home/bu22mct2004/pangolin/src/image/image_io_jpg.cpp:180:22: error: ‘dstRow’ was not declared in this scope 180 | uint8_t* dstRow = (uint8_t*)image.RowPtr(y); | ^~~~~~ /home/bu22mct2004/pangolin/src/image/image_io_jpg.cpp:180:40: error: expected primary-expression before ‘)’ token 180 | uint8_t* dstRow = (uint8_t*)image.RowPtr(y); | ^ make[2]: *** [src/CMakeFiles/_pangolin.dir/build.make:188: src/CMakeFiles/_pangolin.dir/image/image_io_jpg.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:462: src/CMakeFiles/_pangolin.dir/all] Error 2 make: *** [Makefile:156: all] Error 2

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

3 participants