Greg replied to the topic 'Trouble Linking Libraries' in the forum. 5 years ago

Awesome! This fixed the issue! However, I am now getting a new error in the client library.

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libindiclient.a(basedevice.cpp.o): undefined reference to symbol 'uncompress'
//lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

I thought this had to do with a dependency on pthreads and tried including that using

find_package(Threads REQUIRED)
include_directories( ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(pandaScope ${CMAKE_THREAD_LIBS_INIT})

but that didn't work. Thanks for working so hard on solving this issue. I really appreciate the help!

Read More...