Author Topic: Error compiling QT application  (Read 48132 times)

Offline Code Medic

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Error compiling QT application
« Reply #15 on: June 16, 2006, 07:17:53 pm »
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
« Last Edit: June 16, 2006, 07:19:53 pm by codemedic »

Offline JuTs

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Error compiling QT application
« Reply #16 on: July 02, 2006, 01:26:49 pm »
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: [Select]
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)   



Offline lfm

  • Multiple posting newcomer
  • *
  • Posts: 68
Re: Error compiling QT application
« Reply #17 on: July 03, 2006, 02:55:34 pm »

Offline CJ

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error compiling QT application
« Reply #18 on: August 03, 2006, 12:59:59 pm »
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

  • Guest
Re: Error compiling QT application
« Reply #19 on: August 03, 2006, 05:54:49 pm »
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.

Offline CJ

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error compiling QT application
« Reply #20 on: August 03, 2006, 10:14:55 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

  • Guest
Re: Error compiling QT application
« Reply #21 on: August 04, 2006, 03:31:11 am »
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. ;)
« Last Edit: August 04, 2006, 03:42:23 am by sethjackson »

Offline CJ

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error compiling QT application
« Reply #22 on: August 04, 2006, 10:23:42 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: Error compiling QT application
« Reply #23 on: August 04, 2006, 11:50:53 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...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Error compiling QT application
« Reply #24 on: August 04, 2006, 12:02:09 pm »
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.





Offline CJ

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error compiling QT application
« Reply #25 on: August 04, 2006, 12:02:29 pm »
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