Homesource Forums

Homeworld Source Editing Talk
It is currently Wed Mar 29, 2017 11:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: FFmpeg linking issues
PostPosted: Sun Mar 27, 2011 7:24 am 
Offline
coder
User avatar

Joined: Tue Dec 14, 2004 3:24 pm
Posts: 324
Location: UK (UTC+0)
If you encounter this linking error when trying to use FFmpeg to play the movies:
Code:
ld: warning: in /usr/lib/libavcodec.a, file was built for unsupported file format which is not the architecture being linked (i386)
it's because configure has determined that you have a 64-bit capable Intel Mac and sets things up so that the FFmpeg library is compiled for that architecture. On Mac OS X, Homeworld is built as a 32-bit application and needs FFmpeg to be compiled that way too, in order to link successfully. You can force configure to set things up correctly with:
Code:
./configure --arch=x86_32 --target-os=darwin --extra-cflags="-arch i386" --extra-ldflags="-arch i386"

_________________
MacHomeworld | HomeworldSDL.org


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group