Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Using existing makefile in qmake?
Forum Updated to NodeBB v4.3 + New Features

Using existing makefile in qmake?

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 13.9k 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.
  • P Offline
    P Offline
    Procedural
    wrote on 2 Oct 2013, 21:47 last edited by
    #1

    Hello. I have a ready-to-compile makefile, is there a way for qmake to use the file to compile the project? Thanks!

    1 Reply Last reply
    0
    • P Offline
      P Offline
      p3c0
      Moderators
      wrote on 3 Oct 2013, 11:51 last edited by
      #2

      qmake tool is used to create Makefile's. If you have ready-to-compile makefile then just use the make command to build youe source.
      See "qmake":http://en.wikipedia.org/wiki/Qmake and "Running qmake":http://qt-project.org/doc/qt-4.8/qmake-running.html

      157

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Procedural
        wrote on 3 Oct 2013, 15:25 last edited by
        #3

        Is there a way to create qmake project from makefile then? The makefile I need to compile is a very big one, it's written not by me so to convert it to qmake manually I need to put a lot of effort without any benefits since the makefile can be compiled directly already. I use IDE to interactively see code complition, type mismatches and errors in my code, if it not parsed with qmake it means I have non of these features and so there is no point to use IDE at all
        [quote author="p3c0" date="1380801102"]qmake tool is used to create Makefile's. If you have ready-to-compile makefile then just use the make command to build youe source.
        See "qmake":http://en.wikipedia.org/wiki/Qmake and "Running qmake":http://qt-project.org/doc/qt-4.8/qmake-running.html[/quote]

        1 Reply Last reply
        0
        • P Offline
          P Offline
          p3c0
          Moderators
          wrote on 3 Oct 2013, 16:05 last edited by
          #4

          AFAIK, there's no tool to convert makefile to a .pro file. You will need to manually add the files (*.cpp and *.h) to your project.
          But there's an option in qmake "Generate a project file":http://qt-project.org/doc/qt-4.8/qmake-running.html#project-mode-options which will build you a .pro file from existing source and header files. Personally i have never tried this option, but it must work.

          157

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Procedural
            wrote on 3 Oct 2013, 16:18 last edited by
            #5

            Thank you! I'll try that option. Also, maybe "Generic Project":http://qt-project.org/doc/qtcreator-2.6/creator-project-generic.html will help me too, just found mention on the "mailing list":http://lists.qt-project.org/pipermail/qt-creator/2012-March/000433.html and will try as well
            [quote author="p3c0" date="1380816351"]AFAIK, there's no tool to convert makefile to a .pro file. You will need to manually add the files (*.cpp and *.h) to your project.
            But there's an option in qmake "Generate a project file":http://qt-project.org/doc/qt-4.8/qmake-running.html#project-mode-options which will build you a .pro file from existing source and header files. Personally i have never tried this option, but it must work.[/quote]

            1 Reply Last reply
            0

            5/5

            3 Oct 2013, 16:18

            • Login

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