News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Error compiling QT application

Started by Sputnik, July 28, 2005, 05:33:39 PM

Previous topic - Next topic

Code Medic

#15
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

qmake -project
qmake


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)   »




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.

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...

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.

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...

Are there any news regarding this problem?

CU
CJ

Yes. You will need a recent nightly build.

CJ

Quote from: sethjackson on August 03, 2006, 05:54:49 PM
Yes. You will need a recent nightly build.

The Unicode build won't start, complaining about a missing dll point, the ANSI build starts and seems to be configured right but I get the same

undefined reference to `vtable for LCDRange'

errors like in the 1.0 RC2 on the Qt tutorial examples unless I manualy invoke the moc.

CU
CJ

sethjackson

#21
Quote from: CJ on August 03, 2006, 10:14:55 PM
Quote from: sethjackson on August 03, 2006, 05:54:49 PM
Yes. You will need a recent nightly build.

The Unicode build won't start, complaining about a missing dll point, the ANSI build starts and seems to be configured right but I get the same

undefined reference to `vtable for LCDRange'

errors like in the 1.0 RC2 on the Qt tutorial examples unless I manualy invoke the moc.

CU
CJ

Right this is expected (AFAIK). Search the forum for the QtWorkBench plugin. ;)

CJ

Quote from: sethjackson on August 04, 2006, 03:31:11 AM
Right this is expected (AFAIK). Search the forum for the QtWorkBench plugin. ;)

Already did so yesterday but the plugin isn't on the web page, the attachements in the forum are deleted and the thread only mentions frequently that a new version is uploaded but no URL as far as I can see.

Thanks for your help!

CU
CJ

mandrav

Quote from: CJ on August 04, 2006, 10:23:42 AM
Already did so yesterday but the plugin isn't on the web page, the attachements in the forum are deleted and the thread only mentions frequently that a new version is uploaded but no URL as far as I can see.

Yop (the author) has sent me the files again and I will host them in a permanent place. I 'll make an announcement when it's ready.
Be patient!
This bug will be fixed soon...

tiwag

Quote from: CJ on August 04, 2006, 10:23:42 AM
Quote from: sethjackson on August 04, 2006, 03:31:11 AM
Right this is expected (AFAIK). Search the forum for the QtWorkBench plugin. ;)
... the plugin isn't on the web page, the attachements in the forum are deleted and the thread only mentions frequently that a new version is uploaded but no URL as far as I can see.

in the meanwhile you can download the plugin sources from here
http://tiwag.cb.googlepages.com/qtworkbench-0.4.2.alpha.zip

you have to build it yourself, create a folder in the CB source tree,
for example, i have it set up in : CB/trunk/src/plugins/_other/
and copy all files and subdirectories there, so that you have the following tree
CB/trunk/src/plugins/_other/QtWorkbench
CB/trunk/src/plugins/_other/QtWorkbench/res
CB/trunk/src/plugins/_other/QtWorkbench/src

then open CB/trunk/src/plugins/_other/QtWorkbench/qtworkbench.cbp
with CodeBlocks and build it. it will be built in CB/trunk/src/devel/share/CodeBlocks/plugins

after you run the CB/trunk/src/update.bat (on Windows) it will be copied to
the CB working version tree CB/trunk/src/output

i tested it with Qt 4.1.2 and generally it works fine.





CJ

Quote from: mandrav on August 04, 2006, 11:50:53 AM
Yop (the author) has sent me the files again and I will host them in a permanent place. I 'll make an announcement when it's ready.

Thanks :)

CU
CJ