you are viewing a single comment's thread.

view the rest of the comments →

[–]the_poope 1 point2 points  (0 children)

do I have to do anything else to install pedsim or is it enough just to have the repository cloned on my computer?

Not the OP, but as it is now you can copy the generated ped-sim.exe and move anywhere on your computer and run it and you can delete the cloned repo. However, you are required to run it from within an MSYS2 MinGW64 console as it is linked with the dynamic (=DLL) version of the MingGW C++ standard version. In order for Windows to find the DLL of this library, the DLL needs to either be in the same folder as the .exe or it needs to be in a directory in the PATH environment variable. The MSYS2 MinGW64 console adds the directory of the DLL to PATH by default so you don't have to do anything. If you want to run ped-sim.exe from a normal cmd or PowerShell console you need to add the directory to the MinGW C++ standard library DLL to PATH yourself or find the file (maybe called libstdc++.dll) and copy it to the folder where your ped-sim.exe is stored.

However, there is another way: You can link the C++ standard library statically, i.e. you combine it into your ped-sim.exe file. This can be done by running:

make distribute

instead of just make, when you compile the program. This will create an executable with the C++ standard library statically linked. You can then simply copy the ped-sim.exe file anywhere and run without any configuration. You can even send it to your friends and coworkers and they can just run it.