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. How to create vc++ file from .pro file
Forum Updated to NodeBB v4.3 + New Features

How to create vc++ file from .pro file

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

    Hello guys i have installed VS 2012 and Qt 5.1.1 and wrote a project also i just want to generate VC++ file via cmd with use of .pro file and qmake could anyone tell me how to do that so the code will run and identify all includes and classes of qt

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

      Hi,

      Once you have setup your pro file properly, IIRC it's

      @qmake -tp vc@

      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
      • H Offline
        H Offline
        herculis
        wrote on last edited by
        #3

        thanks SGaist it worked but when i run one code i am getting the following error "Cannot open include file: 'GL/gl.h': No such file or directory1> main.cpp"
        could you please help.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          herculis
          wrote on last edited by
          #4

          sorry and mentioned incorrect i have installed Qt 5.3.3 opengl Qt version for VS 2012

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ambershark
            wrote on last edited by
            #5

            That means you need the opengl headers from the developer package of opengl. Or if you have installed that already you need to point your INCLUDEPATH in your pro file at the include directory for the opengl stuff.

            Or maybe you didn't even intend to use opengl in which case you can try excluding it with QT -= opengl.

            My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

            1 Reply Last reply
            0
            • H Offline
              H Offline
              herculis
              wrote on last edited by
              #6

              Its not working when i double click on error its showing error in qpengl.h

              include <GL/gl.h>

              1 Reply Last reply
              0
              • A Offline
                A Offline
                ambershark
                wrote on last edited by
                #7

                Yea that is because you don't have the opengl headers installed on your system or if you do Qt can't find them.

                Do a forum search here for gl.h and you will find a lot of topics on this.

                My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

                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