cococry / lyssa

Aestethic, minimal, suckless music player
165 stars 8 forks source link

can't build #3

Open Loki6946 opened 6 months ago

Loki6946 commented 6 months ago

I had this error when trying to build

sudo make rebuild install make clean make[1]: Entering directory '/home/aldi/Downloads/lysa/lyssa' rm -rf ./bin rm -rf ./vendor/leif/lib make[1]: Leaving directory '/home/aldi/Downloads/lysa/lyssa' make leif make[1]: Entering directory '/home/aldi/Downloads/lysa/lyssa' make -C ./vendor/leif/ make[2]: Entering directory '/home/aldi/Downloads/lysa/lyssa/vendor/leif' mkdir lib gcc pkg-config --cflags glfw3 cglm libclipboard -Ivendor/glad/include -Ivendor/stb_image/ -Ivendor/stb_truetype -Ivendor/stb_image_resize -DLF_GLFW -O3 -ffast-math -c leif.c -o lib/leif.o leif.c: In function ‘load_font’: leif.c:1028:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1028 | fread(buffer, 1, fileSize, file); | ^~~~~~~~ leif.c:1040:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1040 | fread(buf, 1, 1<<20, fopen(filepath, "rb")); | ^~~~~~~~~~~ gcc -c vendor/glad/src/glad.c -o lib/glad.o ar cr lib/libleif.a lib/.o make[2]: Leaving directory '/home/aldi/Downloads/lysa/lyssa/vendor/leif' make[1]: Leaving directory '/home/aldi/Downloads/lysa/lyssa' make build make[1]: Entering directory '/home/aldi/Downloads/lysa/lyssa' mkdir bin [INFO]: Building Lyssa. g++ -O3 -ffast-math -DGLFW_INCLUDE_NONE src/.cpp -o bin/lyssa -Ivendor/miniaudio -Ivendor/leif/include -Ivendor/leif/vendor/glad/include -Ivendor/stb_image_write -lleif -lclipboard -Lvendor/leif/lib -lglfw -ltag -lm -Lvendor/miniaudio/lib -lminiaudio src/lyssa.cpp: In function ‘int main(int, char)’: src/lyssa.cpp:2694:11: warning: ignoring return value of ‘int system(const char)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2694 | system("pkill yt-dlp"); | ~~^~~~ src/lyssa.cpp: In function ‘void renderDownloadPlaylist()’: src/lyssa.cpp:940:17: warning: ignoring return value of ‘int system(const char)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 940 | system(downloadCmd.c_str()); | ~~^~~~~ src/lyssa.cpp:972:13: warning: ignoring return value of ‘int system(const char)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 972 | system(downloadThumbnailCmd.c_str()); | ~~^~~~~~~~~~ src/lyssa.cpp:1058:15: warning: ignoring return value of ‘int system(const char)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1058 | system("pkill yt-dlp &"); | ~~^~~~~~ src/lyssa.cpp: In function ‘void renderOnPlaylist()’: src/lyssa.cpp:1190:15: warning: ignoring return value of ‘int system(const char)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1190 | system(std::string(LYSSA_DIR + "/scripts/download-yt.sh \"" + currentPlaylist.url + "\" " + LYSSA_DIR + "/downloaded_playlists/ &").c_str()); | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/popups.cpp: In member function ‘virtual void PlaylistFileDialoguePopup::render()’: src/popups.cpp:209:31: warning: ignoring return value of ‘int system(const char)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 209 | system(cmd.c_str()); | ~~^~~~~ /usr/bin/ld: /usr/local/lib/libclipboard.a(clipboard_x11.c.o): undefined reference to symbol 'xcb_get_setup' /usr/bin/ld: /lib/x86_64-linux-gnu/libxcb.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[1]: ** [Makefile:26: build] Error 1 make[1]: Leaving directory '/home/aldi/Downloads/lysa/lyssa' make: [Makefile:41: rebuild] Error 2

i kind of new to linux so yeah can somebody help me

Loki6946 commented 5 months ago

in home/user/ there is no .lyssa folder

cococry commented 5 months ago

okay then go into the lyssa root directory and do

cp -r .lyssa/ ~/
cp -r vendor/leif/.leif ~/
sudo cp bin/lyssa /usr/bin
Loki6946 commented 5 months ago

now there is .leif and .lyssa on home/user/

but the error is still there

cococry commented 5 months ago

okay, go into the /home/user/.leif folder and show me what it contains

Loki6946 commented 5 months ago

i forget there is one more error from zsh zsh: segmentation fault (core dumped) lyssa

there is .config .leif and assets inside .leif and inside assets there is fonts folder and inside there is inter.ttf file

but when i run sudo lyssa there is no error but the app just open and close and there is this zsh: segmentation fault sudo lyssa

cococry commented 5 months ago

bro you just need to do

cd /path/to/where-yo-cloned-lyssa
sudo make install && lyssa

and show me the output of that command please.

cococry commented 5 months ago

you should not run lyssa as sudo

Loki6946 commented 5 months ago

this is the output when i do sudo make install && lyssa

make -C ./vendor/leif/ install make[1]: Entering directory '/home/aldi/Downloads/lyssa/vendor/leif' cp lib/libleif.a /usr/local/lib/ cp -r include/leif /usr/local/include/ cp -r .leif ~/ make[1]: Leaving directory '/home/aldi/Downloads/lyssa/vendor/leif' cp -r ./scripts/ ~/.lyssa/ cp -r ./assets/ ~/.lyssa/ if [ ! -d ~/.lyssa/playlists/favourites ]; then \ cp -r ./.lyssa/favourites/ ~/.lyssa/playlists; \ fi cp ./bin/lyssa /usr/bin/ cp ./Lyssa.desktop /usr/share/applications cp -r ./logo /usr/share/icons/lyssa [LEIF ERROR]: Failed to open font file '/home/aldi/.leif/assets/fonts/inter.ttf'

zsh: segmentation fault (core dumped) lyssa

cococry commented 5 months ago

and now there is still no .leif and .lyssa folder in your home dir? if yes, just, with a file manager, copy /home/aldi/Downloads/lyssa/.lyssa into your home directory /home/aldi and also /home/aldi/lyssa/vendor/leif/.leif into your home directory /home/aldi

Loki6946 commented 5 months ago

now the file is there but still error

i try to copy it again and replace but still no luck

cococry commented 5 months ago

the file /home/aldi/.leif/assets/fonts/inter.ttf exists?

Loki6946 commented 5 months ago

it is exist

cococry commented 5 months ago

and it is not in .config or something? just in the pure home directory?

Loki6946 commented 5 months ago

yes its in /home/aldi/ the .leif and .lyssa

cococry commented 5 months ago

and you are running lyssa from the aldi user?

Loki6946 commented 5 months ago

yes

Loki6946 commented 5 months ago

because there is no other user

Loki6946 commented 5 months ago

its not working but i just want to say thanks for all the help man

thank you so much

Loki6946 commented 5 months ago

hey a little bit update

i try to remove lyssa and reclone the repo and then install it again and somehow the failed to open font file error disapear

but the app still not running when i run in on the terminal i got this error lyssa zsh: segmentation fault (core dumped) lyssa

Loki6946 commented 4 months ago

another update after the new installation method im able to install it but at the end of installation there is "you want to start lyssa " and i choose y and the application open and close and i get this error ** buffer overflow detected ***: terminated

ElieMessieCode commented 3 months ago

@jossephus hello there, for the "xcb_get_setup" issue, try to install libclipboard with yay -S libclipboard-git

edit : i just tried, and it worked for me