×

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

Bi-monthly release with minor bug fixes and improvements

conflict with oaCapture and libindi for building

  • Posts: 57
  • Thank you received: 5
Hi,
I'm trying to compile libindi on a debian testing machine. However it seems that libindi has some conflicts with oaCapture (that is also compiled) regarding the logs:
/usr/local/lib/libusb-1.0.a(libusb_1_0_la-core.o): In function `libusb_error_name':
/home/cyril/Documents/oacapture-1.0.0/ext/libusb/libusb-1.0/core.c:2406: multiple definition of `libusb_error_name'
CMakeFiles/indidriver.dir/libs/indibase/indiusbdevice.cpp.o:/home/cyril/Projects/indi/libindi/libs/indibase/indiusbdevice.cpp:28: first defined here
/usr/bin/ld: /usr/local/lib/libusb-1.0.a(libusb_1_0_la-core.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/indidriver.dir/build.make:1010: recipe for target 'libindidriver.so.1.3.1' failed
make[2]: *** [libindidriver.so.1.3.1] Error 1
CMakeFiles/Makefile2:1394: recipe for target 'CMakeFiles/indidriver.dir/all' failed
make[1]: *** [CMakeFiles/indidriver.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
How could I fix that ?
7 years 3 months ago #13319

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

  • Posts: 57
  • Thank you received: 5
OK, for now I removed oacapture in order to compile libindi.
I have another compilation error:
/home/lock/Projects/indi/libindi/drivers/telescope/lx200pulsar2.cpp: In static member function ‘static void LX200Pulsar2::guideTimeoutHelper(void*)’:
/home/lock/Projects/indi/libindi/drivers/telescope/lx200pulsar2.cpp:1272:15: error: ‘LX200Pulsar’ does not name a type
   static_cast<LX200Pulsar*>(p)->guideTimeout();
               ^~~~~~~~~~~
/home/lock/Projects/indi/libindi/drivers/telescope/lx200pulsar2.cpp:1272:26: error: expected ‘>’ before ‘*’ token
   static_cast<LX200Pulsar*>(p)->guideTimeout();
                          ^
/home/lock/Projects/indi/libindi/drivers/telescope/lx200pulsar2.cpp:1272:26: error: expected ‘(’ before ‘*’ token
/home/lock/Projects/indi/libindi/drivers/telescope/lx200pulsar2.cpp:1272:27: error: expected primary-expression before ‘>’ token
   static_cast<LX200Pulsar*>(p)->guideTimeout();
                           ^
/home/lock/Projects/indi/libindi/drivers/telescope/lx200pulsar2.cpp:1272:31: error: ‘void*’ is not a pointer-to-object type
   static_cast<LX200Pulsar*>(p)->guideTimeout();
                               ^~
/home/lock/Projects/indi/libindi/drivers/telescope/lx200pulsar2.cpp:1272:47: error: expected ‘)’ before ‘;’ token
   static_cast<LX200Pulsar*>(p)->guideTimeout();
                                               ^
CMakeFiles/indi_lx200generic.dir/build.make:278 : la recette pour la cible « CMakeFiles/indi_lx200generic.dir/drivers/telescope/lx200pulsar2.cpp.o » a échouée
make[2]: *** [CMakeFiles/indi_lx200generic.dir/drivers/telescope/lx200pulsar2.cpp.o] Erreur 1
CMakeFiles/Makefile2:977 : la recette pour la cible « CMakeFiles/indi_lx200generic.dir/all » a échouée
make[1]: *** [CMakeFiles/indi_lx200generic.dir/all] Erreur 2
Makefile:127 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

Any idea please ?
7 years 2 months ago #13439

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

It's fixed in GIT.
The following user(s) said Thank You: lock
7 years 2 months ago #13446

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

  • Posts: 57
  • Thank you received: 5
Indeed,
Thank you
7 years 2 months ago #13461

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

Time to create page: 0.867 seconds