bitbake beagleboard-demo-image - Missing libswscale Makefile

I get the error "| Makefile:62: libswscale/Makefile: No such file or
directory" in task 2494 when running 'bitbake beagleboard-demo-
image'. There's a soft link 'Makefile' that points to a non-existent
Makefile. I searched for updates at git.openembedded.net, but didn't
find any.

I get the error "| Makefile:62: libswscale/Makefile: No such file or
directory" in task 2494 when running 'bitbake beagleboard-demo-
image'. There's a soft link 'Makefile' that points to a non-existent
Makefile. I searched for updates at git.openembedded.net, but didn't
find any.

I just hit this problem too. I'm totally guessing as to the cause,
but I noticed that the ffmpeg_git.bb file contains a line that says:
SRC_URI = "git://git.mansr.com/ffmpeg.mru;protocol=git;branch=$
{FFBRANCH}

I suspect that this particular bb task is attempting to download some
required files using git. I'm behind a firewall that won't allow me
to use git. I had to grab a dev snapshot of Angstrom through a git
web page. Now If there are packages that require git for downloading,
this isn't going to work for me.

Does git work for you? Anyone know of a workaround? I tried changing
this line to use http://www.mansr.com with protocol=http, but that
didn't work.

I received the same message. This is how I cured it:

I did a bitbake -c clean ffmpeg your-image (to clean out the ffmpeg
package).

Then I just restarted the bitbake your-image (to build), and it
worked the second time.

In general, I have found that occasionally my baking stops for a
network reason (couldn't fetch file etc). And I have to back up a
little and restart like this.

Best regards,
Geof

Thanks. I performed the specified commands. Now I get a similar error "| make: *** No rule to make target `libswscale/Makefile'. Stop.". I appreciate your help.

Check to see if the link to the libswscale Makefile is broken. Mine
is.

I looked here...
/home/user/Projects/tmp/work/armv7a-angstrom-linux-gnueabi/
ffmpeg-1_0.4.9+r34+gitrafb98868e19e63cbca6c9f0ed9e6cfa48d40277d-r34/
git/build.arm-angstrom-linux-gnueabi.arm-angstrom-linux-gnueabi/
libswscale
...and found that the Makefile link is broken.

I think the git is missing a libswscale folder. The libavcodec,
libavdevice, libavfilter, libavformat, libavutil, and libpostproc all
have folders of the same name here...
/home/user/Projects/tmp/work/armv7a-angstrom-linux-gnueabi/
ffmpeg-1_0.4.9+r34+gitrafb98868e19e63cbca6c9f0ed9e6cfa48d40277d-r34/
git
...but there isn't a libswscale folder there.

Clearly something is wrong with the ffmpeg repository. I don't really
care if I have this package installed right now. I just want to
continue the Angstrom build. How do we tell bitbake to skip this
package and move on?

Here's something to try if you're still having troubles with
libswscale...

Edit the ffmpeg_git.bb file where your package files are located (i.e.
for me it's
/home/user/Projects/OE/org.openembedded.dev/packages/ffmpeg)

Change the git in the do_configure section
from:
git clone git://git.mplayerhq.hu/libswscale
to:
git clone http://git.mplayerhq.hu/libswscale

If you're behind a corporate firewall like I am, git just isn't going
to work. So any packages that are written to retrieve files from a
git repository are going to cause problems.

If you’re behind a corporate firewall like I am, git just isn’t going
to work. So any packages that are written to retrieve files from a
git repository are going to cause problems.

I faced similar issue when I ran bitbake beagleboard-demo-image behind proxy. I did the following to fix this

On Fedora Core 8 server, we use at work - I also needed to upgrade git-core, curl and doxygen

yum upgrade fedora-release
yum update git-core (to 1.5.4.3)
yum update curl (to 7.18)
yum update doxygen (to 1.5.6)

(1) Created ~/bin/git_proxy_cmd.sh as shown below
#!/bin/sh

Proxycommand auto-proxy-script %h %p

socat - proxy:<proxy.server.com>:$1:$2,proxyport=<port_num>

(2) Modified bitbake/lib/bb/fetch/init.py to add GIT_PROXY_COMMAND to exportvars; exportvars = [‘PATH’, ‘GIT_PROXY_HOST’, ‘GIT_PROXY_PORT’, ‘GIT_CONFIG’, ‘http_proxy’, ‘ftp_proxy’, ‘SSH_AUTH_SOCK’, ‘SSH_AGENT_PID’, ‘GIT_PROXY_COMMAND’]

(3) Added line GIT_PROXY_COMMAND = “~/bin/git_proxy_cmd.sh” to build/conf/local.conf

(4) Added export GIT_PROXY_COMMAND=~/bin/git_proxy_cmd.sh before “git clone git://git.mplayerhq.hu/libswscale || true” in openembedded/packages/ffmpeg/ffmpeg_git.bb

do_configure() {
sed -i -e s:‘check_cflags -std=c99’::g ${S}/configure
cd ${S}
export GIT_PROXY_COMMAND=~/bin/git_proxy_cmd.sh
git clone git://git.mplayerhq.hu/libswscale || true

(5) Did a git pull in openembedded folder to update, followed by bitbake beagleboard-demo-image.

Regards,
Pratheesh