Outta replied to the topic 'How to add new 3rd party driver' in the forum. 3 months ago

It seems it is working now, thank you very much kind Sir! I can now continue working on implementation of binning, and hopefully streaming, for rpicam.

I had one small issue as well that was making problems, as I already had manually added Rpicam2x in DIY in drivers.xml, initially it did not appear, and I guess you cannot have two drivers of same name. Once I have removed section from drivers.xml i got driver where it is supposed to be!

If I am not wrong, I was building in Debug mode, but file copy was set only for release, and that is the reason why file was not copied?


just for log purposes.

cat /usr/share/indi/indi_rpicam2x.xml
<?xml version="1.0" encoding="UTF-8"?>
<devGroup group="CCDs">
	<device label="RPI Camera 2x" manufacturer="Others">
        <driver name="RPI Camera 2x">indi_rpicam2x</driver>
astroberry@astroberry:~ $ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi-3rdparty/indi-rpicam2x
-- 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 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
-- Generating done
-- Build files have been written to: /home/astroberry/Projects/indi-3rdparty/indi-rpicam2x
astroberry@astroberry:~ $ make -j4
make: *** No targets specified and no makefile found.  Stop.
astroberry@astroberry:~ $ cd /home/astroberry/Projects/indi-3rdparty/indi-rpicam2x
astroberry@astroberry:~/Projects/indi-3rdparty/indi-rpicam2x $ make -j4
[ 86%] Built target rpicam2x
[100%] Built target indi_rpicam2x
astroberry@astroberry:~/Projects/indi-3rdparty/indi-rpicam2x $ su~do make install
bash: su~do: command not found
astroberry@astroberry:~/Projects/indi-3rdparty/indi-rpicam2x $ sudo make install
[ 86%] Built target rpicam2x
[100%] Built target indi_rpicam2x
Install the project...
-- Install configuration: "Debug"
-- Up-to-date: /usr/bin/indi_rpicam2x
-- Installing: /usr/share/indi/indi_rpicam2x.xml
astroberry@astroberry:~/Projects/indi-3rdparty/indi-rpicam2x $