Skip to content

failed to build #82

Description

trying to build examples

mkdir build
cd build
cmake ..
make

Unfortunately end up with build errors, can you help what might go wrong?

[ 77%] Linking CXX executable Dijkstra
/usr/lib/gcc/aarch64-poky-linux/6.2.0/../../../../aarch64-poky-linux/bin/ld: CMakeFiles/Dijkstra.dir/oclDijkstraKernel.cpp.o: undefined reference to symbol 'pthread_join@@GLIBC_2.17'
//lib/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [src/Chapter_16/Dijkstra/CMakeFiles/Dijkstra.dir/build.make:123: src/Chapter_16/Dijkstra/Dijkstra] Error 1
make[1]: *** [CMakeFiles/Makefile2:537: src/Chapter_16/Dijkstra/CMakeFiles/Dijkstra.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

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