Dear All, I had to install libgtest-dev for another project unrelated to SUMO. Now, with cmake -D CHECK_OPTIONAL_LIBS=true (because I need gl2ps) it finds GTest but I have the following error:
[ 97%] Linking CXX executable ../../../../../../bin/testcommon /usr/bin/x86_64-linux-gnu-ld: /usr/lib/gcc/x86_64-linux- gnu/7/../../../x86_64-linux-gnu/libgtest.a(gtest-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status unittest/src/utils/common/CMakeFiles/testcommon.dir/build.make:171: recipe for target '../../bin/testcommon' failed make[2]: *** [../../bin/testcommon] Error 1 CMakeFiles/Makefile2:4524: recipe for target 'unittest/src/utils/common/CMakeFiles/testcommon.dir/all' failed make[1]: *** [unittest/src/utils/common/CMakeFiles/testcommon.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 To solve this error, I found https://stackoverflow.com/questions/256178 39/undefined-reference-to-symbol-pthread-key-deleteglibc-2-2-5 but Ihave no idea on how to add -lpthread -lm to CMakeLists.txt I look for something with "thread" in the file, but I found nothing. Apart from removing GTools from the CMakeLists.txt, do I have a way to solve this? Thanks in advance, Lara -- Lara CODECA Postdoc Tel : 04.93.00.81.51 EURECOM Campus SophiaTech http://www.eurecom.fr/ _______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
