electricsheep icon indicating copy to clipboard operation
electricsheep copied to clipboard

Troubles compiling on Arch Linux + tips how to fix

Open rr- opened this issue 8 years ago • 7 comments

Compiling

  1. New ffmpeg uses AVPixelFormat rather than PixelFormat
  2. New ffmpeg uses AV_PIX_FMT_BGR32 rather than PIX_FMT_BGR32
  3. A bunch of functions got deprecated, but there aren't that many of them

Linking

  1. New lua uses -llua5.1 rather than -llua
  2. libglee should be compiled with -lGLee rather than -lglee (this seems to be checked already, but it doesn't work still)
  3. Settings view needs webkit2gtk which is completely omitted during ./configure (had to add -lwebkit2gtk-4.0 by hand)

rr- avatar Nov 20 '16 22:11 rr-

I can probably come up with a PR but I'm almost positive I will accidentally break some other configuration - Ubuntu, Mac etc...

rr- avatar Nov 20 '16 22:11 rr-

The PixelFormat -> AVPixelFormat replacement is now in the code.

dasvo avatar Feb 04 '17 16:02 dasvo

I was having errors compiling on debian sid that seemed related to "AVPixelFormat rather than PixelFormat". I'm excited to say it compiles and runs great now. Thanks!

vayulove avatar Feb 10 '17 04:02 vayulove

Currently compiled and working fine on Arch Linux X86_64.

As @rr- mentioned, you run into the errors referenced in https://github.com/scottdraves/electricsheep/issues/40 if -llua5.1 isn't used during linking. As a workaround, I ran grep from the root directory to look for -llua and replaced the string in the Makefiles containing it with -llua5.1. (I did this after I ran ./configure and make clean)

Make sure to change all of the make files. Changing only the top level one didn't seem to work for me.

Also during linking and as mentioned in the op, I ran into the issue where libglee is not found. I solved this by creating a symbolic link from libglee.so to libGlee.so.5 which was already present on my up to date arch installation.

Really enjoying the new golden flock!

agireud avatar May 27 '17 23:05 agireud

I've added an aur based on the community/electricsheep repo, using the latest commit from github as the build source. I removed some patches that tweaked some ffmpeg things and removed wxwidgets. This fixes electricsheep-preferences, which wasn't in the community build. You call can find it here:

https://aur.archlinux.org/packages/electricsheep-git/

bramswenson avatar Dec 16 '17 01:12 bramswenson

Thanks for the AUR - I can confirm this repository as-is does not build properly with an ./autogen.sh && ./configure && make on Arch Linux

ahungry avatar Jun 16 '18 03:06 ahungry

AUR fails on lack of lpthread (I had to manually run g++ command and add lpthread to the end each time).

ahungry avatar Jun 16 '18 04:06 ahungry