Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. How to run OpenGL examples with M Visual studio 2013 as IDE.
Forum Updated to NodeBB v4.3 + New Features

How to run OpenGL examples with M Visual studio 2013 as IDE.

Scheduled Pinned Locked Moved Game Development
4 Posts 2 Posters 2.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.
  • C Offline
    C Offline
    chinois
    wrote on last edited by
    #1

    Hello,
    I'am new with Qt. there is only some months, i started to use Qt and its ok.
    Now , i wanted to start with openGL in Qt. I can run easly the opengl examples when i use qtCreator but i can't with visual studio 2013 as IDE.

    Is there anything else needed in MVS2013 to run openGL example?
    I use Qt 5.3.2 and Win 7.
    any help?? Thank you.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK no, there's nothing special needed. What errors are you getting ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chinois
        wrote on last edited by
        #3

        Hi,
        I had created a new Qt project, then i added the file given in "Hello gl" example, except the .pro file.

        an error of a qtlogo file missed was displayed , then i imported olso qtlogo found in Shared folder.

        the folowing error appears now:

        error C1083: Cannot open source file: 'GeneratedFiles\Debug\moc_glwidget.cpp'.

        As i am new with that, i just want to be sure that there is no other extension i have to install in order to use opengl with visual studio.

        Thx.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          chinois
          wrote on last edited by
          #4

          Here is the solution to generate moc_glwidget.cpp:

          right click on the header file in solution explorer and select properties.
          In the properties dialog select under Item Type, custom build tool.
          Then in the command line part, you put this line:

          moc -o moc_glwidget.cpp glwidget.h

          I think my visual studio is working well with OpenGL, i will continue with more exercises.

          Thanks you for your help.

          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