pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ffmpeg compile error

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support
 View previous topic :: View next topic  
Author Message
welldressedmatt



Joined: 04 Sep 2008
Posts: 13

PostPosted: Thu Sep 04, 2008 6:34 pm    Post subject: ffmpeg compile error Reply with quote

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

Code:
make


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
View user's profile Send private message
welldressedmatt



Joined: 04 Sep 2008
Posts: 13

PostPosted: Thu Sep 04, 2008 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 362

PostPosted: Fri Sep 05, 2008 6:13 am    Post subject: Reply with quote

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
View user's profile Send private message
welldressedmatt



Joined: 04 Sep 2008
Posts: 13

PostPosted: Sat Sep 06, 2008 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 362

PostPosted: Sat Sep 06, 2008 9:32 am    Post subject: Reply with quote

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
View user's profile Send private message
welldressedmatt



Joined: 04 Sep 2008
Posts: 13

PostPosted: Sat Sep 06, 2008 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
welldressedmatt



Joined: 04 Sep 2008
Posts: 13

PostPosted: Sat Sep 06, 2008 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 362

PostPosted: Sat Sep 06, 2008 10:45 am    Post subject: Reply with quote

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
View user's profile Send private message
welldressedmatt



Joined: 04 Sep 2008
Posts: 13

PostPosted: Sat Sep 06, 2008 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 362

PostPosted: Sat Sep 06, 2008 11:29 am    Post subject: Reply with quote

My bad, you're right. Xcode 3.x is 10.5 only.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO
[ Time: 0.5613s ][ Queries: 13 (0.4452s) ][ Debug on ]