rzurad / waveform

C program for FreeBSD 10 that uses ffmpeg to generate png waveform images of audio files
51 stars 6 forks source link

Create a proper Makefile #4

Open rzurad opened 9 years ago

rzurad commented 9 years ago

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

MaffooBristol commented 9 years ago

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.

rzurad commented 9 years ago

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 commented 8 years ago

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?