Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Compile with libsumo option

Hi Michael,

just wanted to say I finally made it. There was probably something more than just the cache. Still I'm not sure which step was the important one, as I changed between Python versions, added env vars to Python subdirectories and so on. Now I use Python 3.7.1.

One thing though: Are you sure about the example script in the wiki http://sumo.dlr.de/wiki/Libsumo ? For me, it works if I write the following:

 

import libsumo
libsumo.simulation.load(["-c", "test.sumocfg"])
libsumo.simulation.step()

Regards

Mirko

-----Original-Nachricht-----
Betreff: Re: [sumo-user] Compile with libsumo option
Datum: 2018-12-09T16:34:27+0100
Von: "Michael Behrisch" <oss@xxxxxxxxxxx>
An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>

Hi Mirko,
please try again with a clean build (remove the cache or even better try
with an empty build dir) whenever you change the CHECK_OPTIONAL_LIBS
value. Also it is currently tested with Python 3.6 only. (I know we
still recommend 2.7 but I hope that is going to change soon.)

Best regards,
Michael

Am 07.12.18 um 21:05 schrieb m.barthauer@xxxxxxxxxxx:
> Hello,
>
>  
>
> I have some questions on how to use libsumo
> (http://sumo.dlr.de/wiki/Libsumo). Have been trying very hard to get
> this working on Windows this afternoon but didnt't succeed...
>
>  
>
> My specs / approach:
>
> * Python 2.7 is installed and listed in the PATH env. var
> * Correct SUMO_LIBRARIES env var
> * SWIG available as part of the downloaded SUMO_LIBRARIES package
> * Execute CMake GUI and check "CHECK_OPTIONAL_LIBS" and
> "ENABLE_PYTHON_BINDINGS"
>
> This way, SWIG is not listed as enabled feature in the CMake log window.
> In the CMakeLists.txt of the top folder
> (https://github.com/eclipse/sumo/blob/master/CMakeLists.txt ),
> "CHECK_OPTIONAL_LIBS" is disabled anyway for a couple of reasons. Later,
> "CHECK_OPTIONAL_LIBS" is needed to add SWIG. Under which specific
> conditions can I make use of SWIG and use libsumo (which version of
> Python, 32bit/64bit etc.)? I tried to comment out some parts of the
> CMake commands, but didn't succeed to generate the libsumo.py.
>
>  
>
> Regards
>
> Mirko
>
>
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>




Back to the top