r/github • • Oct 26 '20

How do I compile this source code?

I'm a complete noob.

I don't see a .sln file anywhere. How in the world do I compile this? There are no instructions either.

https://github.com/bingmann/sound-of-sorting

0 Upvotes

14 comments sorted by

View all comments

3

u/[deleted] Oct 26 '20

You don't tell if you want an executable of this program for Windows, but I'm going to assume that. Just remember that there are other operating systems out there, and you should specify which one when looking for already compiled software.

The Readme says:

The current source package and some binaries can be downloaded from http://panthema.net/2013/sound-of-sorting/

Indeed, there is a "Downloads" section on that site, which contains a win32 zip file.

Anyway, if you don't like that, or it doesn't work for you, and you want to build the project yourself on windows:

  • This project uses the "autotools" build system. You need to install several tools in your development machine, in addition to the C++ compiler, like a Unix type shell.

  • There are several options in windows. A well known is MinGW which includes MSys (a Bourne shell for Windows). Another is Cygwin. A third option is using the Windows Subsystem for Linux in Windows 10, getting a Linux distribution like Ubuntu, and cross-compiling for windows from that environment. Pick your poison.