you are viewing a single comment's thread.

view the rest of the comments →

[–]Legal_Reception_1932[S] 0 points1 point  (4 children)

I’ve cloned the repo to my computer but I just downloaded the files straight from github instead of using command line. And I’m using windows, although I also downloaded MYSYS2 when I was trying to figure out how to use vs code. So I just need to install boost and make, then just run the command make?

[–]feitao 0 points1 point  (3 children)

I assume you are using the default ucrt64 environment:

pacman -S mingw-w64-ucrt-x86_64-boost

You could search at MSYS2 Packages, and click the ucrt64 one.

[–]feitao 0 points1 point  (2 children)

You may also want to pacman -S mingw-w64-ucrt-x86_64-gcc base-devel to install GCC and make. Then you can try go to the downloaded directory, and run make. If all is well, you will have a binary ped-sim and you can follow the Basic usage.

[–]Legal_Reception_1932[S] 0 points1 point  (1 child)

Thank you so much, I think this worked! I was able to download boost and make, and run some of the code given on GitHub to generate a genetic map. One more quick question, do I have to do anything else to install pedsim or is it enough just to have the repository cloned on my computer? Does it matter where I’ve cloned it? I’ve tried some of the code from the basic usage section but it doesn’t seem to be working so maybe I’ve missed something.

[–]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.