On Wed, Sep 20, 2017 at 16:38:55 +0800, 云雀 wrote:
> I planed to cross compiling C++ program from my PC(Ubuntu 64 bits) to Inforce 
> 6540(32 bits Ubuntu 14.10 armV7); this program used openCV library,in order 
> to finish this job, i need cross compiling dependency library of openCV 
> first, ffmpeg is one of them, after cross compiling 
> libjpeg,libpng,yasm,libx264,libxvid, i can not pass cross compiling of 
> ffmpeg, configure program showing error: libx264 not found; config.log show 
> as below showing(enclosure is config log file):
> /lib/libx264.so: file not recognized: File format not recognized
[...]
> # ./configure --prefix= --enable-shared --disable-static --enable-pic 
> --enable-gpl --enable-cross-compile --arch=arm --disable-stripping 
> --target-os=linux --enable-libx264 --enable-libxvid 
> --cc=arm-linux-gnueabihf-gcc --enable-swscale --extra-ldflags=-L/lib 
> --extra-cflags=-I/include

These options in that configure line:
  --extra-ldflags=-L/lib --extra-cflags=-I/include
are probably wrong. They need to point to your cross-compiled libraries
and includes, not to these system directories. ("/include" probably
doesn't even exist.)

I am guessing you called this configure line from a script, and it said
"--extra-ldflags=-L$path_to_something/lib", and $path_to_something was
empty, e.g. due to a typo.

Moritz
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to