eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.48k stars 1.4k forks source link

Build Error. make fails with Error 2 #13823

Closed ovechou closed 11 months ago

ovechou commented 11 months ago

Hi I have some problems while installing sumo on centOS. In fact, I am not familiar with Linux environment... I follow the instruction by the otficial version:

sudo apt-get install git cmake python3 g++ libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgl2ps-dev python3-dev swig default-jdk maven libeigen3-dev
git clone --recursive https://github.com/eclipse-sumo/sumo
export SUMO_HOME="$PWD/sumo"
mkdir sumo/build/cmake-build && cd sumo/build/cmake-build
cmake ../.. make -j$(nproc)

SUMO-version: my sumo : 1.18.0

operating system: OS : Ubuntu 20.04

The build fails at make step with the error:

[ 96%] Built target generate-templates-h
make: *** [Makefile:146:all] 错误 2

More information below.

cmake ../.. output:

-- CMAKE_BINARY_DIR: /home/ove/sumo/build/cmake-build
-- CMAKE_SOURCE_DIR: /home/ove/sumo
-- 
-- Platform: 
--     Host: Linux-6.2.0-32-generic x86_64
--     Target: Linux-6.2.0-32-generic x86_64
--     CMake: 3.22.1
--     CMake generator: Unix Makefiles
--     CMake build tool: /usr/bin/gmake
--     Compiler: GNU 11.4.0
-- 
-- Found Python: /home/ove/anaconda3/bin/python3.10
-- Found Proj: /usr/lib/x86_64-linux-gnu/libproj.so
-- Found Fox: -I/usr/include/fox-1.6 -L/usr/lib/x86_64-linux-gnu -lFOX-1.6 -lX11 -lXext -lfreetype -lfontconfig -lXft -lXcursor -lfreetype -lfontconfig -lfreetype -lGL -lGLU -ldl -lpthread -lrt -ljpeg -lpng -ltiff -lz -lGLU -lGL
-- Could NOT find suitable FFmpeg.
-- Could NOT find osgGA (missing: OSGGA_LIBRARY OSGGA_INCLUDE_DIR) 
-- Could NOT find osgViewer (missing: OSGVIEWER_LIBRARY OSGVIEWER_INCLUDE_DIR) 
-- Could NOT find osgUtil (missing: OSGUTIL_LIBRARY OSGUTIL_INCLUDE_DIR) 
-- Could NOT find osgDB (missing: OSGDB_LIBRARY OSGDB_INCLUDE_DIR) 
-- Could NOT find osgText (missing: OSGTEXT_LIBRARY OSGTEXT_INCLUDE_DIR) 
-- Could NOT find osg (missing: OSG_LIBRARY OSG_INCLUDE_DIR) 
-- Could NOT find OpenThreads (missing: OPENTHREADS_LIBRARY OPENTHREADS_INCLUDE_DIR) 
-- Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES OPENSCENEGRAPH_INCLUDE_DIR) (Required is at least version "3.4.0")
-- Could NOT find JuPedSim! Skipping JuPedSim integration.
-- Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE GETTEXT_MSGFMT_EXECUTABLE) 
CMake Warning at CMakeLists.txt:646 (message):
  Gettext tools not found, translation files will not be generated.

-- Found Java: /usr/bin/java (found version "11.0.20") found components: Development 
-- Found Java: /usr/bin/java (found version "11.0.20.1") 
-- Enabled features: Linux-6.2.0-32-generic x86_64 GNU 11.4.0 Release FMI Proj GUI Intl SWIG GDAL GL2PS Eigen
-- Configuring done
CMake Warning at unittest/src/utils/common/CMakeLists.txt:1 (add_executable):
  Cannot generate a safe runtime search path for target testcommon because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/ove/anaconda3/lib

  Some of these libraries may not be found correctly.

CMake Warning at unittest/src/utils/geom/CMakeLists.txt:1 (add_executable):
  Cannot generate a safe runtime search path for target testgeom because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/ove/anaconda3/lib

  Some of these libraries may not be found correctly.

CMake Warning at unittest/src/utils/foxtools/CMakeLists.txt:1 (add_executable):
  Cannot generate a safe runtime search path for target testfoxtools because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/ove/anaconda3/lib

  Some of these libraries may not be found correctly.

CMake Warning at unittest/src/microsim/CMakeLists.txt:1 (add_executable):
  Cannot generate a safe runtime search path for target testmicrosim because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/ove/anaconda3/lib

  Some of these libraries may not be found correctly.

CMake Warning at unittest/src/netbuild/CMakeLists.txt:1 (add_executable):
  Cannot generate a safe runtime search path for target testnetbuild because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/ove/anaconda3/lib

  Some of these libraries may not be found correctly.

-- Generating done
-- Build files have been written to: /home/ove/sumo/build/cmake-build

The whole information at make step:

Consolidate compiler generated dependencies of target foreign_phemlight
Consolidate compiler generated dependencies of target foreign_tcpip
Consolidate compiler generated dependencies of target foreign_phemlight_V5
Consolidate compiler generated dependencies of target utils_xml
Consolidate compiler generated dependencies of target mesosim
Consolidate compiler generated dependencies of target microsim_engine
Consolidate compiler generated dependencies of target utils_distribution
Consolidate compiler generated dependencies of target microsim_actions
Consolidate compiler generated dependencies of target microsim_lcmodels
Consolidate compiler generated dependencies of target microsim_trigger
Consolidate compiler generated dependencies of target utils_importio
Consolidate compiler generated dependencies of target utils_geom
[  0%] Built target generate-version-h
Consolidate compiler generated dependencies of target utils_options
[  0%] Built target install_dll
Consolidate compiler generated dependencies of target utils_shapes
Consolidate compiler generated dependencies of target utils_traction_wire
Consolidate compiler generated dependencies of target mesogui
Consolidate compiler generated dependencies of target utils_handlers
Consolidate compiler generated dependencies of target microsim_transportables
Consolidate compiler generated dependencies of target utils_vehicle
Consolidate compiler generated dependencies of target utils_common
Consolidate compiler generated dependencies of target utils_emissions
Consolidate compiler generated dependencies of target netload
Consolidate compiler generated dependencies of target microsim_cfmodels
[  1%] Built target foreign_tcpip
[  2%] Built target foreign_phemlight
Consolidate compiler generated dependencies of target utils_gui_globjects
Consolidate compiler generated dependencies of target utils_gui_div
[  2%] Built target foreign_phemlight_V5
Consolidate compiler generated dependencies of target microsim_output
Consolidate compiler generated dependencies of target utils_gui_images
Consolidate compiler generated dependencies of target utils_gui_settings
Consolidate compiler generated dependencies of target utils_foxtools
Consolidate compiler generated dependencies of target microsim_traffic_lights
[  2%] Built target utils_distribution
Consolidate compiler generated dependencies of target microsim_devices
[  2%] Built target utils_importio
Consolidate compiler generated dependencies of target utils_gui_tracker
[  2%] Built target utils_shapes
Consolidate compiler generated dependencies of target utils_gui_cursors
[  5%] Built target utils_xml
[  5%] Built target utils_geom
[  5%] Built target microsim_engine
[  6%] Built target utils_options
Consolidate compiler generated dependencies of target utils_gui_windows
[  6%] Built target mesosim
Consolidate compiler generated dependencies of target utils_gui_shortcuts
[  7%] Built target microsim_lcmodels
[  8%] Built target utils_traction_wire
[  9%] Built target utils_handlers
[  9%] Built target utils_vehicle
[  9%] Built target microsim_trigger
Consolidate compiler generated dependencies of target gui
[ 10%] Built target mesogui
[ 10%] Built target install_mo
Consolidate compiler generated dependencies of target gui_dialogs
Consolidate compiler generated dependencies of target guinetload
[ 10%] Built target microsim_actions
[ 10%] Built target utils_gui_cursors
[ 11%] Built target utils_emissions
[ 13%] Built target utils_common
[ 13%] Built target utils_gui_settings
[ 14%] Built target utils_gui_tracker
[ 14%] Built target utils_gui_shortcuts
[ 15%] Built target utils_gui_images
Consolidate compiler generated dependencies of target netimport_vissim
[ 16%] Built target microsim_transportables
Consolidate compiler generated dependencies of target od
Consolidate compiler generated dependencies of target activitygen_activities
Consolidate compiler generated dependencies of target netwrite
Consolidate compiler generated dependencies of target netimport
[ 17%] Built target netload
Consolidate compiler generated dependencies of target netbuild
Consolidate compiler generated dependencies of target netimport_vissim_tempstructs
[ 18%] Built target utils_gui_globjects
Consolidate compiler generated dependencies of target utils_traci
Consolidate compiler generated dependencies of target router
[ 19%] Built target utils_gui_div
Consolidate compiler generated dependencies of target foreign_eulerspiral
Consolidate compiler generated dependencies of target activitygen_city
Consolidate compiler generated dependencies of target guisim
Consolidate compiler generated dependencies of target netedit_tools
Consolidate compiler generated dependencies of target libtracistatic
Consolidate compiler generated dependencies of target libtracicpp
[ 19%] Built target libsumo_swig_compilation
[ 19%] Built target libtracijni_swig_compilation
Consolidate compiler generated dependencies of target netimport_vissim_typeloader
[ 19%] Built target utils_gui_windows
[ 20%] Built target libsumojni_swig_compilation
[ 21%] Built target microsim_cfmodels
[ 22%] Built target netimport_vissim
[ 22%] Built target utils_traci
[ 22%] Built target foreign_eulerspiral
[ 23%] Built target od
Consolidate compiler generated dependencies of target netedit_dialogs_tools
[ 24%] Built target guinetload
[ 25%] Built target activitygen_activities
[ 26%] Built target netwrite
[ 26%] Built target gui
[ 29%] Built target utils_foxtools
[ 29%] Built target libtraci_swig_compilation
Consolidate compiler generated dependencies of target netedit_dialogs_options
Consolidate compiler generated dependencies of target netedit_changes
Consolidate compiler generated dependencies of target netedit_dialogs
Consolidate compiler generated dependencies of target netedit_frames_common
Consolidate compiler generated dependencies of target netedit_elements
Consolidate compiler generated dependencies of target netedit_frames_data
Consolidate compiler generated dependencies of target netedit_frames_network
Consolidate compiler generated dependencies of target netedit_frames_demand
Consolidate compiler generated dependencies of target testthreadpool
Consolidate compiler generated dependencies of target netedit_frames
Consolidate compiler generated dependencies of target netedit_elements_network
Consolidate compiler generated dependencies of target netedit_elements_data
[ 31%] Built target netedit_tools
[ 32%] Built target netimport_vissim_tempstructs
[ 32%] Built target gui_dialogs
[ 32%] Built target install_test_dll
Consolidate compiler generated dependencies of target netedit_elements_demand
[ 32%] Built target netedit_dialogs_tools
[ 32%] Built target netedit_dialogs_options
[ 33%] Built target activitygen_city
Consolidate compiler generated dependencies of target libsumostatic
[ 38%] Built target microsim_traffic_lights
[ 38%] Built target microsim_output
[ 40%] Built target netimport
[ 40%] Built target testthreadpool
[ 41%] Built target router
Consolidate compiler generated dependencies of target netedit_elements_additional
Consolidate compiler generated dependencies of target utils_iodevices
Consolidate compiler generated dependencies of target TraCITestClient
[ 44%] Built target libtracistatic
Consolidate compiler generated dependencies of target microsim
[ 45%] Built target netedit_frames_data
[ 46%] Built target libtracicpp
[ 49%] Built target netbuild
[ 53%] Built target microsim_devices
[ 53%] Built target netedit_elements
[ 54%] Built target netedit_frames_common
Consolidate compiler generated dependencies of target libtracijni
Consolidate compiler generated dependencies of target libtraci
Consolidate compiler generated dependencies of target traciserver
[ 54%] Built target TraCITestClient
Consolidate compiler generated dependencies of target testlibtraci
Consolidate compiler generated dependencies of target libsumoguistatic
[ 55%] Built target netedit_frames_network
[ 55%] Built target libtracijni
[ 56%] Built target netedit_elements_data
[ 58%] Built target utils_iodevices
[ 58%] Built target libtraci
[ 58%] Built target testlibtraci
[ 59%] Built target netedit_frames_demand
[ 60%] Built target netedit_elements_network
Consolidate compiler generated dependencies of target duarouter
Consolidate compiler generated dependencies of target od2trips
Consolidate compiler generated dependencies of target jtrrouter
Consolidate compiler generated dependencies of target emissionsDrivingCycle
Consolidate compiler generated dependencies of target testnetbuild
[ 62%] Built target netedit_changes
Consolidate compiler generated dependencies of target testfoxtools
Consolidate compiler generated dependencies of target emissionsMap
Consolidate compiler generated dependencies of target activitygen
Consolidate compiler generated dependencies of target testgeom
Consolidate compiler generated dependencies of target dfrouter
Consolidate compiler generated dependencies of target testcommon
Consolidate compiler generated dependencies of target netgenerate
Consolidate compiler generated dependencies of target marouter
Consolidate compiler generated dependencies of target polyconvert
[ 64%] Built target netedit_dialogs
[ 66%] Built target netedit_elements_demand
[ 66%] Built target od2trips
[ 66%] Linking CXX executable ../../../../../bin/testnetbuild
[ 68%] Built target netedit_frames
[ 73%] Built target netimport_vissim_typeloader
[ 73%] Linking CXX executable ../../../../../../bin/testfoxtools
[ 75%] Built target guisim
[ 75%] Built target emissionsDrivingCycle
[ 75%] Built target emissionsMap
[ 76%] Built target duarouter
[ 78%] Built target libsumostatic
Consolidate compiler generated dependencies of target netconvert
[ 79%] Built target jtrrouter
[ 79%] Linking CXX executable ../../../../../../bin/testcommon
[ 79%] Linking CXX executable ../../../../../../bin/testgeom
[ 79%] Built target netgenerate
[ 79%] Built target activitygen
[ 79%] Built target netconvert
[ 80%] Built target polyconvert
[ 80%] Built target marouter
[ 81%] Built target dfrouter
[ 84%] Built target netedit_elements_additional
[ 86%] Built target traciserver
[ 90%] Built target libsumoguistatic
[ 92%] Built target microsim
Consolidate compiler generated dependencies of target libsumojni
Consolidate compiler generated dependencies of target sumo
Consolidate compiler generated dependencies of target sumo-gui
Consolidate compiler generated dependencies of target testlibsumostatic
Consolidate compiler generated dependencies of target libsumo
Consolidate compiler generated dependencies of target testmicrosim
Consolidate compiler generated dependencies of target libsumocpp
[ 92%] Built target libsumojni
[ 93%] Built target sumo-gui
[ 93%] Built target testlibsumostatic
[ 93%] Built target sumo
[ 93%] Built target libsumo
[ 93%] Linking CXX executable ../../../../../bin/testmicrosim
[ 93%] Generating templates.h
/usr/bin/ld: CMakeFiles/testfoxtools.dir/MFXWorkerThreadTest.cpp.o:(.data.rel.ro._ZTI30MFXWorkerThread_test_init_Test[_ZTI30MFXWorkerThread_test_init_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testfoxtools.dir/MFXWorkerThreadTest.cpp.o:(.data.rel.ro._ZTI33MFXWorkerThread_test_get_all_Test[_ZTI33MFXWorkerThread_test_get_all_Test]+0x10): undefined reference to `typeinfo for testing::Test'
[ 95%] Built target libsumocpp
Obtaining 'edgeDataFromFlow' tool template.
collect2: error: ld returned 1 exit status
make[2]: *** [unittest/src/utils/foxtools/CMakeFiles/testfoxtools.dir/build.make:113:../../bin/testfoxtools] 错误 1
make[1]: *** [CMakeFiles/Makefile2:5549:unittest/src/utils/foxtools/CMakeFiles/testfoxtools.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 95%] Building CXX object src/traci_testclient/CMakeFiles/testlibsumo.dir/testlibsumo_main.cpp.o
[ 95%] Building C object src/fmi/CMakeFiles/libsumofmi2.dir/sumo2fmi_bridge.c.o
[ 95%] Building C object src/fmi/CMakeFiles/libsumofmi2.dir/fmi2Functions.c.o
[ 96%] Building CXX object src/fmi/CMakeFiles/libsumofmi2.dir/libsumocpp2c.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
/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/common/CMakeFiles/testcommon.dir/build.make:179:../../bin/testcommon] 错误 1
make[1]: *** [CMakeFiles/Makefile2:5473:unittest/src/utils/common/CMakeFiles/testcommon.dir/all] 错误 2
collect2: error: ld returned 1 exit status
make[2]: *** [unittest/src/utils/geom/CMakeFiles/testgeom.dir/build.make:162:../../bin/testgeom] 错误 1
make[1]: *** [CMakeFiles/Makefile2:5511:unittest/src/utils/geom/CMakeFiles/testgeom.dir/all] 错误 2
Obtaining 'flowFromEdgeData' tool template.
/usr/bin/ld: CMakeFiles/testnetbuild.dir/NBHeightMapperTest.cpp.o:(.data.rel.ro._ZTI18NBHeightMapperTest[_ZTI18NBHeightMapperTest]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testnetbuild.dir/NBTrafficLightLogicTest.cpp.o:(.data.rel.ro._ZTI48NBTrafficLightLogic_test_method_getDuration_Test[_ZTI48NBTrafficLightLogic_test_method_getDuration_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: /lib/x86_64-linux-gnu/libnetcdf.so.19: undefined reference to `curl_global_cleanup@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_easy_getinfo@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_cleanup@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_perform@CURL_OPENSSL_4'
/usr/bin/ld: /lib/x86_64-linux-gnu/libnetcdf.so.19: undefined reference to `curl_global_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_easy_perform@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_mime_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFReadRGBAStripExt@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_easy_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFReadFromUserBuffer@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_add_handle@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_remove_handle@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFGetStrileOffsetWithErr@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_mime_addpart@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_version_info@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_mime_name@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFGetStrileOffset@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFGetStrileByteCount@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_mime_filename@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_info_read@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_slist_free_all@CURL_OPENSSL_4'
/usr/bin/ld: /lib/x86_64-linux-gnu/libnetcdf.so.19: undefined reference to `curl_easy_strerror@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_easy_setopt@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFDeferStrileArrayWriting@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFGetStrileByteCountWithErr@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFForceStrileArrayWriting@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `TIFFReadRGBATileExt@LIBTIFF_4.0'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_slist_append@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_poll@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_version@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_setopt@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_mime_data@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_mime_free@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_easy_cleanup@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_init@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_mime_data_cb@CURL_OPENSSL_4'
/usr/bin/ld: /usr/lib/libgdal.so: undefined reference to `curl_multi_wait@CURL_OPENSSL_4'
collect2: error: ld returned 1 exit status
make[2]: *** [unittest/src/netbuild/CMakeFiles/testnetbuild.dir/build.make:131:../../bin/testnetbuild] 错误 1
make[1]: *** [CMakeFiles/Makefile2:5670:unittest/src/netbuild/CMakeFiles/testnetbuild.dir/all] 错误 2
Obtaining 'mapDetectors' tool template.
Obtaining 'filterDistricts' tool template.
[ 96%] Linking CXX executable ../../../../bin/testlibsumo
Obtaining 'gridDistricts' tool template.
/usr/bin/ld: CMakeFiles/testmicrosim.dir/MSEventControlTest.cpp.o:(.data.rel.ro._ZTI39MSEventControl_test_method_execute_Test[_ZTI39MSEventControl_test_method_execute_Test]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testmicrosim.dir/MSCFModelTest.cpp.o:(.data.rel.ro._ZTI13MSCFModelTest[_ZTI13MSCFModelTest]+0x10): undefined reference to `typeinfo for testing::Test'
/usr/bin/ld: CMakeFiles/testmicrosim.dir/MSCFModel_IDMTest.cpp.o:(.data.rel.ro._ZTI17MSCFModel_IDMTest[_ZTI17MSCFModel_IDMTest]+0x10): undefined reference to `typeinfo for testing::Test'
collect2: error: ld returned 1 exit status
make[2]: *** [unittest/src/microsim/CMakeFiles/testmicrosim.dir/build.make:179:../../bin/testmicrosim] 错误 1
make[1]: *** [CMakeFiles/Makefile2:5631:unittest/src/microsim/CMakeFiles/testmicrosim.dir/all] 错误 2
Obtaining 'stationDistricts' tool template.
[ 96%] Linking CXX shared library ../../../../bin/libsumofmi2.so
[ 96%] Built target testlibsumo
Obtaining 'drtOrtools' tool template.
[ 96%] Built target libsumofmi2
Error when generating tool template for drtOrtools: 'Command '['/home/ove/anaconda3/bin/python3.10', '/home/ove/sumo/src/netedit/../../tools/build/../drt/drtOrtools.py', '--save-template', 'stdout']' returned non-zero exit status 1.'.
Obtaining 'citybrain_flow' tool template.
Obtaining 'citybrain_infostep' tool template.
Obtaining 'citybrain_road' tool template.
Obtaining 'gtfs2fcd' tool template.
Obtaining 'gtfs2pt' tool template.
Obtaining 'vissim_parseRoutes' tool template.
Obtaining 'visum_convertEdgeTypes' tool template.
Obtaining 'abstractRail' tool template.
Obtaining 'createRoundaboutConnections' tool template.
Obtaining 'net2geojson' tool template.
Obtaining 'net2jpsgeometry' tool template.
Error when generating tool template for net2jpsgeometry: 'Command '['/home/ove/anaconda3/bin/python3.10', '/home/ove/sumo/src/netedit/../../tools/build/../net/net2jpsgeometry.py', '--save-template', 'stdout']' returned non-zero exit status 1.'.
Obtaining 'net2kml' tool template.
Obtaining 'net2poly' tool template.
Obtaining 'netcheck' tool template.
Obtaining 'netdiff' tool template.
Obtaining 'netmatch' tool template.
Obtaining 'network_statistics' tool template.
Obtaining 'reduceLanes' tool template.
Obtaining 'split_at_stops' tool template.
Obtaining 'addStopDelay' tool template.
Obtaining 'addStops2Routes' tool template.
Obtaining 'addTAZ' tool template.
Obtaining 'checkStopOrder' tool template.
Obtaining 'implausibleRoutes' tool template.
Obtaining 'route2OD' tool template.
Obtaining 'routecheck' tool template.
Obtaining 'routecompare' tool template.
Obtaining 'routeStats' tool template.
Obtaining 'scaleTimeLine' tool template.
Obtaining 'sort_routes' tool template.
Obtaining 'splitRandom' tool template.
Obtaining 'splitRouteFiles' tool template.
Obtaining 'tracegenerator' tool template.
Obtaining 'tracemapper' tool template.
Obtaining 'aggregateBatteryOutput' tool template.
Obtaining 'analyze_pedestrian_jam' tool template.
Obtaining 'analyze_teleports' tool template.
Obtaining 'attributeStats' tool template.
Obtaining 'attributeDiff' tool template.
Obtaining 'attributeCompare' tool template.
Obtaining 'computeCoordination' tool template.
Obtaining 'computePassengerCounts' tool template.
Obtaining 'computeStoppingPlaceUsage' tool template.
Obtaining 'countLaneChanges' tool template.
Obtaining 'edgeDataDiff' tool template.
Obtaining 'fcdDiff' tool template.
Obtaining 'generateTLSE2Detectors' tool template.
Obtaining 'parkingSearchTraffic' tool template.
Obtaining 'scheduleStats' tool template.
Obtaining 'stopOrder' tool template.
Obtaining 'tripinfoByType' tool template.
Obtaining 'vehLanes' tool template.
Obtaining 'vehrouteCountValidation' tool template.
Obtaining 'vehrouteDiff' tool template.
Obtaining 'walkFactor' tool template.
Obtaining 'circlePolygon' tool template.
Obtaining 'createTlsCsv' tool template.
Obtaining 'tls_csvSignalGroups' tool template.
Obtaining 'generateTurnRatios' tool template.
Obtaining 'turnCount2EdgeCount' tool template.
Obtaining 'turnFile2EdgeRelations' tool template.
Obtaining 'plot_csv_bars' tool template.
Obtaining 'plot_csv_pie' tool template.
Obtaining 'plot_csv_timeline' tool template.
Obtaining 'plot_net_dump' tool template.
Obtaining 'plot_net_selection' tool template.
Obtaining 'plot_net_speeds' tool template.
Obtaining 'plot_net_trafficLights' tool template.
Obtaining 'plot_summary' tool template.
Obtaining 'plotXMLAttributes' tool template.
Obtaining 'csv2xml' tool template.
Obtaining 'xml2csv' tool template.
Obtaining 'changeAttribute' tool template.
Obtaining 'filterElements' tool template.
Obtaining 'countEdgeUsage' tool template.
Obtaining 'createVehTypeDistribution' tool template.
Obtaining 'edgesInDistricts' tool template.
Obtaining 'extractTest' tool template.
Obtaining 'fcdReplay' tool template.
Obtaining 'findAllRoutes' tool template.
Obtaining 'generateBidiDistricts' tool template.
Obtaining 'generateContinuousRerouters' tool template.
Obtaining 'generateParkingAreaRerouters' tool template.
Obtaining 'generateParkingAreas' tool template.
Obtaining 'generateRailSignalConstraints' tool template.
Obtaining 'generateRerouters' tool template.
Obtaining 'osmGet' tool template.
Obtaining 'plot_trajectories' tool template.
Obtaining 'ptlines2flows' tool template.
Obtaining 'randomTrips' tool template.
Obtaining 'routeSampler' tool template.
Obtaining 'runSeeds' tool template.
Obtaining 'stateReplay' tool template.
Obtaining 'tileGet' tool template.
Obtaining 'tlsCoordinator' tool template.
Obtaining 'tlsCycleAdaptation' tool template.
Obtaining sumo template
Obtaining netgenerate template
[ 96%] Built target generate-templates-h
make: *** [Makefile:146:all] 错误 2
behrisch commented 11 months ago

Unfortunately anaconda messes with the system libraries and we cannot help here. Is uninstalling anaconda an option?

ovechou commented 11 months ago

你好

behrisch commented 11 months ago

No chinese speaker here

ovechou commented 11 months ago
    thanks,I used the apt-get to install and finished it!
    获取 Outlook for iOS

 发件人: @. @.> 代表 Michael Behrisch @.>发送时间: 星期五, 九月 15, 2023 12:02 上午收件人: sumo @.>抄送: 997367024 @.>; author @.>主题: Re: [eclipse-sumo/sumo] Build Error. make fails with Error 2 (Issue#13823)  No chinese speaker here

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

wuzhaoju commented 9 months ago

thanks,I used the apt-get to install and finished it! 获取 Outlook for iOS  发件人: @. @.> 代表 Michael Behrisch @.>发送时间: 星期五, 九月 15, 2023 12:02 上午收件人: sumo @.>抄送: 997367024 @.>; author @.>主题: Re: [eclipse-sumo/sumo] Build Error. make fails with Error 2 (Issue#13823)  No chinese speaker here —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

hello,I meet the same error as you, can you tell me how I can solve it?

ovechou commented 9 months ago

你好

ovechou commented 9 months ago
I just used the sumo install tutorial to install it again. 周斌 发件人: ***@***.*** ***@***.***> 代表 wuzhaoju ***@***.***>日期: 星期一, 2023年11月20日 16:10收件人: sumo ***@***.***>抄送: 997367024 ***@***.***>, author ***@***.***>主题: Re: [eclipse-sumo/sumo] Build Error. make fails with Error 2 (Issue#13823)thanks,I used the apt-get to install and finished it! 获取 Outlook for iOS  发件人: @.*** @.> 代表 Michael Behrisch @.>发送时间: 星期五, 九月 15, 2023 12:02 上午收件人: sumo @.>抄送: 997367024 @.>; author @.>主题: Re: [eclipse-sumo/sumo] Build Error. make fails with Error 2 (Issue#13823)  No chinese speaker here —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.>hello,I meet the same error as you, can you tell me how I cansave it?—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>