May 27, 2011

Peppy Peppy
Hobby Entomologist
389 posts

QMAKE: how to write more complex project?

 

Is there any good tutorial how to write a QMAKE for more complex projects? Because it drives me angry…I want structure like has QtCreator repository…

7 replies

May 27, 2011

Deleted Member # 2ee9 Deleted Member # 2ee9
Lab Rat
1 posts

Have you read QMake tutorial?
http://doc.qt.nokia.com/4.7/qmake-manual.html

Cheers!

May 27, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3132 posts

Just take a look into the Qt Creator repository for inspiration if that does something similar to what you want…

Qmake is sadly underdocumented:-( Looking at examples is the best way to learn it in my opinion.

May 28, 2011

ZapB ZapB
Robot Herder
1354 posts

Yeah I agree with Tobias. It took me ages to figure out how to get qmake to do shadow builds (from within the .pro files) for both debug and release properly. The key to it was using the build_pass{} scope – qmake actually parses the .pro files up to 3 times!

Do you have any specific project layout examples that you want to achieve? You mention like qt-creator but which aspect of it?

 Signature 

Nokia Certified Qt Specialist
Interested in hearing about Qt related work

May 28, 2011

Peppy Peppy
Hobby Entomologist
389 posts

Yes, I have downloaded repo of sources, but this QMAKE (.pro/.pri) files are including so weird…

I want to have sources at one place, resources at one place and builds at one place

  1. Project/
  2.  |-  src/
  3.        |-  app/
  4.        |-  libs/
  5.              |-  // and so on...
  6.  |-  bin/
  7.        |- debug/
  8.        |- release/
  9.  |-  res/
  10.        |-  // any resources...
  11.  |-  doc/

As it has QtCreator (or similar)…

At Tobias: Does anybody work on this documentation? Does anybody upgrade that documentation? Or it’s just flow from version to version?

May 28, 2011

Tobias Hunger Tobias Hunger
Mad Scientist
3132 posts

I am not aware of anybody working on qmake documentation.

As I said before:That organization of files you have to follow for your school does not really make sense for qmake without an installation step. Qmake assumes — as any sensible build system would — that it can put build artifacts wherever it wants to. If you need your files in specific places, then you need to install them.

May 28, 2011

Peppy Peppy
Hobby Entomologist
389 posts

Okay. But QtCreator uses that oraganization not only me. And I will be using shadow builds for this project…

May 29, 2011

Peppy Peppy
Hobby Entomologist
389 posts

So, I think, It takes me a weeks to prepare it :D

 
  ‹‹ QTableWidget Delete Functionality      qVTKWidgets.dll ››

You must log in to post a reply. Not a member yet? Register here!