Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. How to Build/Compile other c++ projects in qt

How to Build/Compile other c++ projects in qt

Scheduled Pinned Locked Moved 3rd Party Software
12 Posts 4 Posters 4.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.
  • U Offline
    U Offline
    Udayaravi
    wrote on last edited by
    #3

    Hi,
    Thanks for the reply,
    First I will go through the Qmake manual then if I get any problems I will post it here....

    1 Reply Last reply
    0
    • U Offline
      U Offline
      Udayaravi
      wrote on last edited by
      #4

      hi,
      I have understood the basics of Qmake, but the code I have is a big program it includes more no. of files and there are many other libraries and packages on which the program depends. So it is becoming difficult to create .pro file....
      also tell me is it possible to convert a 'configure' or 'cmake' file into .pro file

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mcosta
        wrote on last edited by
        #5

        It's possible but you can do it by hands, I don't know if exists some tools that help you to do

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        1 Reply Last reply
        0
        • R Offline
          R Offline
          refuzee
          wrote on last edited by
          #6

          i made this conversion by hand with only some classes and it has been a real pain i'm afraid ;( be sure you have enough time to get skilled in qt if you are not already.

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

            Hi,

            If you already have a cmake project, then you can continue using cmake. Qt support has been integrated for some time now in it.

            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
            • U Offline
              U Offline
              Udayaravi
              wrote on last edited by
              #8

              thanks for everybody,
              @ SGaist : please give me more details about how to use cmake project in Qt....

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

                http://bit.ly/137VdyX

                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
                • U Offline
                  U Offline
                  Udayaravi
                  wrote on last edited by
                  #10

                  hi SGaist,
                  this link will give only the details about 'how to build qt project from cmake'
                  but I want to know the opposite, that is 'how to build a cmake project in qt'

                  I have a project which can be build using cmake. But I want to compile/run the same code using an IDE like Qt. So, to run this code I need a qt project file which has all the information like the dependencies and libraries for this code. how to develop this Qt project file....

                  I need help to run this code on Qt IDE....

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

                    You don't build a cmake project in Qt. You use cmake to build a project that uses Qt.

                    QtCreator has support for cmake project. But you still have to write the file yourself, the link you found provides an explanation on how to write a cmake file to build a Qt project, which is what you need, there is no use to change your build system since cmake already support Qt

                    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
                    • U Offline
                      U Offline
                      Udayaravi
                      wrote on last edited by
                      #12

                      ok, I will try that....
                      Thank you very much

                      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