Source:
[1] http://automagically.de/g3dviewer/
Settings:
$cd src
#To find right libraries
$pkg-config --libs gtk+-2.0
$pkg-config --libs gtkglext-x11-1.0
Compile Code:
$gcc -o app main.c model.c screenshot.c texture.c trackball.c glarea.c gl.c gu
i_callbacks.c gui_glade.c gui_infowin.c gui_log.c -I /usr/include/gtk-2.0 -I /u
sr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I /usr/inclu
de/cairo -I /usr/include/pango-1.0 -I /usr/lib/x86_64-linux-gnu/gtk-2.0/include
-I /usr/include/gdk-pixbuf-2.0 -I /usr/include/atk-1.0 -I /usr/include/gtkglex
t-1.0 -I /usr/lib/gtkglext-1.0/include -I /usr/include/libglade-2.0 -lgtk-x11-2
.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
-lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lm
-lGL -lglut -lGLU -lglade-2.0 -lgtkglext-x11-1.0 -lgdkglext-x11-1.0 -lGLU -lGL
-lXmu -lXt -lSM -lICE -lgdk-x11-2.0 -lpangox-1.0 -lX11 -Wl,--export-dynamic -l
gmodule-2.0 -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lc
airo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib
-2.0 -lfontconfig -lfreetype -lg3d
No comments:
Post a Comment