Fix linking without INDI ld: error: undefined symbol: pthread_create >>> referenced by __threading_support:378 (/usr/include/c++/v1/__threading_support:378) >>> supernovaecomponent.cpp.o:(std::__1::thread::thread>)::'lambda'(), void>(io::detail::AsynchronousReader::init(std::__1::unique_ptr>)::'lambda'()&&)) in archive lib/libKStarsLib.a --- kstars/CMakeLists.txt.orig 2023-08-01 06:19:45 UTC +++ kstars/CMakeLists.txt @@ -1250,6 +1250,7 @@ IF (NOT ANDROID) ${ZLIB_LIBRARIES} Eigen3::Eigen GSL::gsl + Threads::Threads ) if (Qt5Keychain_FOUND) @@ -1320,7 +1321,6 @@ if(INDI_FOUND) ## Linux + MacOS Lite: Requires INDI Qt5 Client ## Android: Requires INDI Qt5 Client built for Android if (NOT ANDROID) - target_link_libraries(KStarsLib ${CMAKE_THREAD_LIBS_INIT}) # StellarSolver target_link_libraries(KStarsLib StellarSolver::stellarsolver) endif ()