orangeduck / Corange

Pure C Game Engine
http://www.youtube.com/watch?v=482GxqTWXtA
Other
1.78k stars 199 forks source link

/usr/bin/ld: -lcorange not found #78

Open aleksi100 opened 2 years ago

aleksi100 commented 2 years ago

Hey, I tried to compile one of the demos with Makefile but -l corange was not found. What can I do?

blogdron commented 2 years ago

Delete libcorange.so from Corange directory. And again build any demos. By default corange use static linking libcorange.a with demos.

cd Corange
make
....
rm libcorange.so
cd demos/rendering
make
....
./rendering

If you need use dynamic linking, you need edit demo Makefile.

aleksi100 commented 2 years ago

I deleted libcorange.so and added -L../../ in LFLAGS and now demos are working.