-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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