Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

Compiling with OpenGL/Mesa

Last updated on 47 minutes ago
M
miker1264Software Dev
Posted 4 hours ago
I have a test application that uses OpenGL to draw in glContext Viewport. It used to compile correctly using GCC in the shell on ABIv1 with -lgl -lglu -lglut but now on ABIv11 the compilers says there are unknown symbols such as glPopAttrib which is part of OpenGL and for AROS I suppose it's Mesa.

What is the correct includes for the test application and the GCC lib links (-l + ?) to get it to compile?

I'll post the source code for my test app later today.
D
deadwoodAROS Dev
Posted 3 hours ago
Can you post the linker command like you are using and the error you are getting?
M
miker1264Software Dev
Posted 2 hours ago
For example:
gcc 3dwireframe.c -o 3dwireframe -lgl -lglu -lglut

The error is "unknown symbols" and it's a list of about 10 items all starting with gl which seem to be OpenGL commands. The first item in the list is glPopAttrib.
Edited by miker1264 on 24-09-2026 16:18, 2 hours ago
D
deadwoodAROS Dev
Posted 2 hours ago
-lgl has to be after -lglut I think

just do:

-lgl -lglu -lglut -lgl
miker1264, coffeecat, Argo
C
coffeecatMember
Posted 1 hour ago
Godsend; just compiling new Skia and I needed GL as well.
M
miker1264Software Dev
Posted 47 minutes ago
@coffeecat

Is it the same setup for compiling Skia with GL ? What are your GL include statements?
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Moderator: Administrator
Users who participated in discussion: deadwood, miker1264, coffeecat