run from source #408
-
Hello, I tried to build and run bemenu from source but always got the error that the lib files couldn't be found. I also tried installing it to /usr instead of /usr/local which removed the lib.so not found error, but it still didn't display. When run directly from the command line it just silently exited. My main reason for doing so is, because I would like to submit/run on C-y in addition to return and would have therefore changed the code myself accordingly, but can't even get the original source to run from hyprland. What is the difference between the pacman installed package and the 'make install'ed version such that it can't find the lib.so files even though I set the env variable in my hypr.conf file? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you want to install from source without having to use the env vars when running bemenu, you have to make sure you set Line 130 in 5bc8a6c So in your case Note that bemenu still looks for Alternatively if you have nix or flatpak, you can build bemenu with those. |
Beta Was this translation helpful? Give feedback.
If you want to install from source without having to use the env vars when running bemenu, you have to make sure you set
PREFIX=/usr
to correct location, and the bemenu renderers must be found from$PREFIX/lib/bemenu/...
bemenu/lib/library.c
Line 130 in 5bc8a6c
So in your case
PREFIX=/usr/local
should work. (Which should be default)Note that bemenu still looks for
libbemenu.so
from a system library search path so you either have to configure alternative search path in/etc/ld.so.conf
or set theLD_LIBRARY_PATH
.Alternatively if you have nix or flatpak, you can build bemenu with those.
If hyrpland has trouble passing t…