c++ - Premake OpenGL SDK Cannot Build Project From Tutorial -
i'm trying build tutorials http://www.arcsynthesis.org/gltut/index.html , can't seem past linking part. when go tut 01 folder , type in "premake4 gmake" , "make" right after.
==== building framework (debug) ==== ==== building tut 01 main (debug) ==== linking tut 01 main /usr/bin/ld: cannot find -lglloadd /usr/bin/ld: cannot find -lglimgd /usr/bin/ld: cannot find -lglutild /usr/bin/ld: cannot find -lglmeshd /usr/bin/ld: cannot find -lfreeglutd collect2: error: ld returned 1 exit status make[1]: *** [tut 01 maind] error 1 make: *** [tut 01 main] error 2
as can see, has problems linking project together. downloaded tutorial 0.3.8.7z here: https://bitbucket.org/alfonse/gltut/downloads
all right, found answer in case wants know how fix, have open file in framework/framework.lua , scroll down until see
configuration "linux" links {"gl", "glu"}
and change to
configuration "linux" links {"gl", "glu", "x11"}
which allow compile of tutorials.
Comments
Post a Comment