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.58k stars 1.44k forks source link

Sumo not installing correctly on Mac #11757

Open smbenincasa opened 2 years ago

smbenincasa commented 2 years ago

I've been trying to get sumo up and running on a mac machine (running Monterey 12.6). I'm having difficulties with both the homebrew and build from source methods.

The homebrew is successful for the sumo and netedit capabilities, but silently fails to create a tools folder and thus does not successfully install osmWebWizard capabilities.

Building from source can nearly get there but is unable to finish due to some architecture problems. I will copy the error messages from the build option at the bottom of this email.

Thanks for your help!

------error message to follow

[ 92%] Built target microsim

Undefined symbols for architecture x86_64:

"typeinfo for testing::Test", referenced from:

  typeinfo for Boundary_test_method_add_Test in BoundaryTest.cpp.o

  typeinfo for Boundary_test_method_add_multiple_Test in BoundaryTest.cpp.o

  typeinfo for Boundary_test_method_getCenter_Test in BoundaryTest.cpp.o

  typeinfo for Boundary_test_method_getWidthHeight_Test in BoundaryTest.cpp.o

  typeinfo for Boundary_test_method_around_Test in BoundaryTest.cpp.o

  typeinfo for Boundary_test_method_overlapsWith_Test in BoundaryTest.cpp.o

  typeinfo for Boundary_test_method_crosses_Test in BoundaryTest.cpp.o

  ...

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [/Users/sbenincasa/sumo/bin/testgeom] Error 1

make[1]: *** [unittest/src/utils/geom/CMakeFiles/testgeom.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

Undefined symbols for architecture x86_64:

"typeinfo for testing::Test", referenced from:

  typeinfo for StringTokenizer_test_split_with_whitechar_Test in StringTokenizerTest.cpp.o

  typeinfo for StringTokenizer_test_split_with_newline_Test in StringTokenizerTest.cpp.o

  typeinfo for StringTokenizer_test_split_with_x_Test in StringTokenizerTest.cpp.o

  typeinfo for StringTokenizer_test_split_any_char_Test in StringTokenizerTest.cpp.o

  typeinfo for StringTokenizer_test_method_reinit_Test in StringTokenizerTest.cpp.o

  typeinfo for StringTokenizer_test_method_size_Test in StringTokenizerTest.cpp.o

  typeinfo for StringTokenizer_test_method_front_Test in StringTokenizerTest.cpp.o

  ...

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [/Users/sbenincasa/sumo/bin/testcommon] Error 1

Undefined symbols for architecture x86_64:

"typeinfo for testing::Test", referenced from:

  typeinfo for MFXWorkerThread_test_init_Test in MFXWorkerThreadTest.cpp.o

  typeinfo for MFXWorkerThread_test_get_all_Test in MFXWorkerThreadTest.cpp.o

make[1]: *** [unittest/src/utils/common/CMakeFiles/testcommon.dir/all] Error 2

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [/Users/sbenincasa/sumo/bin/testfoxtools] Error 1

make[1]: *** [unittest/src/utils/foxtools/CMakeFiles/testfoxtools.dir/all] Error 2

Undefined symbols for architecture x86_64:

"typeinfo for testing::Test", referenced from:

  typeinfo for NBHeightMapperTest in NBHeightMapperTest.cpp.o

  typeinfo for NBTrafficLightLogic_test_method_getDuration_Test in NBTrafficLightLogicTest.cpp.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [/Users/sbenincasa/sumo/bin/testnetbuild] Error 1

make[1]: *** [unittest/src/netbuild/CMakeFiles/testnetbuild.dir/all] Error 2

[ 92%] Built target sumo

[ 92%] Built target testlibsumostatic

[ 92%] Built target libsumo

[ 93%] Built target sumo-gui

[ 93%] Linking CXX executable /Users/sbenincasa/sumo/bin/testmicrosim

[ 95%] Built target netedit

[ 98%] Built target libsumocpp

Undefined symbols for architecture x86_64:

"typeinfo for testing::Test", referenced from:

  typeinfo for MSEventControl_test_method_execute_Test in MSEventControlTest.cpp.o

  typeinfo for MSCFModelTest in MSCFModelTest.cpp.o

  typeinfo for MSCFModel_IDMTest in MSCFModel_IDMTest.cpp.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [/Users/sbenincasa/sumo/bin/testmicrosim] Error 1

make[1]: *** [unittest/src/microsim/CMakeFiles/testmicrosim.dir/all] Error 2

make: *** [all] Error 2

angelobanse commented 2 years ago

It seems as you are using an Intel-based Mac. Which version of clang are you using? clang --version

Did you install all prerequisites and dependencies? -> https://sumo.dlr.de/docs/Installing/MacOS_Build.html#the_homebrew_approach

smbenincasa commented 2 years ago

Hi Angelo,

Yes I did install the preqs and dependencies for the brew approach as described.

The clang version I'm using is:

Apple clang version 14.0.0 (clang-1400.0.29.102)

Target: x86_64-apple-darwin21.6.0

Thread model: posix

Cheers, Sam

On Wed, Oct 5, 2022 at 5:17 AM Angelo Banse @.***> wrote:

It seems as you are using an Intel-based Mac. Which version of clang are you using? clang --version

Did you install all prerequisites and dependencies? -> https://sumo.dlr.de/docs/Installing/MacOS_Build.html#the_homebrew_approach

— Reply to this email directly, view it on GitHub https://github.com/eclipse/sumo/issues/11757#issuecomment-1268171462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVPS2QESJUZEUQE2RPMDU3WBVBQXANCNFSM6AAAAAAQ3SOW5I . You are receiving this because you authored the thread.Message ID: @.***>