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

Error cmake indi-rpicam #798

Closed
Astro-Otter-Space opened this issue Jun 9, 2023 · 4 comments
Closed

Error cmake indi-rpicam #798

Astro-Otter-Space opened this issue Jun 9, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Astro-Otter-Space
Copy link

Astro-Otter-Space commented Jun 9, 2023

Describe the bug
I'm trying to compile indi_rpicam driver following README.

To Reproduce
At first i had

astro-otter@astroloutre:~/Projects/build/indi-rpicam$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rpicam
-- The CXX compiler identification is GNU 12.2.0
-- The C compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test COMPATIBLE_FORTIFY_SOURCE
-- Performing Test COMPATIBLE_FORTIFY_SOURCE - Success
-- Found INDI: /usr/lib/aarch64-linux-gnu/libindidriver.so (found version "2.0.2") 
-- Found CFITSIO 4.2.0: /usr/lib/aarch64-linux-gnu/libcfitsio.so
-- Found NOVA: /usr/lib/aarch64-linux-gnu/libnova.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Found USB1: /usr/lib/aarch64-linux-gnu/libusb-1.0.so (found version "1.0.26") 
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME - Success
-- Found FFTW3: /usr/lib/aarch64-linux-gnu/libfftw3.so
-- Found FFTW3: /usr/lib/aarch64-linux-gnu/libfftw3.so
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) 
-- Could NOT find GMock (missing: GMOCK_LIBRARY GMOCK_INCLUDE_DIR) 
-- GTEST not found, not building unit tests
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
brcmEGL_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
brcmGLESv2_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
mmal_core_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
mmal_util_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
mmal_vc_client_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam

I have install GMOCK* and GTEST* libraries with

sudo apt install libgtest-dev libgmock-dev

I'm retrying compilation :

-- The CXX compiler identification is GNU 12.2.0
-- The C compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test COMPATIBLE_FORTIFY_SOURCE
-- Performing Test COMPATIBLE_FORTIFY_SOURCE - Success
-- Found INDI: /usr/lib/aarch64-linux-gnu/libindidriver.so (found version "2.0.2") 
-- Found CFITSIO 4.2.0: /usr/lib/aarch64-linux-gnu/libcfitsio.so
-- Found NOVA: /usr/lib/aarch64-linux-gnu/libnova.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Found USB1: /usr/lib/aarch64-linux-gnu/libusb-1.0.so (found version "1.0.26") 
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME - Success
-- Found FFTW3: /usr/lib/aarch64-linux-gnu/libfftw3.so
-- Found FFTW3: /usr/lib/aarch64-linux-gnu/libfftw3.so
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found GTest: /usr/lib/aarch64-linux-gnu/cmake/GTest/GTestConfig.cmake (found version "1.12.1")  
-- Found GMock: /usr/lib/aarch64-linux-gnu/libgmock.a  
-- Building unit tests
-- GTEST_BOTH_LIBRARIES GTest::gtest;GTest::gtest_main
-- GTEST_MAIN_LIBRARIES GTest::gtest_main
-- GTEST_LIBRARIES GTest::gtest
-- GTEST_INCLUDE_DIRS 
-- GMOCK_LIBRARIES /usr/lib/aarch64-linux-gnu/libgmock.a
-- GMOCK_INCLUDE_DIRS /usr/include
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
brcmEGL_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
    linked by target "test_imx219" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
    linked by target "test_imx477" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
brcmGLESv2_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
    linked by target "test_imx219" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
    linked by target "test_imx477" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
mmal_core_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
    linked by target "test_imx219" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
    linked by target "test_imx477" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
mmal_util_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
    linked by target "test_imx219" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
    linked by target "test_imx477" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
mmal_vc_client_LIBRARY
    linked by target "indi_rpicam" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam
    linked by target "test_imx219" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test
    linked by target "test_imx477" in directory /home/astro-otter/Projects/indi-3rdparty/indi-rpicam/test

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

Desktop:
Raspberri PI 4 Model B - 4Gb
Hardware

uname -a
Linux astroloutre 6.2.0-1004-raspi #5-Ubuntu SMP PREEMPT Mon Apr  3 11:15:14 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

OS:

Distributor ID:	Ubuntu
Description:	Ubuntu 23.04
Release:	23.04
Codename:	lunar

Maybe a link with #566 ?
Thanks

@Astro-Otter-Space Astro-Otter-Space added the bug Something isn't working label Jun 9, 2023
@Mucephie
Copy link

Mucephie commented Jun 9, 2023

From what I can see, you are using Ubuntu lunar on your pi and the compiler is having a hard time finding the MMAL (multimedia abstraction layer) libraries which I believe are part of raspberry pi os as part of their userland. So it might not be related to #566 with arm64 architecture not being supported.

The rpicam INDI driver uses MMAL, the legacy control software for the pi cameras, while the libcamera INDI driver that is in development uses the more universal and modern libcamera system, which is not just arm64 compatable, but should be usable from non-raspberry pi os operating systems like Ubuntu lunar.

@Astro-Otter-Space
Copy link
Author

Thank you for the explaination :). On my previous raspberry pi 3, it wad Ubuntu Mate (not ubuntu classic like here) and i got MMAL libraries, raspistill etc who was ok. So to fix my problem, do i have an other solution than use ubuntu mate instead of lunar ? Or i have an other solution :) ?

@knro
Copy link
Collaborator

knro commented Aug 11, 2023

indi-rpicam is no longer maintained and will be phased out in favor of INDI Libcamera.

@knro knro closed this as completed Aug 11, 2023
@Astro-Otter-Space
Copy link
Author

All right, i'm waiting for this refactoring.
Could you explain somewhere how to use rpi camera with INDI Libcamera somewhere when it will be ready please ? TYhis page https://www.indilib.org/raspberry-pi/raspberry-pi-camera.html is outdated yet. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants