Closed Astro-Otter-Space closed 2 years ago
@lboclboc Any idea what's behind this issue?
Not really, if I understand the comment correctly you have recompiled the driver from source? Did you rebuild libindi also then? What commits of both repos did you use in that case.?
Sorry for very late answer. I've changed how to i want to run. I have indi-server with indi_rpicam installed on a raspberry pi (server side). I'm running it with ssh from client-side :
hamham@astroloutre:~$ indiserver -v indi_rpicam indi_v4l2_ccd
2021-06-09T20:17:01: startup: indiserver -v indi_rpicam indi_v4l2_ccd
2021-06-09T20:17:01: Driver indi_rpicam: pid=4804 rfd=3 wfd=6 efd=7
2021-06-09T20:17:01: Driver indi_v4l2_ccd: pid=4805 rfd=4 wfd=9 efd=10
2021-06-09T20:17:01: listening to port 7624 on fd 5
2021-06-09T20:17:01: Driver indi_rpicam: MMALDriver()
2021-06-09T20:17:01: Driver indi_rpicam: MMALDriver() - returning
2021-06-09T20:17:01: Driver indi_rpicam: ISGetProperties()
2021-06-09T20:17:01: Driver indi_rpicam: getDefaultName()
2021-06-09T20:17:01: Driver indi_rpicam: initProperties()
2021-06-09T20:17:01: Driver indi_rpicam: getDefaultName()
2021-06-09T20:17:01: Driver indi_rpicam: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2021-06-09T20:17:01: Driver indi_rpicam: snooping on Telescope Simulator.TELESCOPE_INFO
2021-06-09T20:17:01: Driver indi_rpicam: snooping on Telescope Simulator.GEOGRAPHIC_COORD
2021-06-09T20:17:01: Driver indi_rpicam: snooping on Telescope Simulator.TELESCOPE_PIER_SIDE
2021-06-09T20:17:01: Driver indi_rpicam: snooping on Rotator Simulator.ABS_ROTATOR_ANGLE
2021-06-09T20:17:01: Driver indi_rpicam: snooping on Focuser Simulator.ABS_FOCUS_POSITION
2021-06-09T20:17:01: Driver indi_rpicam: snooping on Focuser Simulator.FOCUS_TEMPERATURE
2021-06-09T20:17:01: Driver indi_rpicam: snooping on CCD Simulator.FILTER_SLOT
2021-06-09T20:17:01: Driver indi_rpicam: snooping on CCD Simulator.FILTER_NAME
2021-06-09T20:17:01: Driver indi_rpicam: snooping on SQM.SKY_QUALITY
Server IP is 10.42.0.1. Client IP is 10.42.0.233
Client-side, on a laptop, i have kstars/ekos installed and here i'm a bit confused about how to proceed. When i'm running Kstars, in "Tools > device > device manager > client", i have added my server with a name, adress IP on host and port. First question, in "Tools > device > Custom driver", there is not "indi_rpicam" Do i need to add it ?
Then, in Ekos tab, i have a profile, in remote mode, connected to my raspberry pi. In CCD, i can't add "indi_rpicam", maybe due to question above ? I'm clicking on start button. Server side, there is this :
2021-06-09T20:23:47: Client 0: new arrival from 10.42.0.233:40782 - welcome!
2021-06-09T20:23:47: Driver indi_rpicam: CameraControl(/home/hamham/Projects/indi-3rdparty/indi-rpicam/cameracontrol.cpp:34): enter
2021-06-09T20:23:47: Driver indi_rpicam: mmal: mmal_component_create_core: could not find component 'vc.ril.camera'
2021-06-09T20:23:47: Driver indi_rpicam: terminate called after throwing an instance of 'MMALException'
2021-06-09T20:23:47: Driver indi_rpicam: what():
2021-06-09T20:23:47: Driver indi_rpicam: stderr EOF
<delProperty device="RPI Camera"/>
2021-06-09T20:23:47: Driver indi_rpicam: restart #1
Child process 4804 died
2021-06-09T20:23:47: Driver indi_rpicam: pid=4818 rfd=3 wfd=8 efd=11
2021-06-09T20:23:47: Driver indi_rpicam: MMALDriver()
2021-06-09T20:23:47: Driver indi_rpicam: MMALDriver() - returning
2021-06-09T20:23:47: Driver indi_rpicam: ISGetProperties()
2021-06-09T20:23:47: Driver indi_rpicam: getDefaultName()
2021-06-09T20:23:47: Driver indi_rpicam: initProperties()
2021-06-09T20:23:47: Driver indi_rpicam: getDefaultName()
2021-06-09T20:23:47: Driver indi_rpicam: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2021-06-09T20:23:47: Driver indi_rpicam: snooping on Telescope Simulator.TELESCOPE_INFO
2021-06-09T20:23:47: Driver indi_rpicam: snooping on Telescope Simulator.GEOGRAPHIC_COORD
2021-06-09T20:23:47: Driver indi_rpicam: snooping on Telescope Simulator.TELESCOPE_PIER_SIDE
2021-06-09T20:23:47: Driver indi_rpicam: snooping on Rotator Simulator.ABS_ROTATOR_ANGLE
2021-06-09T20:23:47: Driver indi_rpicam: snooping on Focuser Simulator.ABS_FOCUS_POSITION
2021-06-09T20:23:47: Driver indi_rpicam: snooping on Focuser Simulator.FOCUS_TEMPERATURE
2021-06-09T20:23:47: Driver indi_rpicam: snooping on CCD Simulator.FILTER_SLOT
2021-06-09T20:23:47: Driver indi_rpicam: snooping on CCD Simulator.FILTER_NAME
2021-06-09T20:23:47: Driver indi_rpicam: snooping on SQM.SKY_QUALITY
Ekos logs have :
2021-06-09T22:24:02 Unable to establish remote devices:
+ INDI Webcam
+ V4L2 CCD
Please ensure remote device name corresponds to actual device name.
2021-06-09T22:23:47 RPI Camera is offline.
2021-06-09T22:23:47 INDI services started. Connection to remote INDI server is successful. Waiting for devices...
2021-06-09T22:23:47 Connecting to remote INDI server at 10.42.0.1 on port 7 624 ...
2021-06-09T22:23:47 Site location updated to Montpellier, Herault, France.
INDI Control Panel window is all grey, without interface...and i can't click on button "Connect".
I don't know if the problem is from indi_rpicam (and this issue is useful) or in Kstars/Ekos (and i think you are not concerned).
It seems the driver does not find the camera. I have seen this my self when I tried to make crosscompilation work. Did you build the driver your self or is it from the distribution? I think the problem I had was that not all needed libraries was included so that static constructors was missing.
I have build it. In my first messafe, I indicated i'm on Ubuntu, not Raspbian :). So, did i have to rebuild indi_rpicam ? If yes, could you tell me all files i need to remove ? Or there is an aother way ?
I don't think you should have needed to rebuild it. If you do, you need to be very sure you have same versions of libindi and indi-3rdparty
Ok. So, what can i am doing ?
If you tell me the exact commands all the way how you cloned and built the driver I can see if I can reproduce. Also I need to know what exact dist and version are running on your rpi, and model of rpi.
Yes of course :).
For installation of indi_rpicam, i've followed readme.md :
# Create directory
mkdir -p ~/Projects
cd ~/Projects
# clone project
git clonehttps://github.com/indilib/indi-3rdparty
# install indi_rpicam
mkdir -p ~/Projects/build/indi-rpicam
cd ~/Projects/build/indi-rpicam
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rpicam
make -j4
sudo make install
Few weeks later, i've seen some updates in indi_rpicam
git pull
I've deleted a file (sorry it was some weeks ago) and doing again
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rpicam
make -j4
sudo make install
Thanks, I'll try that out.
Sorry, its takes long time for me. Ive just got around to install ubuntu-20.04, i could not find a raspi ubuntu 18.04 anywhere. What packages to you install to get the rapistill and the userland libraries to work, i have not used plain ubuntu on raspberry before..
Hello, don't worry, it's not a problem if you don't have time: with my one year old baby, i don't have time too ^^. I've upgraded to ubuntu 20.04 few weeks ago (after my first comment), i've forget to tell it, sorry. For raspistill, as i remember :
sudo bash -c "echo 'start_x=1' >> /boot/config.txt"
sudo bash -c "echo 'gpu_mem=128' >> /boot/config.txt"
sudo rpi-update
sudo raspi-config
#Select 3 Interface Options then P1 to enable the camera
shutdown -r now
Sorry, I have tried to make the raspistill work on my pure ubuntu-20.04 work on rpi but have not succeded yet. I get compilation errors for the userland. Ive been following several guides but have not succeded so far.
Hello everyone, today I tried getting my rpi hq cam to run on Ubuntu 20.04.3 arm64 on my rpi4 8gb. It seems like the indi-rpicam driver is no longer included in the full indi 3rd party driver package anymore (I checked both stable and nightly repository directories too). I could not run it via terminal using indiserver indi_rpicam nor indi-rpicam.
It is also not possible to manually install it via apt-get indi-rpicam.
When I tried to building from source I failed here:
xx@xx ~/Projects/build/indi-rpicam$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rpicam -- The CXX compiler identification is GNU 9.3.0 -- The C compiler identification is GNU 9.3.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- 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 "1.9.0") -- Found CFITSIO 3.47: /usr/lib/aarch64-linux-gnu/libcfitsio.so -- Found NOVA: /usr/lib/aarch64-linux-gnu/libnova.so -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Found USB1: /usr/lib/aarch64-linux-gnu/libusb-1.0.so (found version "1.0.23") -- 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 -- Looking for pthread.h CMake Warning (dev) at /usr/share/cmake-3.16/Modules/CheckIncludeFile.cmake:80 (message): Policy CMP0075 is not set: Include file check macros honor CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
CMAKE_REQUIRED_LIBRARIES is set to:
/usr/lib/aarch64-linux-gnu/libnova.so
For compatibility with CMake 3.11 and below this check is ignoring it. Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindThreads.cmake:128 (CHECK_INCLUDE_FILE) CMakeLists.txt:34 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found GTest: /usr/lib/aarch64-linux-gnu/libgtest.a
-- Found GMock: /usr/lib/aarch64-linux-gnu/libgmock.a
-- Building unit tests
-- GTEST_BOTH_LIBRARIES /usr/lib/aarch64-linux-gnu/libgtest.a;/usr/lib/aarch64-linux-gnu/libgtest_main.a
-- GTEST_MAIN_LIBRARIES /usr/lib/aarch64-linux-gnu/libgtest_main.a
-- GTEST_LIBRARIES /usr/lib/aarch64-linux-gnu/libgtest.a
-- GTEST_INCLUDE_DIRS /usr/include
-- 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.
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/sn/Projects/indi-3rdparty/indi-rpicam
linked by target "test_imx219" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
linked by target "test_imx477" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
brcmGLESv2_LIBRARY
linked by target "indi_rpicam" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam
linked by target "test_imx219" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
linked by target "test_imx477" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
-- Configuring incomplete, errors occurred! See also "/home/sn/Projects/build/indi-rpicam/CMakeFiles/CMakeOutput.log". See also "/home/sn/Projects/build/indi-rpicam/CMakeFiles/CMakeError.log".
I'd be happy to join forces here to get the rpicam to work. Please let me know what additional information would help.
Thank you very much in advance! Sebastian
I have trying to use indi_rpicam with only indi as server and Astrophotoplus as client and camera not detected (USB camera not detected too). I will retry a full installation of indi and 3rd drivers likes indi_rpicam because i don't think the error come from driver. Response in few days (or weeks...)
Reinstalling did not work for me, it seems like the indi_rpicam driver neither comes with the full installation via repository nor is beeing built when building the full 3rd party package by source.
I spent severals hours today trying building the rpicam driver individually but the problem described above persits... I would be very happy to get some advice
Have you trying install this library too :
sudo apt-get -y install libindi-dev
then install rpi_cam. Without libindi-dev, i can't install driver, i've got some errors. After, it was OK
Thank you, yes, I installed the libindi as recommended in the readme here: https://github.com/indilib/indi-3rdparty
I cannot install as I cannot get apt get indi-rpicam => package not found (Instructions on https://www.indilib.org/raspberry-pi/raspberry-pi-camera.html) I reinstalled the full indi driver package... without success
and I cannot build from source because of the error in my post above
Yes, the package in repository doesn't exist anymore. That's wht indi_rpicam can only be installed manually. Here's my yesterday installation :
# Install indi
sudo apt-get install indi-full gsc
cd ~/Projects
# install libraries
sudo apt-get -y install libnova-dev libcfitsio-dev libusb-1.0-0-dev zlib1g-dev libgsl-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev libtiff-dev libfftw3-dev libftdi-dev libgps-dev libraw-dev libdc1394-22-dev libgphoto2-dev libboost-dev libboost-regex-dev librtlsdr-dev liblimesuite-dev libftdi1-dev libavcodec-dev libavdevice-dev
# Clone repository
git clone --depth=1 https://github.com/indilib/indi-3rdparty
mkdir -p ~/Projects/build/indi-rpicam
cd ~/Projects/build/indi-rpicam
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rpicam
# Got an error, so install forgotten package
sudo apt-get -y install libindi-dev
cd ..
# Delete previous installation
rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rpicam
make -j4
sudo make install
# Check
ls -al /usr/bin/ | grep rpicam
-rwxr-xr-x 1 root root 960288 août 27 14:38 indi_rpicam*
It seems you got a problem with C++ package "libnova". Try :
sudo apt-get install libnova-dev
Thank you very much for sharing your steps! I tried reproduce everything step by step but it seems my error is not due to missing packages or libraries. Everything was already installed and up to date.
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rpicam -- The CXX compiler identification is GNU 9.3.0 -- The C compiler identification is GNU 9.3.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- 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 "1.9.1") -- Found CFITSIO 3.47: /usr/lib/aarch64-linux-gnu/libcfitsio.so -- Found NOVA: /usr/lib/aarch64-linux-gnu/libnova.so -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Found USB1: /usr/lib/aarch64-linux-gnu/libusb-1.0.so (found version "1.0.23") -- 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 -- Looking for pthread.h CMake Warning (dev) at /usr/share/cmake-3.16/Modules/CheckIncludeFile.cmake:80 (message): Policy CMP0075 is not set: Include file check macros honor CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy details. Use the cmake_policy command to set the policy and suppress this warning.
CMAKE_REQUIRED_LIBRARIES is set to:
/usr/lib/aarch64-linux-gnu/libnova.so
For compatibility with CMake 3.11 and below this check is ignoring it. Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindThreads.cmake:128 (CHECK_INCLUDE_FILE) CMakeLists.txt:34 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found GTest: /usr/lib/aarch64-linux-gnu/libgtest.a
-- Found GMock: /usr/lib/aarch64-linux-gnu/libgmock.a
-- Building unit tests
-- GTEST_BOTH_LIBRARIES /usr/lib/aarch64-linux-gnu/libgtest.a;/usr/lib/aarch64-linux-gnu/libgtest_main.a
-- GTEST_MAIN_LIBRARIES /usr/lib/aarch64-linux-gnu/libgtest_main.a
-- GTEST_LIBRARIES /usr/lib/aarch64-linux-gnu/libgtest.a
-- GTEST_INCLUDE_DIRS /usr/include
-- 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.
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/sn/Projects/indi-3rdparty/indi-rpicam
linked by target "test_imx219" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
linked by target "test_imx477" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
brcmGLESv2_LIBRARY
linked by target "indi_rpicam" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam
linked by target "test_imx219" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
linked by target "test_imx477" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
-- Configuring incomplete, errors occurred! See also "/home/sn/Projects/build/indi-rpicam/CMakeFiles/CMakeOutput.log". See also "/home/sn/Projects/build/indi-rpicam/CMakeFiles/CMakeError.log".
and regarding libnova-dev:
$ sudo apt-get install libnova-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
libnova-dev ist schon die neueste Version (0.16-4).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 1 nicht aktualisiert.
So I still cannot compile...
The issue is not libnova (that was just warning), it's with brcmEGL_LIBRARY
It appears these might be only available on Raspbian OS?
Thank you, I rechecked and it seems there are libraries available:
~/Projects/build/indi-rpicam$ sudo apt search libegl Sortierung... Fertig Volltextsuche... Fertig libegl-dev/focal-updates,now 1.3.2-1~ubuntu0.20.04.1 arm64 [installiert] Vendor neutral GL dispatch library -- EGL development files
libegl-mali-xlnx/focal-updates 9p0.01rel0-0ubuntu5~20.04.1 arm64 EGL closed source libraries for Mali devices integrated
libegl-mesa0/focal-updates,now 21.0.3-0ubuntu0.3~20.04.2 arm64 [installiert] free implementation of the EGL API -- Mesa vendor library
libegl1/focal-updates,now 1.3.2-1~ubuntu0.20.04.1 arm64 [installiert] Vendor neutral GL dispatch library -- EGL support
libegl1-mesa/focal-updates 21.0.3-0ubuntu0.3~20.04.2 arm64 Übergangspaket
libegl1-mesa-dev/focal-updates,now 21.0.3-0ubuntu0.3~20.04.2 arm64 [Installiert,automatisch] Freie Implementierung der EGL-API -- Entwicklungsdateien
~/Projects/build/indi-rpicam$ ldconfig -p | grep libGLESv2 libGLESv2.so.2 (libc6,AArch64) => /lib/aarch64-linux-gnu/libGLESv2.so.2 libGLESv2.so (libc6,AArch64) => /lib/aarch64-linux-gnu/libGLESv2.so
I think this needs to be fixed or adapted, but I'm not capable of doing that...: 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/sn/Projects/indi-3rdparty/indi-rpicam linked by target "test_imx219" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test linked by target "test_imx477" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test brcmGLESv2_LIBRARY linked by target "indi_rpicam" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam linked by target "test_imx219" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test linked by target "test_imx477" in directory /home/sn/Projects/indi-3rdparty/indi-rpicam/test
Hi, I have same issue compiling latest indi_rpicam:
pi@raspberrypi:~/src/indi-3rdparty/build/indi-rpicam $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../../indi-rpicam/
-- Found CFITSIO: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found libnova: /usr/lib/arm-linux-gnueabihf/libnova.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- 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
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Neon found with compiler flag : -mfpu=neon -D__NEON__
-- 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/pi/src/indi-3rdparty/indi-rpicam
brcmGLESv2_LIBRARY
linked by target "indi_rpicam" in directory /home/pi/src/indi-3rdparty/indi-rpicam
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
also
pi@raspberrypi:~/src/indi-3rdparty/build/indi-rpicam $ ldconfig -p | grep libGLESv2
libGLESv2.so.2 (libc6,hard-float) => /lib/arm-linux-gnueabihf/libGLESv2.so.2
libGLESv2.so (libc6,hard-float) => /lib/arm-linux-gnueabihf/libGLESv2.so
What do I miss to (pre-)install? Seems like this ticket was closed without being solved (considering last comment here). @SebNik1 did you get it working?
UPDATE: I'm using bullseye raspbian 32bit.
bullseye not supported, they changed the API to libcamera. We need to migrate to libcamera.
@knro indeed they have new libcamera stack, but it's possible to activate legacy stack (see here). I did it so and I have the old good raspistill working:
$raspistill -v -o test.jpg
"raspistill" Camera App (commit )
Camera Name ov5647
Width 2592, Height 1944, filename test.jpg
Using camera 0, sensor mode 0
GPS output Disabled
Quality 85, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Time delay 5000, Timelapse 0
Link to latest frame enabled no
Full resolution preview No
Capture method : Single capture
Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Flicker Avoid Mode 'off'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
Camera component done
Encoder component done
Starting component connection stage
Connecting camera preview port to video render.
Connecting camera stills port to encoder input port
Opening output file test.jpg
Enabling encoder output port
Starting capture -1
Finished capture -1
Closing down
Close down completed, all components disconnected, disabled and destroyed
I meant I have the legacy stack enabled, but still have compile error as above.
Here is my CMake output
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ../../indi-rpicam/
-- The CXX compiler identification is GNU 10.2.1
-- The C compiler identification is GNU 10.2.1
-- 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/arm-linux-gnueabihf/libindidriver.so (found version "1.9.7")
-- Found CFITSIO 3.49: /usr/lib/arm-linux-gnueabihf/libcfitsio.so
-- Found NOVA: /usr/lib/arm-linux-gnueabihf/libnova.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Found USB1: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so (found version "1.0.24")
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME
-- Performing Test USB1_HAS_LIBUSB_ERROR_NAME - Success
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Found FFTW3: /usr/lib/arm-linux-gnueabihf/libfftw3.so
-- Looking for pthread.h
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/CheckIncludeFile.cmake:80 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
CMAKE_REQUIRED_LIBRARIES is set to:
/usr/lib/arm-linux-gnueabihf/libnova.so
For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
/usr/share/cmake-3.18/Modules/FindThreads.cmake:142 (CHECK_INCLUDE_FILE)
CMakeLists.txt:34 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found GTest: /usr/lib/arm-linux-gnueabihf/libgtest.a
-- Found GMock: /usr/lib/arm-linux-gnueabihf/libgmock.a
-- Building unit tests
-- GTEST_BOTH_LIBRARIES /usr/lib/arm-linux-gnueabihf/libgtest.a;/usr/lib/arm-linux-gnueabihf/libgtest_main.a
-- GTEST_MAIN_LIBRARIES /usr/lib/arm-linux-gnueabihf/libgtest_main.a
-- GTEST_LIBRARIES /usr/lib/arm-linux-gnueabihf/libgtest.a
-- GTEST_INCLUDE_DIRS /usr/include
-- GMOCK_LIBRARIES /usr/lib/arm-linux-gnueabihf/libgmock.a
-- GMOCK_INCLUDE_DIRS /usr/include
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Neon found with compiler flag : -mfpu=neon -D__NEON__
-- 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/pi/src/indi-3rdparty/indi-rpicam
linked by target "test_imx219" in directory /home/pi/src/indi-3rdparty/indi-rpicam/test
linked by target "test_imx477" in directory /home/pi/src/indi-3rdparty/indi-rpicam/test
brcmGLESv2_LIBRARY
linked by target "indi_rpicam" in directory /home/pi/src/indi-3rdparty/indi-rpicam
linked by target "test_imx219" in directory /home/pi/src/indi-3rdparty/indi-rpicam/test
linked by target "test_imx477" in directory /home/pi/src/indi-3rdparty/indi-rpicam/test
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Ok, I got it working, needed to build https://github.com/raspberrypi/userland as described here https://forums.raspberrypi.com/viewtopic.php?t=323390#p1935591 (just build with ./buildme, don't copy anything) and restart rpicam build.
Hello I have installed indi-rpicam driver few months ago, pull few days ago and rebuild. When i launch Ekos, i have a error message "Unable to establish RPi Camera. Please ensure the device is connected and powered on". It looks like my camera is not detected. I'm sure it's enabled: when i run "raspistill -o test.jpg" i have an image. And camera enabled in rasp-config.
To Reproduce
Screenshots Some screenshots
Desktop :
Other question: When i see updates on github, do i need to rebuild and compile ? Thank you very much for your help.
Log Files
Other way if i'm doing this (but i think it's for remote ?):