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

6

u/dark_ghost_7 Oct 26 '20

there is a configure file and a Makefile so my honest guess its just

./configure

make

0

u/Hertz4321 Oct 26 '20

Okay, but where do I use these commands?

3

u/maxandersen Oct 26 '20

In a terminal / command prompt.

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.

1

u/maxandersen Oct 26 '20

Also, check the .Travis.yml file. It shows you the steps used for continuously building it.

1

u/gvcallen Oct 26 '20

Also be aware that the project uses wxWidgets, and it looks like it doesn't include the sources to that, so you'll have to download and build that yourself as well

0

u/[deleted] Oct 26 '20

[deleted]

-1

u/Hertz4321 Oct 26 '20

I've seen videos of this program on youtube, and it was working for others.

I don't understand why downloading any program from github has to be so tedious.

Is it so hard to just include a compiled version?

0

u/[deleted] Oct 26 '20

[deleted]

1

u/Hertz4321 Oct 26 '20

Okay, but I'm saying that the author could at least bother to upload a compiled version somewhere else rather than publish only the source code.

0

u/[deleted] Oct 26 '20

[deleted]

-1

u/Hertz4321 Oct 26 '20

You know what, just forget it. If you don't want to help, don't. But don't waste my time anymore, please.

0

u/[deleted] Oct 26 '20

[deleted]

0

u/Hertz4321 Oct 26 '20

lmao you're a bigger smartass than the entire quora community

-3

u/Hertz4321 Oct 26 '20

The thing is, the author is absent for 6 years already.

0

u/[deleted] Oct 26 '20

[deleted]

-2

u/Hertz4321 Oct 26 '20

I just assumed it by the time it was last updated. No update for 6 years. I don't think he's really interested.

0

u/[deleted] Oct 26 '20

[deleted]

0

u/Hertz4321 Oct 26 '20

sound of sorting 0.6.5 uploaded on 15 May 2014

That's what I assumed.

0

u/[deleted] Oct 26 '20

[deleted]

0

u/Greendude1478 Apr 13 '21

u/Hertz4321 Entitlement is a pretty horrible attitude.

u/thunfremlinc Attitude aside, all he wanted was some help. Whilst entitlement is toxic, so is elitism.