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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:58:12+00:00 2026-06-10T23:58:12+00:00

Several days ago I posted this question(I don’t know if it’s proper to open

  • 0

Several days ago I posted this question(I don’t know if it’s proper to open a new thread… however when I get the answer from this post I will close that one): QGLWidget not working correctly under Mac OS X Lion .

I grabbed some example code online, compared them with mine, and confirmed the problem is raised by:

gluOrtho2D(0, w, 0, h);

and after changing it to:

glOrtho(0, w, 0, h, -1, 1);

and removed glu as dependency, my program worked. why? what’s the difference?

  • 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-10T23:58:13+00:00Added an answer on June 10, 2026 at 11:58 pm

    OK I think I get the answer.

    The problem is I was linking two versions of OpenGL; Apple has its own GL implementation, AGL, which Qt will link to; but I didn’t know that so I linked glu installed under /opt/local to the program as well. I guess that version is introduced by Mac Ports to compile X11 programs.

    Anyway, because I removed dependency of GLU, the only linked implementation is AGL; so it worked as expected.

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

Sidebar

Related Questions

I have been trying for several days to get the proper formatting for what
Several days ago I had a question about removing index.php from the address bar,
I know that cout have buffer several days ago, and when I google it,
Several days ago,I post a question here about class inheritance Then someone provide a
So I started learning java several days ago and got a question. For the
Several days ago, all mail() calls in my custom PHP application cause a 500
I've been stuck on this issue for several days - any help is much
I've been trying to find a proper solution to my problem for several days
Several days ago I attended a seminar and they were talking about dangerous PHP
Merging in my Mercurial repository is not working like I expected. Several days ago

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.