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

Some issues building with Bullseye #113

Open
RyLeeRyno opened this issue Aug 20, 2021 · 2 comments
Open

Some issues building with Bullseye #113

RyLeeRyno opened this issue Aug 20, 2021 · 2 comments

Comments

@RyLeeRyno
Copy link

RyLeeRyno commented Aug 20, 2021

Hello Goesers,

I'm new to Github so forgive me if I'm not providing build recommendations in the correct context.

To Summarize: Debian Bullseye introduced OpenCV 4 and Project 7 which are incompatible with the existing build. I've had to make a few modifications as follows:

CMakeLists.txt in the main folder.

  • Line 85 add: include_directories(BEFORE SYSTEM /usr/include/opencv4)

src/goesproc/CMakeLists.txt

  • Line 23 replace with: pkg_check_modules(OPENCV REQUIRED opencv4)

src/lib/packet_reader.h

  • Line 5 add: #include <stdint.h>

src/lib/packet_writer.h

  • Line 4 add: #include <stdint.h>

src/goesproc/config.cc

  • Line 210 replace with: auto img = cv::imread(path, cv::IMREAD_UNCHANGED);

src/goesproc/image.cc

  • Lines 302 and 309 replace: return std::move(out); with return out;

And lastly see #83

I hope this is helpful for anyone struggling with compiling goestools with Bullseye.
Thank you.

@RyLeeRyno RyLeeRyno changed the title Some issues building with Buster Some issues building with Bullseye Aug 26, 2021
@hjf
Copy link

hjf commented Nov 2, 2021

I added those changes but I'm getting this error on the latest Bullseye:

In file included from /home/pi/goestools/src/lib/packet_reader.cc:1:
/home/pi/goestools/src/lib/packet_reader.h:11:38: error: ‘uint8_t’ was not declared in this scope
   11 |   virtual bool nextPacket(std::array<uint8_t, 892>& out) = 0;
      |                                      ^~~~~~~
/home/pi/goestools/src/lib/packet_reader.h:11:50: error: template argument 1 is invalid
   11 |   virtual bool nextPacket(std::array<uint8_t, 892>& out) = 0;
      |                                                  ^
make[2]: *** [src/lib/CMakeFiles/packet_reader.dir/build.make:82: src/lib/CMakeFiles/packet_reader.dir/packet_reader.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1681: src/lib/CMakeFiles/packet_reader.dir/all] Error 2

I think in your comment you mentioned src/lib/packet_writer.h twice. One should be src/lib/packet_reader.h

@Higgy710
Copy link

Higgy710 commented Dec 17, 2021

CMakeLists.txt in the main folder.

Line 84 replace with: include_directories(BEFORE SYSTEM /usr/include/opencv4)

Replacing this messed up some dependencies.
Adding this line after 84 worked though.

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