FADEAWAY114 2023-03-11 21:11 采纳率: 0%
浏览 54

ubuntu编译sumo报错

ubuntu编译sumo报错,有人能帮忙解决吗


[ 94%] Built target libsumojni
[ 95%] Built target libtracijni
[ 95%] Built target libsumo
[ 95%] Built target libtraci
[ 95%] Built target TraCITestClient
[ 95%] Built target generate-templates-h
[ 95%] Linking CXX executable ../../../../../../bin/testcommon
Scanning dependencies of target testgeom
[ 95%] Building CXX object unittest/src/utils/geom/CMakeFiles/testgeom.dir/BoundaryTest.cpp.o
/usr/bin/ld: CMakeFiles/testcommon.dir/StringTokenizerTest.cpp.o:(.data.rel.ro._ZTI46StringTokenizer_test_split_with_whitechar_Test[_ZTI46StringTokenizer_test_split_with_whitechar_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testcommon.dir/StringTokenizerTest.cpp.o:(.data.rel.ro._ZTI44StringTokenizer_test_split_with_newline_Test[_ZTI44StringTokenizer_test_split_with_newline_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testcommon.dir/StringTokenizerTest.cpp.o:(.data.rel.ro._ZTI38StringTokenizer_test_split_with_x_Test[_ZTI38StringTokenizer_test_split_with_x_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testcommon.dir/StringTokenizerTest.cpp.o:(.data.rel.ro._ZTI40StringTokenizer_test_split_any_char_Test[_ZTI40StringTokenizer_test_split_any_char_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testcommon.dir/StringTokenizerTest.cpp.o:(.data.rel.ro._ZTI39StringTokenizer_test_method_reinit_Test[_ZTI39StringTokenizer_test_method_reinit_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testcommon.dir/StringTokenizerTest.cpp.o:(.data.rel.ro._ZTI37StringTokenizer_test_method_size_Test[_ZTI37StringTokenizer_test_method_size_Test]+0x10): more undefined references to `typeinfo for testing::Test' follow
collect2: error: ld returned 1 exit status
make[2]: *** [unittest/src/utils/common/CMakeFiles/testcommon.dir/build.make:162:../../bin/testcommon] 错误 1
make[1]: *** [CMakeFiles/Makefile2:5783:unittest/src/utils/common/CMakeFiles/testcommon.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 95%] Building CXX object unittest/src/utils/geom/CMakeFiles/testgeom.dir/GeoConvHelperTest.cpp.o
[ 95%] Building CXX object unittest/src/utils/geom/CMakeFiles/testgeom.dir/PositionVectorTest.cpp.o
[ 95%] Building CXX object unittest/src/utils/geom/CMakeFiles/testgeom.dir/GeomHelperTest.cpp.o
[ 96%] Linking CXX executable ../../../../../../bin/testgeom
/usr/bin/ld: CMakeFiles/testgeom.dir/BoundaryTest.cpp.o:(.data.rel.ro._ZTI29Boundary_test_method_add_Test[_ZTI29Boundary_test_method_add_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testgeom.dir/BoundaryTest.cpp.o:(.data.rel.ro._ZTI38Boundary_test_method_add_multiple_Test[_ZTI38Boundary_test_method_add_multiple_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testgeom.dir/BoundaryTest.cpp.o:(.data.rel.ro._ZTI35Boundary_test_method_getCenter_Test[_ZTI35Boundary_test_method_getCenter_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testgeom.dir/BoundaryTest.cpp.o:(.data.rel.ro._ZTI40Boundary_test_method_getWidthHeight_Test[_ZTI40Boundary_test_method_getWidthHeight_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testgeom.dir/BoundaryTest.cpp.o:(.data.rel.ro._ZTI32Boundary_test_method_around_Test[_ZTI32Boundary_test_method_around_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testgeom.dir/BoundaryTest.cpp.o:(.data.rel.ro._ZTI38Boundary_test_method_overlapsWith_Test[_ZTI38Boundary_test_method_overlapsWith_Test]+0x10): more undefined references to `typeinfo for testing::Test' follow
collect2: error: ld returned 1 exit status
make[2]: *** [unittest/src/utils/geom/CMakeFiles/testgeom.dir/build.make:146:../../bin/testgeom] 错误 1
make[1]: *** [CMakeFiles/Makefile2:5822:unittest/src/utils/geom/CMakeFiles/testgeom.dir/all] 错误 2
make: *** [Makefile:141:all] 错误 2

  • 写回答

3条回答 默认 最新

  • 少林and叔叔 2023-03-11 21:34
    关注

    提供相应的编译脚本或相关编译过程命令!

    评论

报告相同问题?

问题事件

  • 创建了问题 3月11日

悬赏问题

  • ¥15 phython如何实现以下功能?查找同一用户名的消费金额合并—
  • ¥15 孟德尔随机化怎样画共定位分析图
  • ¥18 模拟电路问题解答有偿速度
  • ¥15 CST仿真别人的模型结果仿真结果S参数完全不对
  • ¥15 误删注册表文件致win10无法开启
  • ¥15 请问在阿里云服务器中怎么利用数据库制作网站
  • ¥60 ESP32怎么烧录自启动程序
  • ¥50 html2canvas超出滚动条不显示
  • ¥15 java业务性能问题求解(sql,业务设计相关)
  • ¥15 52810 尾椎c三个a 写蓝牙地址