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. Get QT Creator running with OpenGL ES2.0 using environment variables
Forum Updated to NodeBB v4.3 + New Features

Get QT Creator running with OpenGL ES2.0 using environment variables

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.4k 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.
  • B Offline
    B Offline
    blissfreak
    wrote on last edited by
    #1

    Right now I'm on Windows, and I have a @$(GLES)@ environment variable setup, which I'm hoping to use with QT's QMake. I'd just specify the absolute path in the directory to this, but I'm working with other people on this project, and it makes sense if we use environment variables.

    What I need is to figure out how to get OpenGLES2 in the include path, as well as how to link it in the QMake file. My Qmake looks as follows:

    @HEADERS +=
    VFTHandler.hpp
    VertexFragmentHandler.hpp
    util.hpp
    ShaderHandler.hpp
    ShaderComparable.hpp
    Shader.hpp
    SearchTree.hpp
    pdmaths.hpp
    JniShaderGlue.hpp
    JniGlue.hpp
    GraphicsView.hpp
    GraphicsService.hpp
    GlIncludes.hpp
    FileUtility.hpp
    Debug.hpp
    Comparable.hpp

    SOURCES +=
    VFTHandler.cpp
    util.cpp
    ShaderHandler.cpp
    ShaderComparable.cpp
    Shader.cpp
    SearchTree.inl
    Main.cpp
    FileUtility.cpp
    EscSearchTree.cpp
    Debug.cpp

    LIBS += -L$(GLES)\lib -lEGL -lGLESv2
    INCLUDEPATH += $(GLES)\include@

    Note that this won't compile. Is there anything I can do with this, using environment variables? I am on windows, though a linux solution would be great as well in addition to this.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      matti-
      wrote on last edited by
      #2

      I use glew and setup my build like so:

      @QT += opengl

      win32|linux-g++|linux-g++-64 {
      LIBS += -lGLEW
      DEFINES += BUILD_DESKTOP USER_INTERACTION
      message(Desktop build)
      } else {
      DEFINES += BUILD_DEVICE
      message(Device build)
      }@

      Author of <a href="http://mmark.777-team.org/">MMark13</a>

      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