User forums > Help
Error compiling QT application
Code Medic:
is there a better support for Qt4 Open Source edition in the latest nightly build?
has it been solved? bcoz, i'm facing the same situation.
about the "#include <QtGui>" directive, isnt that a standard directive??
like "#include <vector>" ..??
cheerio
JuTs:
I'm not sure, but I didn't notice any problem with this kind of include.
But I have problems with the Makefile.
I tried to add
--- Code: ---qmake -project
qmake
--- End code ---
to the pre-build steps but that doesn't work. The Makefile is generated correctly but it doesn'e seem to be used. I get error of this kind
--- Quote ---.objs/cannonfield.o : In the function "CannonField::setAngle(int)":cannonfield.cpp:(.text+0x11c): undefined reference to « CannonField::angleChanged(int) »
--- End quote ---
lfm:
Please look at: http://forums.codeblocks.org/index.php?topic=3206.0
CJ:
--- Quote from: yop on August 28, 2005, 05:09:07 pm ---
--- Quote from: e-axis on August 16, 2005, 12:49:29 am ---The REAL problem is a linking.
Qt uses *.moc files, but how can I tell compiler to generate them, compile and link? :(
All hopes is to use Makefiles.
--- End quote ---
e-axis you are 100% right. Firstly to the code::blocks team this problem with the folders should be looked into. Secondly qt generates "intermediate" files source files using the moc (meta object compiler). And if you are looking for the real qt experience you must also use the designer thus support .ui files etc. etc. I am navigating through the options I am given and I'll get back to you. In the mean time I will email to the qt mailing list I' m subscribed to, to suggest this beautiful IDE, believe it or not it's the only one to support Qt open source edition.
I will get back with this issue, as this IDE is a neccessesity to me...
--- End quote ---
Are there any news regarding this problem?
CU
CJ
sethjackson:
--- Quote from: CJ on August 03, 2006, 12:59:59 pm ---
--- Quote from: yop on August 28, 2005, 05:09:07 pm ---
--- Quote from: e-axis on August 16, 2005, 12:49:29 am ---The REAL problem is a linking.
Qt uses *.moc files, but how can I tell compiler to generate them, compile and link? :(
All hopes is to use Makefiles.
--- End quote ---
e-axis you are 100% right. Firstly to the code::blocks team this problem with the folders should be looked into. Secondly qt generates "intermediate" files source files using the moc (meta object compiler). And if you are looking for the real qt experience you must also use the designer thus support .ui files etc. etc. I am navigating through the options I am given and I'll get back to you. In the mean time I will email to the qt mailing list I' m subscribed to, to suggest this beautiful IDE, believe it or not it's the only one to support Qt open source edition.
I will get back with this issue, as this IDE is a neccessesity to me...
--- End quote ---
Are there any news regarding this problem?
CU
CJ
--- End quote ---
Yes. You will need a recent nightly build.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version