sumo icon indicating copy to clipboard operation
sumo copied to clipboard

libsumo build issues

Open behrisch opened this issue 3 years ago • 1 comments

  • [ ] not only the static lib but at least the python module (Java probably as well) depends on install_dll
  • [ ] check if we can ensure that MSVC selects "Release" as the default config because "Debug" does not build libsumo properly

behrisch avatar Jul 04 '22 07:07 behrisch

Not sure if this belongs here: if I build SUMO on a headless linux server (gentoo) with FOX_CONFIG disabled (cmake -D CHECK_OPTIONAL_LIBS=OFF -D FOX_CONFIG= ../..), I get the following error when loading libsumo in python or java:

ImportError: /#######/sumo-1.14.0/tools/libsumo/_libsumo.so: undefined symbol: _ZN7libsumo3GUI9DOMAIN_IDE

with 1.13.0 I get a similar error:

ImportError: /#######/sumo-1.13.0/tools/libsumo/_libsumo.so: undefined symbol: _ZN7libsumo3GUI11getBoundaryERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE

With 1.12.0 libsumo.so can be successfully loaded. Loading libtraci instead shows no problems in all versions.

kschrab avatar Jul 28 '22 10:07 kschrab

@kschrab: I tried to fix this with liberal use of fox-related ifdefs (as we do in other parts of the code) but to no avail because the value of HAVE_FOX is not set for some reason when compiling libsumo/GUI.h. I'm leaving this to Michael for when he comes back from vacation.

namdre avatar Aug 11 '22 07:08 namdre