SliTaz SliTaz Forum

You are not logged in.

#1 2011-04-05 01:37:38

meshca
Administrator
Registered: 2011-03-31
Posts: 27

compiling opengl c++ programs

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,
Christian

Offline

#2 2011-04-05 11:08:06

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: compiling opengl c++ programs

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?

Offline

#3 2011-04-05 14:21:24

meshca
Administrator
Registered: 2011-03-31
Posts: 27

Re: compiling opengl c++ programs

g++ main.cpp -lglut
./a.out
Segmentation fault

I now have both slitaz-toolchain and slitaz-dev-pkgs installed

Offline

#4 2011-04-08 15:35:14

meshca
Administrator
Registered: 2011-03-31
Posts: 27

Re: compiling opengl c++ programs

anyone have an idea why this does not work?  I am using the latest cooking

Offline

#5 2011-04-08 18:15:46

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: compiling opengl c++ programs

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.

Offline

#6 2011-04-08 22:04:44

meshca
Administrator
Registered: 2011-03-31
Posts: 27

Re: compiling opengl c++ programs

YAY it works thank you so much Trixar_za!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]