Le 8 déc. 2009 à 11:39, Alexander Carôt a écrit : > Hi all, > > just started using libffmpeg in my own app running on OSX10.6.2: I included > the respective headers and linked agains the required libs (as usual with any > other static lib), however I am getting this: > > ld: warning: in /usr/local/lib/libavcodec.a, file is not of required > architecture > > and Undefined symbols: "_av_open_input_file" > > This actually confuses me since I explicitly build libffmpeg for i386 as well > as me app and typically this problem occurs in context with mixed > architectures (i386 and PPC). If this is possibly a 32/64 Bit-issue I am > wondering if I can consciously set this option in the configure-process. So > far I couldn't figure how. > > Any recommendation how to fix this ? > > Thanks in advance, > best
It appends when you try to link a x64 application on a i386 library. Xcode set the arch to x64 by default for new projects and gcc compile into x64 by default too if you do not explicitly set the architecture. I'm configuring ffmpeg like this to compile for i386 ./configure --prefix=/opt/ffmpeg --enable-cross-compile --arch=i386 --extra-cflags='-arch i386' --extra-ldflags='-arch i386' -- Jean-Daniel _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
