meekys / cam_overlay

MIT License
8 stars 3 forks source link

can't build cpp branch #30

Open Jpower2023 opened 1 year ago

Jpower2023 commented 1 year ago

Hello,

I'm currently trying to build cam_overlay_cpp on Crankshaft-NG. Unfortunately, I'm getting the following error message in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY) Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.16/Modules/FindOpenGL.cmake:397 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) src/Gl/CMakeLists.txt:4 (find_package)

-- Configuring incomplete, errors occurred! See also "/opt/crankshaft/cam_overlay-cpp/CMakeFiles/CMakeOutput.log".

Does anyone have any ideas regarding this? I've already tried modifying RaspberryPi.cmake l (ike this post https://github.com/meekys/cam_overlay/issues/25#issuecomment-707107587), but without success.