-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't build #3
Comments
try installing xorg xorg-server. |
can you tel me how to install it |
on which distro are you on? |
im running kde on ubuntu 22.04 |
sudo apt-get install xorg |
it's still the same error |
okay try: sudo apt-get install libxcb1-dev |
it's say libxcb1-dev is already the newest version (1.14-3ubuntu3) |
i really have no idea how you would go about fixing that. you could try updating your entire system. maybe that could help |
okay then thanks for helping |
I was trying to build a package for lyssa for nixpkgs and I too have faced the "xcb_get_setup" issue. I am putting a discussion I had in nixos disource for future reference and so that I can get notified if theres any fix for this issue. https://discourse.nixos.org/t/how-to-make-a-derivation-depend-on-another-derivation/42621/3 |
hey there, i added xcb to the links of lyssa. try rebuilding and see if that resolves the issue. |
hey now i get a different error /usr/bin/ld: /tmp/ccvV12yv.o: in function |
make sure you have taglib installed: sudo apt-get install libtag1-dev |
still get the same error i try to install with the apt get method but it say libtag1-dev is already the newest version (1.11.1+dfsg.1-3ubuntu3). and i try to build it with the dependencies link on your repo and it's still does not work Thank you in advance for answering |
any news |
compile cglm from source: https://github.com/recp/cglm?tab=readme-ov-file#-build That should fix the error, also you probably will need to compile libclipboard from source: It's very straightforward to compile both of them, don't worry. |
thanks, will try |
still no luck this is the error : /usr/bin/ld: /tmp/ccSIkYAV.o: in function |
can you do sudo apt-get install taglib? |
its say Unable to locate package taglib |
Alright, clone taglib: git clone https://github.com/taglib/taglib And build from source: |
still not work |
did building taglib work? and whats the error you get? |
and does /usr/local/lib/libtag.a exist? |
first when i build taglib its say error about some cppunit thing and i try to build cppunit from this link https://wiki.documentfoundation.org/Cppunit and build taglib again and now there is no error but when building lyssa it still error and yeah libtag.a exist |
yeah what error does lyssa give |
this is the error |
and /usr/local/lib/libtag.a exists? |
yes it exist |
okay i will try |
and now there is no error what should i do next |
do sudo make install and then you can just search for lyssa in you system or run in from the terminal by just calling: 'lyssa' |
i install it and run lyssa on my terminal but there is an error |
does /home/user/.leif exist? |
there is no .leif folder on home/user |
and did you do sudo make install in the lyssa root dir? |
yes |
okay, is there a .lyssa folder in your home dir? |
in home/user/ there is no .lyssa folder |
okay then go into the lyssa root directory and do
|
now there is .leif and .lyssa on home/user/ but the error is still there |
okay, go into the /home/user/.leif folder and show me what it contains |
i forget there is one more error from zsh there is .config .leif and assets inside .leif but when i run sudo lyssa there is no error but the app just open and close |
bro you just need to do
and show me the output of that command please. |
you should not run lyssa as sudo |
this is the output when i do sudo make install && lyssa make -C ./vendor/leif/ install zsh: segmentation fault (core dumped) lyssa |
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 |
now the file is there but still error i try to copy it again and replace but still no luck |
the file /home/aldi/.leif/assets/fonts/inter.ttf exists? |
it is exist |
and it is not in .config or something? just in the pure home directory? |
yes its in /home/aldi/ the .leif and .lyssa |
and you are running lyssa from the aldi user? |
yes |
because there is no other user |
its not working but i just want to say thanks for all the help man thank you so much |
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 |
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 |
@jossephus hello there, for the "xcb_get_setup" issue, try to install libclipboard with edit : i just tried, and it worked for me |
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.oleif.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
The text was updated successfully, but these errors were encountered: