i'm working with FFMPEG on MAC OSX, my MAC version is 10.6.5
when I try compile ffmpeg, I used three kind of parameters like belows:
./configure --prefix=/Developer/usr --arch=i386 --disable-shared --enable-static --enable-gpl --enable-swscale --enable-zlib --enable-bzlib --enable-ffmpeg --disable-ffplay --disable-ffserver --disable-libfaac --disable-yasm --enable-postproc --enable-avfilter --disable-network --disable-shared --enable-nonfree --enable-libx264(--arch was i386)
./configure --prefix=/Developer/usr --arch=x86 --disable-shared --enable-static --enable-gpl --enable-swscale --enable-zlib --enable-bzlib --enable-ffmpeg --disable-ffplay --disable-ffserver --disable-libfaac --disable-yasm --enable-postproc --enable-avfilter --disable-network --disable-shared --enable-nonfree --enable-libx264(--arch was X86)
./configure --prefix=/Developer/usr --disable-shared --enable-static --enable-gpl --enable-swscale --enable-zlib --enable-bzlib --enable-ffmpeg --disable-ffplay --disable-ffserver --disable-libfaac --disable-yasm --enable-postproc --enable-avfilter --disable-network --disable-shared --enable-nonfree --enable-libx264(use default --arch)
after that, make, make install. but when I use XCODE to link the libavcodec.a library, it always says:
ld: warning: in /Developer/usr/lib/libavcodec.a, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
whatever the the configuration is as i've mentioned , it leads to link error:
"_avcodec_open", referenced from:
MoviePlayer2::Init() in MoviePlayerTest.o
how can I do that?
when I try compile ffmpeg, I used three kind of parameters like belows:
./configure --prefix=/Developer/usr --arch=i386 --disable-shared --enable-static --enable-gpl --enable-swscale --enable-zlib --enable-bzlib --enable-ffmpeg --disable-ffplay --disable-ffserver --disable-libfaac --disable-yasm --enable-postproc --enable-avfilter --disable-network --disable-shared --enable-nonfree --enable-libx264(--arch was i386)
./configure --prefix=/Developer/usr --arch=x86 --disable-shared --enable-static --enable-gpl --enable-swscale --enable-zlib --enable-bzlib --enable-ffmpeg --disable-ffplay --disable-ffserver --disable-libfaac --disable-yasm --enable-postproc --enable-avfilter --disable-network --disable-shared --enable-nonfree --enable-libx264(--arch was X86)
./configure --prefix=/Developer/usr --disable-shared --enable-static --enable-gpl --enable-swscale --enable-zlib --enable-bzlib --enable-ffmpeg --disable-ffplay --disable-ffserver --disable-libfaac --disable-yasm --enable-postproc --enable-avfilter --disable-network --disable-shared --enable-nonfree --enable-libx264(use default --arch)
after that, make, make install. but when I use XCODE to link the libavcodec.a library, it always says:
ld: warning: in /Developer/usr/lib/libavcodec.a, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
whatever the the configuration is as i've mentioned , it leads to link error:
"_avcodec_open", referenced from:
MoviePlayer2::Init() in MoviePlayerTest.o
how can I do that?