Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Porting my project from laptop to tower

[SOLVED] Porting my project from laptop to tower

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.0k Views
  • 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.
  • L Offline
    L Offline
    LReiter
    wrote on last edited by
    #1

    Hey guys,
    so today I tried taking my project from my laptop (a 2009 MacBook with 32bit Win7 running on Bootcamp) to the tower PC (Win7 32bit as well) at work so I wouldn't have to carry the laptop all the time.
    The thing is, the exact same project does compile on the MacBook, but not on the tower.
    I'm using the QGLWidget class. On the tower, it says that all those pretty "normal" openGL functions/identifiers (like glLoadidentity or GL_LIGHT0, just to name two of the 84 errors) are undeclared or unknown.
    The code is one and the same.
    Compiler is MSVC2010 in both cases.
    On the tower pc at work, I'm pretty limited regarding user rights (my boss usually has to enter her username and password so I can install software etc.) and when I look into the Windows environment variables, it says (let's say she's UserA, I'm UserB) "user variables for UserA", even when I'm logged into the computer. Maybe that could be the reason?
    I'm pretty confused that using the QGLWidget class doesn't take care of those openGL functions.
    I'm trying to avoid using glut and other extensions to keep my code as clean and independent as possible.
    Also, when I'm #including <GL/GL.h> (from the Windows SDKs dir) I'm getting linker errors, even after deleting the build directory and re-qmaking.
    Hope my question is in the right place and understandable.
    Thanks in advance!
    edit: A reinstall seems to have done it. I'm now running Qt 5.2 with MSVC2010 and opengl config. To whom it may concern.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vincent007
      wrote on last edited by
      #2

      First, make sure you installed Qt properly.
      Please try a Qt example involving QGLWidget.

      By the way, what Qt version do you use?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        LReiter
        wrote on last edited by
        #3

        I'm using 5.0.2.
        Yes, could've thought of that myself. Oh well. The QGLWidget example 2Dpainting is running dandy; the Overpainting example echoes that Qt has to be configured with -opengl desktop. Since I didn't build Qt on my laptop or the tower myself, I don't really think that's the reason (there is always a pretty huge chance I'm wrong though).
        I believe Qt is installed properly since it has been working fine in the past. I could try a reinstall next time my boss is around.

        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