Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved Probleme with generating project *.pro

    General and Desktop
    4
    6
    307
    Loading More Posts
    • 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
      lkatir last edited by

      Hello evryone, for VS project already existing, i used to generate the project using the *.pro (Qmake thing i think), i replaced vs by qt creator keepin VS environement. i used to click on the .pro with right clic and generate the project , now the generate line desapeared and the .pro is set as a qt file by default.
      I m a little begginer in that thing and for information (i don t know if it s usfull to know i m using xbinder).
      Can you help ?!

      1 Reply Last reply Reply Quote 0
      • IamSumit
        IamSumit last edited by IamSumit

        Hello,

        In order to generate .pro file please follows these steps:-

        1. Delete your *.o , *.pro file and make file (if already existing). where these are located.
        2. open the terminal/cmd prompt and run/execute the following commands:-
          a) make clean
          b)qmake -project (it will generate your new *.pro file)
          c)qmake
          d)make
          Hope this helps.

        Be Cute

        L 1 Reply Last reply Reply Quote 0
        • L
          lkatir @IamSumit last edited by

          @IamSumit thank your for your answer, in fact i already have the .pro ! the be more specific; in my machine i have qt so to run a qmake on my project i open it with qt and i run a qmake (so easy :) ), but what i m trinig to do is to apply a generate on the .pro (not to generate it) on a machine that douesn't have qt !
          sorry for not being enaught clear but i m a little begginer !

          1 Reply Last reply Reply Quote 0
          • VRonin
            VRonin last edited by VRonin

            you can use qmake to generate the VS project file, using -tp vc argument, see https://doc.qt.io/qt-5/qmake-platform-notes.html#creating-visual-studio-project-files
            I never tested the quality of the result though

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply Reply Quote 2
            • L
              lkatir last edited by

              In fact it's more complicated thene that there are so many environement variables to set !
              i found an other way to do what i have to do instead of using this generation !
              thanks for unswearing any way!

              Pablo J. Rogina 1 Reply Last reply Reply Quote 0
              • Pablo J. Rogina
                Pablo J. Rogina @lkatir last edited by

                @lkatir two things please if you solved your issue:

                1. it would be great you can describe what you did so other readers can benefit eventually
                2. don't forget to mark your post as solved!

                Upvote the answer(s) that helped you solve the issue
                Use "Topic Tools" button to mark your post as Solved
                Add screenshots via postimage.org
                Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post