January 04, 2005
ffmpeg-php fun
well, the good news first: this thing is designed to be built on a linux box. this means that it should be pretty simple to get it up and running on the server here at school in a week or so with some help.
the bad news is that it isnt made for osx. so im running into all sorts of problems getting it running on my powerbook. im enlisting help from people trying to figure out how i can make this thing compile but it isnt looking too good right now.
the current issue: what the flag '-d' means for gcc compared to cc. the makefile isnt cooperating obviously and im working what little c knowledge i have to try and figure out the different switches in compilers.
ug.
any thoughts or help would be greatly appreciated, those of you smarter in this area than i am.
Posted by tripp at January 4, 2005 06:36 PMComments
I can't imagine this would be a problem, since OS X is *nix after all.
did you read the man page for gcc.
-d doesn't seem to be a stand-alone option, but it seems to be used as a debugging flag.
you should check out fink or darwinports at opendarwin.org to see if anyone ported over a os x version. I know I've seen a standalone ffmpeg encoder ported, but don't know about the php business.
Also, from the man page:
Note: In Apple's version of GCC, both cc and gcc are actually symbolic links to gcc-3.3, while c++ and g++ are links to g++-3.3, unless the gcc_select(1) command has been used to point them at another compiler version.
Not sure if that helps.
Posted by: will
at January 4, 2005 08:31 PM
yeah, saw all that before i posted.
-D is the debugging flag; -d is different. havent been able to find out what it does, so im not sure i can safely remove it from the makefile yet.
and ive compiled the ffmpeg encoder, but it also needs to have the codec libraries compiled and installed and that seems to be where im running into problems. i checked fink and didnt see any compiled ffmpeg versions available.
i posted to the ffmpeg-php page about installation here: http://sourceforge.net/forum/forum.php?thread_id=1204331&forum_id=417245
this gave me the new errors im getting with te -d flag.
and so it might not be gcc, but compiling under osx is different than other flavors of linux. and i dont know enough to get much farther than that. supposed to have a meeting tomorrow with some smart people here in richmond to see if we can nail it.
its just frustrating, esp when it seems so simple.
ill check darwinports. thanks for the suggestions, sorry ive already found most of that stuff out. (or rather, that i didnt make it clear that id been talking and digging with people for several hours before posting.)
Posted by: tripp
at January 4, 2005 09:22 PM
a day later...
it turns out that with some hacking, we can skip past the -d option. but it does no good.
basically, there doesnt seem to be a way to compile the ffmpeg libraries (into .so files) on mac osx. this sucks, because the ffmpeg-php extension requires the libraries.
this is after a full day of reworking by someone smarter than me and a solid half day today by me.
darwinports does have ffmpeg, but again, it doesnt seem to compile the libraries together.
so, back to the drawing board maybe.
Posted by: tripp
at January 5, 2005 02:00 PM