Using existing makefile in qmake?
-
wrote on 2 Oct 2013, 21:47 last edited by
Hello. I have a ready-to-compile makefile, is there a way for qmake to use the file to compile the project? Thanks!
-
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 -
wrote on 3 Oct 2013, 15:25 last edited by
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] -
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. -
wrote on 3 Oct 2013, 16:18 last edited by
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/5