Broken build on Ubuntu: fix

Hello,

I've installed the ffmpeg dev libraries (avcodec, avformat, avutils).
However, the electrisheep source code refers to a wrong path for those headers: '/usr/include/libavutils'  '/usr/include/libavformat'.

The headers are installed under '/usr/include/ffmpeg' on my Ubuntu 7 system.

 

Regards,

 

Julien

Symlinks just work

I've symlinked the headers to fake libavformat directories (and friends),

it compiled well. Of course Ubuntu 7 is out of date, but it's not always possible to undertake a whole reinstallation of the system especially in a profesionnal context.

I'd be just simpler to append an include search path to GCC with:

-I/usr/include/ffmpeg

To ensure backcompatibility.

Of course the source must not refer to a path like:

#include <libavformat/ something.h>

But rather

#include <something under ffmpeg or libavformat ... .h>

================

By the way, the new version has completly *frozen* my system so that I had to press the Power button. My machine is far from beeing old,it's a DELL precision M6300 with 2GB of memory. I had to switch to a more conventional screensaver to avoid further crashes. I was unable to see even a flicker of an image from electric sheep since the new version.

================

Regards

Try linking the directories

Someone notified me that this was the case with my Fedora script. Maybe you can have the Ubuntu script check for the ffmpeg directories in /usr/include and if they exist have them link the required ones:

cd /usr/include

sudo ln -s /usr/include/ffmpeg/libavformat/ ./

sudo ln -s /usr/include/ffmpeg/libavcodec/ ./

sudo ln -s /usr/include/ffmpeg/libavutil/ ./

 

I changed my script to add the links before compiling and to remove the links after, not sure if that is the best way to do it but it worked for me.

 

Ubuntu 7 is two years out of

Ubuntu 7 is two years out of date.  If you have a patch to make it work on 7 and 9, please let me know.


User login