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

How to generate .exe from .pro file

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 943 Views
  • 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
    Babitha
    wrote on last edited by
    #1

    I want to generate statically linked wkhtmltopdf.exe locally.
    For that used wkhtmltopdf0.12.5 source code.
    Patched QT 4.8.7 is compiled statically.
    QT 4.8.7 is set as default QT option in visual studio 2010.
    After that tried to open wkhtmtopdf.pro in wkhtmltopdf0.12.5 source code using visual studio 2010 .
    But it doesn't generate solution .
    So not able to generate exe from the solution.
    How do i generate the statically linked wkhtmotpdf.exe ?

    Below are the configurations used:
    Windows 10
    Microsoft visual studio 2010
    Patched QT 4.8.7
    Wkhtmltopdf0.12.5

    Christian EhrlicherC 1 Reply Last reply
    0
    • B Babitha

      I want to generate statically linked wkhtmltopdf.exe locally.
      For that used wkhtmltopdf0.12.5 source code.
      Patched QT 4.8.7 is compiled statically.
      QT 4.8.7 is set as default QT option in visual studio 2010.
      After that tried to open wkhtmtopdf.pro in wkhtmltopdf0.12.5 source code using visual studio 2010 .
      But it doesn't generate solution .
      So not able to generate exe from the solution.
      How do i generate the statically linked wkhtmotpdf.exe ?

      Below are the configurations used:
      Windows 10
      Microsoft visual studio 2010
      Patched QT 4.8.7
      Wkhtmltopdf0.12.5

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Babitha said in How to generate .exe from .pro file:

      But it doesn't generate solution .

      What does it then?
      Please read the docs on how to read a vs soultion with Qt: https://doc.qt.io/qt-5/qmake-platform-notes.html#creating-visual-studio-project-files

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      B 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @Babitha said in How to generate .exe from .pro file:

        But it doesn't generate solution .

        What does it then?
        Please read the docs on how to read a vs soultion with Qt: https://doc.qt.io/qt-5/qmake-platform-notes.html#creating-visual-studio-project-files

        B Offline
        B Offline
        Babitha
        wrote on last edited by
        #3

        What does it then?
        Nothing happened while opening .pro file.

        Please read the docs on how to read a vs soultion with Qt: https://doc.qt.io/qt-5/qmake-platform-notes.html#creating-visual-studio-project-files

        Already referred the above mentioned docs but the issue exists(Doesn't generate solution)

        Christian EhrlicherC 1 Reply Last reply
        0
        • B Babitha

          What does it then?
          Nothing happened while opening .pro file.

          Please read the docs on how to read a vs soultion with Qt: https://doc.qt.io/qt-5/qmake-platform-notes.html#creating-visual-studio-project-files

          Already referred the above mentioned docs but the issue exists(Doesn't generate solution)

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Babitha said in How to generate .exe from .pro file:

          Nothing happened while opening .pro file.

          Why would you open a pro file?
          You have to call qmake as written in the documentation I gave to link to you.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          B 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            @Babitha said in How to generate .exe from .pro file:

            Nothing happened while opening .pro file.

            Why would you open a pro file?
            You have to call qmake as written in the documentation I gave to link to you.

            B Offline
            B Offline
            Babitha
            wrote on last edited by
            #5

            @Christian-Ehrlicher

            Why would you open a pro file?
            I am using qt visual studio add in.
            So can i generate soln from opening .pro file?

            Christian EhrlicherC 1 Reply Last reply
            0
            • B Babitha

              @Christian-Ehrlicher

              Why would you open a pro file?
              I am using qt visual studio add in.
              So can i generate soln from opening .pro file?

              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              I'm pretty sure Qt vs soultion does not support an ancient Qt version so you have to call qmake on the command line so the solution is generated.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              B 1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                I'm pretty sure Qt vs soultion does not support an ancient Qt version so you have to call qmake on the command line so the solution is generated.

                B Offline
                B Offline
                Babitha
                wrote on last edited by
                #7

                @Christian-Ehrlicher
                We successfully generated the soln form opening .pro file in case of dynamically linked QT.
                But in case of Static linking issue occurs.

                Christian EhrlicherC 1 Reply Last reply
                0
                • B Babitha

                  @Christian-Ehrlicher
                  We successfully generated the soln form opening .pro file in case of dynamically linked QT.
                  But in case of Static linking issue occurs.

                  Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  So even is there a bug somewhere in this ancient stuff do you really think this will be fixed? Qt4 is out of support since ages. Create your solution on the command line and use it.

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  B 1 Reply Last reply
                  0
                  • Christian EhrlicherC Christian Ehrlicher

                    So even is there a bug somewhere in this ancient stuff do you really think this will be fixed? Qt4 is out of support since ages. Create your solution on the command line and use it.

                    B Offline
                    B Offline
                    Babitha
                    wrote on last edited by
                    #9

                    @Christian-Ehrlicher
                    Is qt static linking compilation doesn't generate QtWebKit.lib.
                    I have an error like "cannot open input file 'QtWebKit.lib'".
                    This lib is not avialble in the compiled QT directory.

                    How "QtWebKit.lib'" made available after Qt static compilation ?

                    Christian EhrlicherC JonBJ 2 Replies Last reply
                    0
                    • B Babitha

                      @Christian-Ehrlicher
                      Is qt static linking compilation doesn't generate QtWebKit.lib.
                      I have an error like "cannot open input file 'QtWebKit.lib'".
                      This lib is not avialble in the compiled QT directory.

                      How "QtWebKit.lib'" made available after Qt static compilation ?

                      Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      I don't know anything about QtWebKit.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      1 Reply Last reply
                      0
                      • B Babitha

                        @Christian-Ehrlicher
                        Is qt static linking compilation doesn't generate QtWebKit.lib.
                        I have an error like "cannot open input file 'QtWebKit.lib'".
                        This lib is not avialble in the compiled QT directory.

                        How "QtWebKit.lib'" made available after Qt static compilation ?

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by
                        #11

                        @Babitha
                        Be aware that QtWebKit was removed from Qt later on
                        Read https://stackoverflow.com/questions/2461799/statically-compiling-qt-4-6-2 and https://forum.qt.io/topic/90051/qtwebkit-cannot-build-qtwebkit-static-for-static-4-8-x-or-5-5-1.
                        Gist is that although some people say they did manage to compile it statically it is apparently "not easy" and also

                        A few people succeeded in making static builds on Windows, however getting linking right is not trivial

                        1 Reply Last reply
                        2

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved