×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

INDI LibCamera Driver

  • Posts: 115
  • Thank you received: 34

Replied by Simon on topic INDI LibCamera Driver

@Anyo: That's great news! Looking forward to try it out.
9 months 1 week ago #94088

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic INDI LibCamera Driver

Thank you ANJO, the PR was merged? 3rd party indi-libcamera still embeds libcamera-apps
Last edit: 9 months 1 week ago by Jasem Mutlaq.
9 months 1 week ago #94091

Please Log in or Create an account to join the conversation.

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

What I mean is that my PR to libcamera-apps has been merged and will be part if the next release... whenever that will be. Then we can update the driver and remove the copied source.
9 months 1 week ago #94117

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver




I have problems with the libcamera driver, if I use it outside indi everything works when instead I want to connect with ekos it doesn't activate and tries 5 times to connect without result, why does it work for you?
I have an IMX 462 connected to the Raspi 4B camera module
9 months 1 week ago #94162

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver


In libcamera with compilation have this error:
osservatorio@raspberrypi:~/Projects/build/indi-libcamera $ make
[ 50%] Building CXX object CMakeFiles/indi_libcamera_ccd.dir/indi_libcamera.cpp.o
In file included from /usr/include/libindi/defaultdevice.h:23,
from /usr/include/libindi/indiccd.h:30,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:34,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/usr/include/libindi/indilogger.h:72: warning: "LOG_ERROR" redefined
72 | #define LOG_ERROR(txt) DEBUG(INDI::Logger::DBG_ERROR, (txt))
|
In file included from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/options.hpp:21,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/video_options.hpp:14,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/libcamera_encoder.hpp:10,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:29,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/logging.hpp:9: note: this is the location of the previous definition
9 | #define LOG_ERROR(text) std::cerr << text << std::endl
|
In file included from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:28,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/libcamera_app.hpp:54:33: error: ‘StreamRoles’ in namespace ‘libcamera’ does not name a type; did you mean ‘StreamRole’?
54 | using StreamRoles = libcamera::StreamRoles;
| ^~~~~~~~~~~
| StreamRole
In file included from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:30,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/still_options.hpp: In member function ‘virtual bool StillOptions::Parse(int, char**)’:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/still_options.hpp:74:19: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
74 | char *s = "";
| ^~
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/still_options.hpp:74:15: warning: unused variable ‘s’ [-Wunused-variable]
74 | char *s = "";
| ^
In file included from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h: At global scope:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:71:22: error: ‘virtual void INDILibCamera::addFITSKeywords(INDI::CCDChip*)’ marked ‘override’, but does not override
71 | virtual void addFITSKeywords(INDI::CCDChip *targetChip) override;
| ^~~~~~~~~~~~~~~
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp: In member function ‘void INDILibCamera::workerExposure(const atomic_bool&, float)’:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:224:34: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context
224 | if (IUFindOnSwitchIndex(&CaptureFormatSP) == CAPTURE_DNG)
| ^~~~~~~~~~~~~~~
In file included from /usr/include/libindi/indipropertyswitch.h:21,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:23,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/usr/include/libindi/indipropertybasic.h:111:27: note: declared protected here
111 | PropertyView<T> * operator &();
| ^~~~~~~~
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:242:38: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context
242 | if (IUFindOnSwitchIndex(&CaptureFormatSP) == CAPTURE_DNG)
| ^~~~~~~~~~~~~~~
In file included from /usr/include/libindi/indipropertyswitch.h:21,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:23,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/usr/include/libindi/indipropertybasic.h:111:27: note: declared protected here
111 | PropertyView<T> * operator &();
| ^~~~~~~~
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp: In member function ‘virtual void INDILibCamera::addFITSKeywords(INDI::CCDChip*)’:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:747:42: error: no matching function for call to ‘INDILibCamera::addFITSKeywords(INDI::CCDChip*&)’
747 | INDI::CCD::addFITSKeywords(targetChip);
| ^
In file included from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:34,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/usr/include/libindi/indiccd.h:510:22: note: candidate: ‘virtual void INDI::CCD::addFITSKeywords(INDI::CCDChip*, std::vector<INDI::FITSRecord>&)’
510 | virtual void addFITSKeywords(CCDChip * targetChip, std::vector<FITSRecord> &fitsKeywords);
| ^~~~~~~~~~~~~~~
/usr/include/libindi/indiccd.h:510:22: note: candidate expects 2 arguments, 1 provided
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp: In member function ‘virtual bool INDILibCamera::saveConfigItems(FILE*)’:
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:758:29: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context
758 | IUSaveConfigSwitch(fp, &CameraSP);
| ^~~~~~~~
In file included from /usr/include/libindi/indipropertyswitch.h:21,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:23,
from /home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:21:
/usr/include/libindi/indipropertybasic.h:111:27: note: declared protected here
111 | PropertyView<T> * operator &();
| ^~~~~~~~
make[2]: *** [CMakeFiles/indi_libcamera_ccd.dir/build.make:82: CMakeFiles/indi_libcamera_ccd.dir/indi_libcamera.cpp.o] Errore 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/indi_libcamera_ccd.dir/all] Errore 2
make: *** [Makefile:149: all] Errore 2
9 months 1 week ago #94163

Please Log in or Create an account to join the conversation.

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

It can only build against the v2 libindi so you need to also compile and install the current version of indi branch, not only the 3rd party drivers:

/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/core/libcamera_app.hpp:54:33: error: ‘StreamRoles’ in namespace ‘libcamera’ does not name a type; did you mean ‘StreamRole’?
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.h:71:22: error: ‘virtual void INDILibCamera::addFITSKeywords(INDI::CCDChip*)’ marked ‘override’, but does not override
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:224:34: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:242:38: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:747:42: error: no matching function for call to ‘INDILibCamera::addFITSKeywords(INDI::CCDChip*&)’
/home/osservatorio/Projects/indi-3rdparty/indi-libcamera/indi_libcamera.cpp:758:29: error: ‘INDI::PropertyView<T>* INDI::PropertyBasic<T>::operator&() [with T = _ISwitch]’ is protected within this context
The following user(s) said Thank You: Ettore
9 months 1 week ago #94176

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver



Thanks for response. I already have libindi V2, but by branch do you also mean third-party libraries?
Ettore
9 months 1 week ago #94177

Please Log in or Create an account to join the conversation.

  • Posts: 74
  • Thank you received: 11

Replied by Anjo on topic INDI LibCamera Driver

If you actually had the v2 indi headers installed in /usr/, you wouldn't get these errors... do `grep -r addFITSKeywords /usr/include /usr/local/include` and check if there are matches. Note that by default, I think the indi libs get installed in `/usr/local/include` and v1 versions in `/usr/include` will override them.
9 months 1 week ago #94184

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver

Yes i have this:

/usr/include/libindi/indireceiver.h: virtual void addFITSKeywords(fitsfile *fptr, uint8_t* buf, int len) override;
/usr/include/libindi/indisensorinterface.h: * SensorInterface::addFITSKeywords.
/usr/include/libindi/indisensorinterface.h: virtual void addFITSKeywords(fitsfile *fptr, uint8_t* buf, int len);
/usr/include/libindi/indispectrograph.h: virtual void addFITSKeywords(fitsfile *fptr, uint8_t* buf, int len) override;
/usr/include/libindi/indidetector.h: void addFITSKeywords(fitsfile *fptr, uint8_t* buf, int len) override;
/usr/include/libindi/dsp/dspinterface.h: void addFITSKeywords(fitsfile *fptr);
/usr/include/libindi/indiccd.h: * CCD::addFITSKeywords.
/usr/include/libindi/indiccd.h: virtual void addFITSKeywords(CCDChip * targetChip, std::vector<FITSRecord> &fitsKeywords);


Ettore
9 months 5 days ago #94231

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver

How do you install indi-bin 2.0.2 on raspberry it doesn't work for me, i'm clumsy.
Ettore
9 months 3 days ago #94258

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver


Good morning, You have news?
Ettore
9 months 1 day ago #94335

Please Log in or Create an account to join the conversation.

  • Posts: 144
  • Thank you received: 7

Replied by Ettore on topic INDI LibCamera Driver


Anjio have news?
Ettore
8 months 4 weeks ago #94397

Please Log in or Create an account to join the conversation.

Time to create page: 0.674 seconds