Hello community.-
I am linking a example from Raylib library but CodeLite cant find my assets, i have created a resources folder and there i got my images, but no one seems to be included. Any help would be very appreciated. This is my linker options text g++ -o Confusion -Wall -std=c99 -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
Linker options in CodeLite
-
- CodeLite Curious
- Posts: 4
- Joined: Sun Feb 21, 2021 1:46 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Linker options in CodeLite
Can you build it in a terminal, outside CodeLite? If not, that's probably because the linker can't find raylib where it looks by default.
Try adding a pkg-config call, both in that terminal and in the CodeLite linker options. IIUC That would be, in a terminal:
$(pkg-config --libs raylib)
and inside CodeLite:
$(SHELL pkg-config --libs --cflags raylib)
(If 'pkg-config' is not found, you need to install pkgconfig.)
Try adding a pkg-config call, both in that terminal and in the CodeLite linker options. IIUC That would be, in a terminal:
$(pkg-config --libs raylib)
and inside CodeLite:
$(SHELL pkg-config --libs --cflags raylib)
(If 'pkg-config' is not found, you need to install pkgconfig.)