khampf / g13

libusb driver for the g13
23 stars 15 forks source link

Compiling on Debian requires pthread #4

Closed dhallgb closed 4 years ago

dhallgb commented 4 years ago

Thanks for your efforts in refactoring. When running the make command on Ubuntu 20.04 the linker stopped with error message undefined reference to symbol 'pthread_getspecific@@GLIBC_2.2.5'. This indicated a missing reference to the pthread library.

My way around that was to add pthread explicitly into the compiler flags in the CMakeList.txt file.

set(CMAKE_CXX_FLAGS "-std=c++17 -pthread")

This completed successfully and runs well.

khampf commented 4 years ago

Hmm. I thought I removed dependencies on pthread after using a separate thread in a bughunt. Might have forgotten one - will check that when time permits.

khampf commented 4 years ago

Should be fixed by commit a02223cbfc1b32eb8df37acf5dfabbcff0eea64b