[FFmpeg-user] Cross compile ffmpeg

José Eduardo S. C. Xavier josescxavier at gmail.com
Sat Dec 26 18:23:43 CET 2015


I'm trying to cross compile ffmpeg on a ubuntu x64 host to run on rpi
target. I have sysroot from rpi synced in my host.

target files on host tree: http://pastebin.com/CAZGFjUL

smbclient is install on RPi:

pi at raspberrypi:~ $ pkg-config --modversion smbclient

smbclient files on host:

ze at ze-MacBookPro:~/raspi/sysroot$ sudo find . -name "*smbclient.*"

When I do ./configure on ffmpeg src folder it says it can't find
libsmbclient.h. Looking on config.log file it looks like pkg-config is
looking for host package instead of target package.

You can take a look at the config.log here:


A person told me that it is related to  "--pkg-config=pkg-config" and point
me to
but I couldn't do any progress.

PS: If I manually change the smbclient.pc file and make the path point to
right directory then configure can test smbclient but failed at next
package and so on. So it looks like a bad ENV VAR set up.

Thank you,
Jose Xavier

More information about the ffmpeg-user mailing list