[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Fwd: I can’t set libsumo library
|
Dear Milad,
you need the libsumo header file. If you use the precombiled binaries, then reference the "include" subdirectory in your Visual Studio project. Additionally add the file path to libsumocpp.lib (situated in the "bin" subdirectory) to the Linker section / additional dependendies in Visual Studio as well. Please double-check all file paths as it is very easy to commit some errors in this context.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Fwd: I can’t set libsumo library
Datum: 2024-02-06T15:06:47+0100
Von: "Milad Sasha" <milad.sasha70@xxxxxxxxx>
An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>
Dear Mirko Barthauer
Thank you for your repl. Actually I am transportation engineer and your words are not easy to understand for me.
I have downloaded and installed SUMO. Then to use libsumo in c++ I have added the header and the .lib files into visual studio. But the problem is when I run the c++ code , it has errors. I think the error is because the library is not built or maybe because I need to access the source code or build the SUMO . Actually I don’t know what the problem is. Since It is first time I am using libsumo. Therefore I will appreciate if you guide me how to set libsumo in c++ and solve this problem.
Thank you very much
Milad
Hi Milad,
you need to have write access to clone Github source code into some folder. Which programming language do you use together with libsumo? If it is C++, then link libsumocpp. I haven't tried the library provided with precompiled binaries but always compile it on my machine...
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Fwd: I can’t set libsumo library
Datum: 2024-02-05T18:29:15+0100
Von: "Milad Sasha via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>
Good evening dear Mirko Barthauer
I hope you are wel. I tried to include libsumo headers and library into my visual studio project. However, I can’t start simulations. I think there is a need for building sumo to access the source codes and building the library. I am not sure about steps. Also I tried to clone source codes from git hub into sumo’s folder but it didn’t permit me to do that.
I will appreciate if you help me.
Best regards