91861 / wayst

A simple terminal emulator
MIT License
295 stars 9 forks source link

make error 1 #115

Open bound-variable opened 2 months ago

bound-variable commented 2 months ago

Running window_protocol=wayland make prints:

/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:78: wayst] Error 1

I checked for dependencies and seem to have them all: OpenGL (via mesa), freetype, fontconfig, xkbcommon, utf8proc, notify-send

91861 commented 2 months ago

It builds without problems the gentoo live image.

Are you able to link anything with libGL? Does this also error?

echo 'int main(){}' | gcc -x c - -lGL
bound-variable commented 2 months ago

It errs with:

/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL: No such file or directory collect2: error: ld returned 1 exit status

91861 commented 2 months ago

Probably libGL.so.1 is in a location not searched by the linker. You can add that directory to LDFLAGS with -L when running make:

make window_protocol=wayland LDFLAGS+="-L/path/to/dir/where/your/libGL/is"