I can use sumo-gui in the same repository. But, only libsumo::Simulation::load and libsumo::Simulation::step is not launching GUI.
On Tue, Oct 4, 2022 at 11:30 AM Mahima <[email protected]> wrote: > Just wanted to add that I am trying this on Ubuntu 18.04.6. > > thanks > > On Tue, Oct 4, 2022 at 12:28 AM Mahima <[email protected]> wrote: > >> I have tried the below test, but no GUI is launching. Definitely, there >> is something missing. Do we need to enable flags related to FOX? >> >> #include <iostream> #define HAVE_LIBSUMOGUI // if you are on Windows or >> have libsumo compiled yourself without GUI you should remove this line # >> include <libsumo/libsumo.h> using namespace libsumo; int main(int argc, >> char* argv[]) { Simulation::load({"-c", "test.sumocfg"}); for (int i = 0; >> i < 5; i++) { Simulation::step(); } Simulation::close(); } >> >> On Mon, Oct 3, 2022 at 10:17 PM Mahima <[email protected]> wrote: >> >>> Please suggest I have followed instructions as per Libsumo - SUMO >>> Documentation (dlr.de) <https://sumo.dlr.de/docs/Libsumo.html> >>> Still I cannot see any GUI running. Is there any other #define to be >>> enabled too? >>> >>> Thanks >>> >>> On Sun, Oct 2, 2022 at 5:07 PM Mahima <[email protected]> wrote: >>> >>>> Thanks, Jakob. >>>> I can see this commit 8d48e88631fed2c6b317a3d5b86374d6c9901e1d. >>>> >>>> HAVE_LIBSUMOGUI is already defined in the code. On using the following >>>> commands, I cannot see any GUI being launched. >>>> libsumo::Simulation::load(sumo_options); >>>> libsumo::Simulation::step(); >>>> >>>> What Else do I need to change to view the simulation? >>>> >>>> Thanks, >>>> Mahima >>>> >>>> >>>> On Sun, Oct 2, 2022 at 4:04 PM Jakob Erdmann <[email protected]> >>>> wrote: >>>> >>>>> Yes. But only on Linux. >>>>> >>>>> Am So., 2. Okt. 2022 um 12:36 Uhr schrieb Mahima <[email protected]>: >>>>> >>>>>> Hi, >>>>>> Do we have libsumo gui support? >>>>>> >>>>>> Thanks >>>>>> _______________________________________________ >>>>>> sumo-user mailing list >>>>>> [email protected] >>>>>> To unsubscribe from this list, visit >>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user >>>>>> >>>>> _______________________________________________ >>>>> sumo-user mailing list >>>>> [email protected] >>>>> To unsubscribe from this list, visit >>>>> https://www.eclipse.org/mailman/listinfo/sumo-user >>>>> >>>>
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
