waveform icon indicating copy to clipboard operation
waveform copied to clipboard

Create a proper Makefile

Open rzurad opened this issue 10 years ago • 3 comments

The current Makefile is useless. Make it useful for building via FreeBSD ports, Ubuntu, and Mac OSX

rzurad avatar Feb 13 '15 09:02 rzurad

Interesting that I was trying to build this on Mac OSX just a few hours after you posted this. But yeah, I would like to build it on Mac OSX please :grin:

I would do it myself but I'm not a C man... probably best not to pronounce that out loud.

MaffooBristol avatar Feb 13 '15 16:02 MaffooBristol

I agree. I added Mac OSX to the list of build targets.

I do all of my developing on a mac, but the build target for this program from the get-go was a FreeBSD machine, so I never found the time to create a Makefile that actually works for other targets. It always kinda bugged me that I couldn't compile it on my local mac.

And don't worry, I'm not a C man either. This project was my attempt to start rectifying that. Obviously, now I understand the C part, just not the Make part :)

I'm not sure when I'll have time to figure this out, but it is on my radar and I want to address it for a 1.0 release of waveform.

rzurad avatar Feb 13 '15 19:02 rzurad

consolidating notes from Trello:

ffmpeg is installed on Ubuntu VM via https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu method. Have not attempted a build yet
FreeBSD VM can build waveform (with 1 warning) as it stands right now using "cc -I/usr/local/include -L/usr/local/lib -o waveform src/main.c -Wall -g -O3 -lavcodec -lavutil -lavformat -lpng -lm"

So why doesn't ./configure detect lavcodec?

rzurad avatar Dec 17 '15 23:12 rzurad