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" <[email protected]>
An: "Mirko Barthauer" <[email protected]>
 
 
 
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 

On Tue, Feb 6, 2024 at 6:02 AM Mirko Barthauer <[email protected]
<mailto:[email protected]> > wrote:
  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" <[email protected]
  <mailto:[email protected]> >
  An: "[email protected] <mailto:[email protected]> " <
  [email protected] <mailto:[email protected]> >
   
   
   
   

  ---------- Forwarded message ---------
  From: Milad Sasha <[email protected]
  <mailto:[email protected]> >
  Date: Mon, Feb 5, 2024 at 12:27 PM
  Subject: I can’t set libsumo library
  To: Mirko Barthauer <[email protected]
  <mailto:[email protected]> >


  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
  Milad 
   
   
   

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to