Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot compile QtExamples Such as "Grabber Example" in OSX Lion 10.8.2

Cannot compile QtExamples Such as "Grabber Example" in OSX Lion 10.8.2

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunsina
    wrote on last edited by
    #1

    I installed XCode on my MAC and Qt creator 2.6 based on QT 5.
    I Open the example project "Grabber Example", and when I compiled it I got 2337 errors/issues
    most of the errors are related to opengl libraries
    errors such as
    /Users/sina/Qt5.0.0/5.0.0/clang_64/include/QtGui/qopengl.h:88: error: OpenGL/gl.h: No such file or directory
    /Users/sina/Qt5.0.0/5.0.0/clang_64/include/QtGui/qopenglframebufferobject.h:70: error: 'GL_TEXTURE_2D' was not declared in this scope
    /Users/sina/Qt5.0.0/5.0.0/clang_64/include/QtGui/qopenglshaderprogram.h:218: error: ISO C++ forbids declaration of 'GLfloat' with no type

    In fact I do not know how I can add OpenGL libraries and include files or libraries (if one can attach few screenshots of the configuration page it would be much better) to make it compile and execute in my MAC machine.
    Thanks

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved