m20io / monav

Automatically exported from code.google.com/p/monav
0 stars 0 forks source link

The command line preprocessor doesn't compile. #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The command line preprocessor (monavpreprocessor.pro) doesn't compile as it 
does not link with libQtGui, but links in the various dialog boxes.

The simple fix is:

diff -r fab3819f24ae preprocessor/preprocessor.pro
--- a/preprocessor/preprocessor.pro Sat May 21 15:39:31 2011 +0100
+++ b/preprocessor/preprocessor.pro Sun May 22 11:13:28 2011 +0100
@@ -4,7 +4,6 @@
 TEMPLATE = app
 CONFIG += link_pkgconfig
 CONFIG += console
-QT -= gui

 DEFINES+=_7ZIP_ST

Presumably the real fix is more "#ifndef NOGUI"s to prevent these dependencies 
being generated.

Original issue reported on code.google.com by jamesh...@gmail.com on 22 May 2011 at 10:14

GoogleCodeExporter commented 8 years ago
To compile the preprocessor you have to add CONFIG+=nogui to the command line 
of qmake ( and start with a clean build directory ).

Original comment by veaac.fd...@gmail.com on 22 May 2011 at 11:43

GoogleCodeExporter commented 8 years ago
OK this works.

Is there any reason that CONFIG+=nogui can't go in preprocessor.pro (since you 
can't compile preprocessor.pro without it)?

Original comment by jamesh...@gmail.com on 22 May 2011 at 2:50

GoogleCodeExporter commented 8 years ago
qmake does not propagate the contents of variables to child projects, i.e., the 
plugins.

I guess we could solve this by creating 2 project files for each plugin, but I 
also dislike that. One would have to update both project files for every change.

If you have a better solution than specifying it on the command line I'd by 
glad to get rid of it.

Original comment by veaac.fd...@gmail.com on 22 May 2011 at 3:16

GoogleCodeExporter commented 8 years ago
Fair enough. No better suggestions here!

Original comment by jamesh...@gmail.com on 22 May 2011 at 4:58

GoogleCodeExporter commented 8 years ago

Original comment by veaac.fd...@gmail.com on 22 May 2011 at 9:30