×

INDI Library v1.9.7 Released (29 Jul 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Some errors in c++ client compilation

  • Posts: 2
  • Thank you received: 0
Hi,
when I compile my client I obtain this errors
g++ -L/usr/lib -o "telescope-point" ./src/DEC.o ./src/RA.o ./src/baseclient.o ./src/myclient.o ./src/point.o ./src/telescope-point.o -lindi -lindiclient -lcfitsio -lnova -lindidriver
./src/baseclient.o: In function `INDI::BaseClient::connectServer()':
/home/michele/workspace/telescope-point/Debug/../src/baseclient.cpp:110: undefined reference to `pthread_create'
./src/baseclient.o: In function `INDI::BaseClient::disconnectServer()':
/home/michele/workspace/telescope-point/Debug/../src/baseclient.cpp:139: undefined reference to `pthread_join'
/usr/lib/libindiclient.a(basedevice.o): In function `INDI::BaseDevice::setBLOB(_IBLOBVectorProperty*, _xml_ele*, char*)':
basedevice.cpp:(.text+0x2a72): undefined reference to `uncompress'
collect2: ld returned 1 exit status

Cn you help me?
I use Eclipse IDE
thanks
Michele
9 years 6 months ago #14

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

Hello,

I think you need to link with pthread and libz. Are you using CMake or another build system?
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
9 years 6 months ago #15

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

  • Posts: 2
  • Thank you received: 0
Thank you,
I have solved the problem with link at pthread and libz! I use Eclipse for build c++
thanks
Michele
9 years 6 months ago #16

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

Time to create page: 0.319 seconds