
Originally Posted by
tommy
Hi Jacek,
I see that Eric is trying to figure out exacly the same thing as me.
Once you have your makefile, how do you then use it in your command line? What's the syntax? Where do you put the name of the makefile when you compile.
Thanks again Jacek!
Tommy
The make command looks for a file named "Makefile" by default. You can however specify other makefiles with the -f option. If you add source files you will generally want to update your project file. When I start a project using QT I create all of my source files as empty skeletons. Running the following should provide you with a compiled project.
qmake -project // generates your project file
qmake // generates your make file
make // builds your app
qmake -project // generates your project file
qmake // generates your make file
make // builds your app
To copy to clipboard, switch view to plain text mode
Any time you change your source (ie/ save) run make. If you add files, either manually update the PROJECTNAME.pro file (preferred esp. if you start working with plugins), or rerun all 3 commands. I believe on Windows you will also need to ensure the bin folder in QT is located in your path otherwise it won't find the required DLL's. Your programs exe will generally be placed in the "release" folder.
Regards,
Nate
Bookmarks