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 7580997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:05:20+00:00 2026-05-30T18:05:20+00:00

I am trying to compile QT C++ opengl based code on Mac OS X

  • 0

I am trying to compile QT C++ opengl based code on Mac OS X 10.7.2 but it has not been able to find qglviewer.h file.

This is the error I am getting when I compile my code.

In file included from src/GLViewer.cc:12: src/GLViewer.h:22:23: error:  
qglviewer.h: No such file or directory In file included from  
src/GLViewer.cc:12: src/GLViewer.h:27: error: expected class-name  
before ‘{’ token src/GLViewer.cc: In constructor  
‘GLViewer::GLViewer(QWidget*)’: src/GLViewer.cc:28: error: class  
‘GLViewer’ does not have any field named ‘QGLViewer’  
src/GLViewer.cc:36: error: ‘camera’ was not declared in this scope  
src/GLViewer.cc: In member function ‘void GLViewer::resetView()’:  
src/GLViewer.cc:48: error: ‘setSceneRadius’ was not declared in this  
scope src/GLViewer.cc:49: error: ‘qglviewer’ has not been declared  
src/GLViewer.cc:49: error: ‘setSceneCenter’ was not declared in this  
scope src/GLViewer.cc:50: error: ‘camera’ was not declared in this  
scope src/GLViewer.cc:55: error: ‘showEntireScene’ was not declared in  
this scope src/GLViewer.cc: In member function ‘void  
GLViewer::setScene(Scene*)’: src/GLViewer.cc:70: error:  
‘initFromDOMElement’ was not declared in this scope src/GLViewer.cc:  
In member function ‘virtual void GLViewer::resizeGL(int, int)’:  
src/GLViewer.cc:89: error: ‘QGLViewer’ has not been declared  
src/GLViewer.cc: In member function ‘virtual void GLViewer::draw()’:  
src/GLViewer.cc:128: error: ‘camera’ was not declared in this scope  
src/GLViewer.cc:134: error: ‘qglviewer’ has not been declared  
src/GLViewer.cc:134: error: expected `;' before ‘cameraPos’  
src/GLViewer.cc:135: error: ‘cameraPos’ was not declared in this scope  
make[2]: \*\*\* [release/GLViewer.o] Error 1 make[1]: \*\*\* [release] Error  
2 make: \*\* [sub-qviewer-make_default-ordered] Error 2  
  • 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-05-30T18:05:22+00:00Added an answer on May 30, 2026 at 6:05 pm

    Atlast I contacted QGLViewer Developers and they have fixed this problem. Please follow the instructions given on this link for installation: http://www.libqglviewer.com/index.html

    [Please follow on the above page libQGLViewer2.3.14 Version Release]

    and to compile your own QGLViewer project please follow this link: http://www.libqglviewer.com/compilation.html#pro

    It explains how to create your own .pro file to generate the Makefile.

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

Sidebar

Related Questions

I've been trying to compile Qt for iOS, but I've been having some crazy
I am trying to use GL_TEXTURE_BINDING_2D in my code, but it won't compile under
I'm trying to setup VC++ to compile code with OpenGL 4.1 functionality. I downloaded
i'm trying to get into opengl programming, but fail to compile my first very
i am trying to compile example source code which is using the OpenGL, SDL
Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
When trying to compile a file that include winnt.h via windows.h, I get the
When trying to compile the following code, I am getting a warning that line
I'v been trying to load openGL library in NDK-r7 on Android 2.3.3 (API Level
Using Code::Blocks w/ mingw, and trying to use GLee for some OpenGL on windows.

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.