
compiling opengl c++ programs
(6 posts) (2 voices)-
Hello all, I have install Slitaz with freeglut, freeglut-dev, mesa, and mesa-dev. Whenever I compile a program using g++ main.cpp -lglut it segfauts when I run it , I attached my code. I have tested the code on other machines succesfully. Any insight is appreciated. thanks, ChristianPosted 14 years ago #
-
Could you provide a copy of one of of these errors? It might help track down the problem.
Btw, do you have slitaz-toolchain and slitaz-dev-pkgs (provides the X.org dev packages) installed?
Posted 14 years ago # -
g++ main.cpp -lglut ./a.out Segmentation fault I now have both slitaz-toolchain and slitaz-dev-pkgs installedPosted 14 years ago #
-
anyone have an idea why this does not work? I am using the latest cooking
Posted 14 years ago # -
Well, you could try installing libegl-mesa, libglu-mesa, libglw-mesa, ftgl, glew, glew-dev, gtkglext, libQtOpenGL and mesa-demos to get everything OpenGL and mesa related. You might also want to install mesa-dri and the mesa-dri- closest to your card (mine is mesa-dri-sis).
Yep, this is a stab in the dark. Might be code related too.
Posted 14 years ago # -
YAY it works thank you so much Trixar_za!Posted 14 years ago #
Reply
You must log in to post.