Reputation: 11
This my compilation command for app.
# inside file grun.sh
g++ $1 -pthread -static -o glapp -lglut -lGLU -lGL -lglfw && ./glapp $2 $3 $4 $5 $6 $7 $8 && rm ./glapp
While running above command with my application file.
$ grun Myapplication.cpp
get error
/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lglfw
collect2: error: ld returned 1 exit status
It runs fine with without -static
options though, but I want to make my app statically compiled, Please help me how should I do it?
Upvotes: 1
Views: 84