c++ - makefile for openGL cannot find -lSOIL -
i have couple hours experience glsl (opengl shading language) , i`ve found sample code, when tried run using makefile got following error :
/usr/bin/ld: error: cannot find -lsoil /tmp/ccbamtaw.o:glinit.cpp:function inittextures(): error: undefined reference 'soil_load_image' /tmp/ccbamtaw.o:glinit.cpp:function inittextures(): error: undefined reference 'soil_load_image' /tmp/ccbamtaw.o:glinit.cpp:function inittextures(): error: undefined reference 'soil_load_ogl_single_cubemap' /tmp/ccbamtaw.o:glinit.cpp:function inittextures(): error: undefined reference 'result_string_pointer' collect2: ld returned 1 exit status make: *** [all] error 1
and here makefile :
lib=-llib inc=-iinc src=sample.cpp glinit.cpp glentry.cpp utils.cpp dirs=lib/ inc/ res/ all: g++ $(src) $(lib) $(inc) -o sample -lgl -lglu -lglut -lsoil -lpthread dist: @tar -czvf sample.tar.gz $(dirs) $(src) makefile --exclude "*~"
is there can tell me wrong makefile ?
Comments
Post a Comment