Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8869583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:30:47+00:00 2026-06-14T17:30:47+00:00

I used to write OpenGL programs using GLUT in particular for the windowing which

  • 0

I used to write OpenGL programs using GLUT in particular for the windowing which I was able to compile on Linux and Mac. Recently I have upgraded the Mac OS to Mountain Lion and installed the latest version of XCode. Of course things have changed drastically and now I need to compile with Clang (gcc is replaced by Clang++). It doesn’t seem (reading another stackoverflow question) possible to use GLUT anymore and apparently it can be replaced by FreeGLUT or GLW?

GLUT on OS X with OpenGL 3.2 Core Profile

My question is: if I want to use OpenGL and need to have an easy/quick way of creating a window, an openGL context, etc., as we did before with GLUT, what’s the best way of doing this now with Clang/XCode 4.5.2? I found really strange that I couldn’t find information on the web regarding compiling OpenGL programs with Clang, and more information on a substitute to GLUT? Ideally, I’d like to keep compiling this code under Linux? Is it still an option to use GLX and write the window side of things myself? Can I still do that on the Mac?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:30:48+00:00Added an answer on June 14, 2026 at 5:30 pm

    The choice of compiler doesn’t really matter. GLUT (also the old versions) should still work with Clang as the ABI didn’t change. Also Clang can be used in Linux as well (AFAIK you can even compile the kernel using Clang).

    MacOS X doesn’t use GLX, it uses a Cocoa NSOpenGLView class instance (or some fullscreen API bypassing Cocoa).

    Just keep doing what you already did and replace all calls to the compiler with the Clang variant.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm used to write a ~ character by pressing Alt+N on Mac OS X.
I write programs used internally by our company. I've created several support DLLs that
I have an OpenGL example I wrote years ago demonstrating the lense effect using
I'm trying to write a UI in OpenGL and have run into a problem
I'm trying to write a simple maze game, without using any deprecated OpenGL API
There is this simple function which I have used with C++ in the past
I have a generics class that I used to write data to IsolatedStorage. I
I wrote several Powershell scripts which deploy software for a client. I used Write-Host
I have been trying to write an FPS in C/X11/OpenGL, but the issue that
I have an XSLT file that is used to write to my Web.Config as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.