|
| Author |
Message |
welldressedmatt
Joined: 04 Sep 2008 Posts: 13
|
Posted: Thu Sep 04, 2008 6:34 pm Post subject: ffmpeg compile error |
|
|
I'm attempting to install pyTivo for Mac OSX. I'm not computer illiterate, but I am new to command line in terminal. I've been shuffling through the pyTivo installation instructions for Mac OSX. I couldn't figure out MacPorts, so I have been following the instructions at http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html to install ffmpeg with Fink.
I've gotten as far as the last step of compiling, and I keep getting an error. I can run
| Code: | ./configure --enable-libmp3lame --disable-vhook --enable-shared \
--disable-mmx |
which works fine, but when I run the next line
I receive the following:
| Code: | make(14560) malloc: *** vm_allocate(size=4272963584) failed (error code=3)
make(14560) malloc: *** error: can't allocate region
make(14560) malloc: *** set a breakpoint in szone_error to debug
make: *** virtual memory exhausted. Stop. |
I am running Mac OS 10.4.11. I've installed Lame, Python 2.5, XCode 2.5, Fink 0.8.1, and Fink Commander 0.5.4.
Any ideas? (Like I said, I'm new to the command line so go easy on me!)
Thanks!
-M@ |
|
| Back to top |
|
 |
welldressedmatt
Joined: 04 Sep 2008 Posts: 13
|
Posted: Thu Sep 04, 2008 7:37 pm Post subject: |
|
|
After a little (alot) more research, I've determined the problem *might* be my GNU make version. I'm running 3.79, and 3.81 is the latest. I've downloaded 3.81, but I don't know what to do with it. I'm still digging, but any pointers would be appreciated. Thanks!
-M@ |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Fri Sep 05, 2008 6:13 am Post subject: |
|
|
The Macports route is much, much easier. The Macports package files do all the configure/compiling for you.
Start here:
http://www.macports.org/install.php
Once you have Macports installed, then go back and follow the wiki instructions. |
|
| Back to top |
|
 |
welldressedmatt
Joined: 04 Sep 2008 Posts: 13
|
Posted: Sat Sep 06, 2008 9:26 am Post subject: |
|
|
So ffmpeg is still giving me fits. I ditched Fink and went back to MacPorts as rdian suggested... Managed to get it installed and working (even after it wouldn't function due to the .profile being overridden by .bash_profile).
I installed Lame with MacPorts, and I'm now attempting to install ffmpeg as instructed by the wiki. This is the error(s) I'm getting:
| Code: | SCOTT-MAC:~ MattScott$ sudo port install ffmpeg +lame +libogg +vorbis +theora +faac +faad +xvid +x264 +a52 +dts
---> Configuring faac
Error: Target org.macports.configure returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_faac/work/faac && aclocal -I . && autoheader && glibtoolize --automake" returned error 1
Command output: /usr/bin/glibtoolize: line 1: cd: /usr/share/libtool: No such file or directory
glibtoolize: cannot list files in `/usr/share/libtool'
Error: The following dependencies failed to build: faac faad2 autoconf help2man gettext expat libiconv gperf p5-locale-gettext perl5.8 m4 automake libtool gmake libogg libtheora libvorbis pkgconfig subversion apr apr-util db46 sqlite3 gawk readline cyrus-sasl2 openssl zlib neon serf x264 yasm
Error: Status 1 encountered during processing. |
So, I've tried tracking down solutions by following instructions posted <a href="http://www.tivocommunity.com/tivo-vb/showthread.php?p=5718124">here</a> and <a href="http://pytivo.krkeegan.com/newbie-macos-x-install-help-t8.html">here</a>, but no luck.
Any ideas?
-M@ |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Sat Sep 06, 2008 9:32 am Post subject: |
|
|
Are you on a PowerPC based Mac or an Intel Mac?
I think something in your MacPorts install didn't work because /usr/share/libtool is supposed to exist already.
Been a while since I worked on this... |
|
| Back to top |
|
 |
welldressedmatt
Joined: 04 Sep 2008 Posts: 13
|
Posted: Sat Sep 06, 2008 9:54 am Post subject: |
|
|
Intel Mac OS 10.4.11.
/usr/share/libtool doesn't exist, but it is in /usr/bin/ not to mention /Developer/usr/bin/
Not sure if that helps.
-M@ |
|
| Back to top |
|
 |
welldressedmatt
Joined: 04 Sep 2008 Posts: 13
|
Posted: Sat Sep 06, 2008 10:07 am Post subject: |
|
|
this: https://trac.macports.org/ticket/13736 seems to indicate that XCode 2.5 eliminated the /usr/share/libtool directory and a solution may be "adding a dependency on the libtool port."
-M@ |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Sat Sep 06, 2008 10:45 am Post subject: |
|
|
Can you install Xcode 3.1?
The last time I built ffmpeg on my Intel Mac under 10.5, I used Xcode 3.1. It's got a new compiler that allows you to enable MMX optimizations. There's a thread on here from a while back where I posted the instructions. See
http://pytivo.krkeegan.com/ffmpeg-on-mac-osx-10-5-with-assembly-mmx-success-t247.html
I'd just upload the binary, but I reformatted that Macbook Pro before taking it to the Apple for repair and the backup files aren't at home. |
|
| Back to top |
|
 |
welldressedmatt
Joined: 04 Sep 2008 Posts: 13
|
Posted: Sat Sep 06, 2008 11:14 am Post subject: |
|
|
XCode 3.x is for Leopard, right? I'm running OS 10.4.11 Tiger. But I did find another fix for XCode 2.5...
This: http://osflash.org/pipermail/swfmill_osflash.org/2008-January/001665.html confirms that /usr/share/libtool/ is apparently destroyed by XCode 2.5 on OS 10.4. The solution is to use 'port install libtool' (I had to use 'sudo port install libtool' for the proper permissions) to rebuild the libtool directory.
I'm currently installing ffmpeg, which hasn't completed yet, but before it failed practically immediately. The install has been going for about 5 minutes now, so hopefully all will go well now that libtool is installed.
-M@ |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 369
|
Posted: Sat Sep 06, 2008 11:29 am Post subject: |
|
|
| My bad, you're right. Xcode 3.x is 10.5 only. |
|
| Back to top |
|
 |
|