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. Error in qvector3d.h even though im not even using it
Forum Updated to NodeBB v4.3 + New Features

Error in qvector3d.h even though im not even using it

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 1.1k 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.
  • T Offline
    T Offline
    theuser
    wrote on last edited by
    #1

    Hi guys, right now i got a strange behaviour:

    My current project was originally created on a linux system using QtCreator (at my university).
    Now im at home and trying to build it, but im getting a strange error message:
    http://up.picr.de/16398780xq.jpg

    They are all rooted in the qvector3d.h file which i am not using at all to my knowledge. (used to use it though, but replaced it with a stripped down template class named "Point3D"
    Nowhere am i including qvector3d.h and even then it should not created any errors.

    Any thoughts? I tried cleaning and rebuilding the project of course.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      theuser
      wrote on last edited by
      #2

      Nobody got an idea?
      Or is something unclear?

      Why is Qt crying about a missing semicolon for example before the "<" in this line "class Q_GUI_EXPORT Point3D__<qreal>" of qvector3d.h?

      This sounds similar to errors i got when i lacked a closing semicolon after a class declaration but i checked all my classes and none is missing

      1 Reply Last reply
      0
      • T Offline
        T Offline
        theuser
        wrote on last edited by
        #3

        To give an answer myself:
        Turns out QtCreator 5 was natively built (precompiled) using OpenGL ES which the project i tried to run did not use (but the "proper" opengl version).
        Have to rebuilt the QtCreator myself with the proper options, i quote for completness:

        [QUOTE]
        OK that is the source of your issues then. The pre-compiled Windows desktop version of Qt5 is built against ANGLE which only provides OpenGL ES 2 support by implementing it on top of DirectX 9.

        This was done to ensure that QtQuick2 works on all windows systems, including those with crappy Intel OpenGL drivers ;)

        OpenGL ES 2 does not support the legacy fixed function pipeline, only a shader-based one.

        There is a bug open to provide a build of Qt 5 using the native desktop OpenGL implementation for Qt 5.0.1. Please go vote for https://bugreports.qt-project.org/browse/QTBUG-28715 to see this happen.

        For now, you have two choices:

        Live with OpenGL ES 2 support and don’t use legacy OpenGL
        Build your own copy of Qt 5 to use the native OpenGL drivers by passing in
        
        -opengl desktop
        

        to configure.

        With the 2nd option you should have access to OpenGL from 1.0 up to 4.3 (if your card/driver support it).

        [/QUOTE]

        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