naelstrof / slop

slop (Select Operation) is an application that queries for a selection from the user and prints the region to stdout.
Other
844 stars 58 forks source link

libegl not looked for by cmake #115

Open feuGeneA opened 5 years ago

feuGeneA commented 5 years ago

I'm trying to build maim from source. cmake succeeded, but then make failed with this:

gene@precision5510:~/Downloads/slop-7.4$ make
Scanning dependencies of target slopy
[  6%] Building CXX object CMakeFiles/slopy.dir/src/mouse.cpp.o
[ 13%] Building CXX object CMakeFiles/slopy.dir/src/keyboard.cpp.o
[ 20%] Building CXX object CMakeFiles/slopy.dir/src/x.cpp.o
[ 26%] Building CXX object CMakeFiles/slopy.dir/src/slopstates.cpp.o
[ 33%] Building CXX object CMakeFiles/slopy.dir/src/resource.cpp.o
[ 40%] Building CXX object CMakeFiles/slopy.dir/src/slop.cpp.o
In file included from /home/gene/Downloads/slop-7.4/src/framebuffer.hpp:29:0,
                 from /home/gene/Downloads/slop-7.4/src/window.hpp:40,
                 from /home/gene/Downloads/slop-7.4/src/slop.cpp:19:
/home/gene/Downloads/slop-7.4/src/shader.hpp:32:21: fatal error: EGL/egl.h: No such file or directory
 #include <EGL/egl.h>
                     ^
compilation terminated.
CMakeFiles/slopy.dir/build.make:182: recipe for target 'CMakeFiles/slopy.dir/src/slop.cpp.o' failed
make[2]: *** [CMakeFiles/slopy.dir/src/slop.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/slopy.dir/all' failed
make[1]: *** [CMakeFiles/slopy.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Shouldn't cmake have told me I was missing a dependency? Also, in the README.md's advice about installing dependencies first, shouldn't there be a mention of libegl?

halcyon22 commented 4 years ago

Is there a workaround? I have libegl1-mesa installed but still get the make error.

halcyon22 commented 4 years ago

It looks like libegl1-mesa-dev works.