Skip to content

linux - needs "-lpthread" #2

@rotten

Description

@rotten

In order to get the code to build on Ubuntu 18.04 I had to add pthread to the target_link_libraries() in CMakeLists.txt .

Otherwise make throws this:
/usr/bin/x86_64-linux-gnu-ld: CMakeFiles/Test.dir/test/test_image_model.cpp.o: undefined reference to symbol 'pthread_setspecific@@GLIBC_2.2.5'

(It seemed like too much work to fork and PR for a one-word update - plus I don't know if that will break something on Mac since I don't have one of those to test with.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions