The compilation fails (I changed as a first step only the numbers):
@s-VirtualBox:~/Projects/indi/3rdparty/indi-sx$ cmake .
[spoiler]-- Found CFITSIO: /usr/lib/x86_64-linux-gnu/libcfitsio.so
-- Found libusb-1.0:
-- - Includes: /usr/include/libusb-1.0
-- - Libraries: /usr/local/lib/libusb-1.0.so
-- Found INDI: /usr/lib/x86_64-linux-gnu/libindi.so
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:57 (add_executable):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "indi_sx_wheel" links to some libraries for which the linker
must search:
-lpthread
and other libraries with known full path:
/usr/local/lib/libusb-1.0.so
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/s/Projects/indi/3rdparty/indi-sx[/spoiler]
s@s-VirtualBox:~/Projects/indi/3rdparty/indi-sx$ make sx_ccd_test
[spoiler][ 33%] Building CXX object CMakeFiles/sx_ccd_test.dir/sxccdusb.o
/home/s/Projects/indi/3rdparty/indi-sx/sxccdusb.cpp:117:1: error: ‘unicdefine’ does not name a type
unicdefine CHUNK_SIZE (10*1024*1024)
^
/home/s/Projects/indi/3rdparty/indi-sx/sxccdusb.cpp:131:5: error: ‘SX_PIDS’ does not name a type
} SX_PIDS[] = {
^
/home/s/Projects/indi/3rdparty/indi-sx/sxccdusb.cpp: In function ‘int sxList(libusb_device**, const char**, int)’:
/home/s/Projects/indi/3rdparty/indi-sx/sxccdusb.cpp:228:19: error: ‘SX_PIDS’ was not declared in this scope
for (int i = 0; SX_PIDS[i].pid; i++)
^
/home/s/Projects/indi/3rdparty/indi-sx/sxccdusb.cpp:235:25: error: ‘SX_PIDS’ was not declared in this scope
for (int i = 0; SX_PIDS[i].pid; i++) {
^
/home/s/Projects/indi/3rdparty/indi-sx/sxccdusb.cpp: In function ‘int sxReadPixels(libusb_device_handle*, void*, long unsigned int)’:
/home/s/Projects/indi/3rdparty/indi-sx/sxccdusb.cpp:644:16: error: ‘CHUNK_SIZE’ was not declared in this scope
if (size > CHUNK_SIZE)
^
CMakeFiles/sx_ccd_test.dir/build.make:86: recipe for target 'CMakeFiles/sx_ccd_test.dir/sxccdusb.o' failed
make[3]: *** [CMakeFiles/sx_ccd_test.dir/sxccdusb.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/sx_ccd_test.dir/all' failed
make[2]: *** [CMakeFiles/sx_ccd_test.dir/all] Error 2
CMakeFiles/Makefile2:116: recipe for target 'CMakeFiles/sx_ccd_test.dir/rule' failed
make[1]: *** [CMakeFiles/sx_ccd_test.dir/rule] Error 2
Makefile:197: recipe for target 'sx_ccd_test' failed
make: *** [sx_ccd_test] Error 2[/spoiler]
In windows I use, for testing, the commercial software called "COSTAR and it works fine and, by the way virtualbox works, I am sure that the camera is captured by virtualbox and nothing more.
The libusb version is updated:
dpkg -l libusb*
[spoiler]Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii libusb-0.1-4:a 2:0.1.12-28 amd64 userspace USB programming library
ii libusb-1.0-0:a 2:1.0.20-1 amd64 userspace USB programming library
ii libusb-1.0-0-d 2:1.0.20-1 amd64 userspace USB programming library
ii libusb-1.0-doc 2:1.0.20-1 all documentation for userspace USB p
ii libusb-dev 2:0.1.12-28 amd64 userspace USB programming library
un libusbmuxd-too <none> <none> (no description available)
ii libusbmuxd4:am 1.0.10-2ubun amd64 USB multiplexor daemon for iPhone[/spoiler]
The camera is conected in USB 2.0. I am also tried with USB 3.0 with the same result. There is no hub involved
Thank you very much for your kind response and your efforts