Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to create TraCI C++ api bindings for C#

The build configuration that triggers building of SWIG bindings for java and python is in
src/libsumo/CMakeLists.txt
It should be possible to add a C# section there as well.

regards,
Jakob

Am Sa., 20. Apr. 2019 um 20:59 Uhr schrieb <cchadj01@xxxxxxxxxxxx>:
Hello,

  I want to create C# bindings for libsumo. By using cmake to build 
sumo and by providing swig found in SUMOLibraries, libsumo bindings 
for python and java are created.
  I want to use libsumo in c# because I want to cut out the socket 
communication since it is too slow for my application.
  (note: I am currently using 
https://github.com/CodingConnected/CodingConnected.Traci in which I 
also contributed to)
  I would like to know how would I go about creating C# bindings. I 
have researched on SWIG and I have a good understanding on how I would 
use it for my c/c++ libraries but I would love it if someone could 
help me to create the bindings for libsumo too.

   I have found libsumo.i interface file Swig uses in 
SUMO_HOME/src/libsumo. This interface is used to create the bindings 
for Java and python but it could be just as well be used for C#. I 
have attempted to follow this guide found in stack overflow: 
https://stackoverflow.com/questions/11693047/how-to-create-a-dll-with-swig-from-visual-studio-2010 but to no avail since I don't know how I can modify the build in order to create the dll (or lib) just for 
libsumo.

  I would really appreciate your help.

Thank you,
Tom

_______________________________________________
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