×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

[SOLVED] Unable to build 3rd party indi drivers in raspbian buster

  • Posts: 90
  • Thank you received: 12
Hi everyone,
I was trying to build the 3rd party indi drivers in raspbian buster but I've encounter following errors:
<strong>error: ‘ccdBufferLock’ was not declared in this scope</strong>



Can somebody help?


pi@raspberrypi:~/Projects/build/indi-atik $ make -j4
[ 25%] Building CXX object CMakeFiles/indi_atik_ccd.dir/atik_ccd.cpp.o
[ 75%] Built target indi_atik_wheel
/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp: In member function ‘bool ATIKCCD::grabImage()’:
/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp:843:10: error: ‘unique_lock’ is not a member of ‘std’
std::unique_lock<std::mutex> guard(ccdBufferLock);
^~~~~~~~~~~
/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp:843:10: note: ‘std::unique_lock’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp:30:1:
+#include <mutex>

/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp:843:10:
std::unique_lock<std::mutex> guard(ccdBufferLock);
^~~~~~~~~~~
/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp:843:27: error: ‘mutex’ is not a member of ‘std’
std::unique_lock<std::mutex> guard(ccdBufferLock);
^~~~~
/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp:843:27: note: ‘std::mutex’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
<strong>/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp:843:40: error: ‘ccdBufferLock’ was not declared in this scope
std::unique_lock<std::mutex> guard(ccdBufferLock);
^~~~~~~~~~~~~
/home/pi/Projects/indi-3rdparty/indi-atik/atik_ccd.cpp:843:34: error: ‘guard’ was not declared in this scope
std::unique_lock<std::mutex> guard(ccdBufferLock);</strong>
</strong> ^~~~~
make[2]: *** [CMakeFiles/indi_atik_ccd.dir/build.make:63: CMakeFiles/indi_atik_ccd.dir/atik_ccd.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/indi_atik_ccd.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
pi@raspberrypi:~/Projects/build/indi-atik $
Last edit: 4 years 5 months ago by Stephen Wong.
4 years 5 months ago #44548

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

  • Posts: 90
  • Thank you received: 12
To solve the issue I also build and install indi-core from the source, then build the 3rd party drivers again. The errors are now gone and the drivers are able to be built successfully.
Last edit: 4 years 5 months ago by Stephen Wong.
4 years 5 months ago #44559

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

Time to create page: 0.743 seconds