Hi
I'm trying to compile an qt example I found on trolltech website. The compilation is Ok but not the link, I got this error :
Quote
-------------- Build: default in t14 ---------------
Linking executable: t14
/usr/bin/ld: ne peut trouver -lQt3Support4
collect2:
ld a retourné 1 code d'état d'exécution
Process terminated with status 1 (0 minutes, 15 seconds)
0 errors, 0 warnings
Hello,
Because you have forgotten to add the required library to the linker. Add it and try again.
Best wishes,
Michael
Thank you
You were almost right, the required library where defined but in relative path. I changed them in absolute path and it's ok now.
But I have another problem. with the makefile this time.
All is ok with the Qt template provided by Code::Blocks (the Hello World example).
But with with more elaborated example (the trolltech's tutorial) the Makefile is not generated. If I generate it myself (in a console with qmake -project and then qmake) and check the box "This is a custom Makefile" it's ok. But what I have to do if I want that Code::Blocks generate it itself ?
Quote from: JuTs on June 30, 2006, 11:21:41 PM
Thank you
You were almost right, the required library where defined but in relative path. I changed them in absolute path and it's ok now.
Hello,
Even if an absolute path works fine, you should try a relative one. If not you will probably be able to compile only on your computer. IMHO, the relative path you were using was not set correctly.
Quote from: JuTs on June 30, 2006, 11:21:41 PM
But I have another problem. with the makefile this time.
All is ok with the Qt template provided by Code::Blocks (the Hello World example).
But with with more elaborated example (the trolltech's tutorial) the Makefile is not generated. If I generate it myself (in a console with qmake -project and then qmake) and check the box "This is a custom Makefile" it's ok. But what I have to do if I want that Code::Blocks generate it itself ?
C::B does not generate automatically makefiles. If you are interested in Qt, you might would like to have a look at yop's plugin :). Try a search in the forum and you will found it.
Best wishes,
Michael
Ok.
I tried to compile it and I got this error :
Quotesrc/qtworkbench.cpp:31: erreur: la macro « CB_IMPLEMENT_PLUGIN » a reçu 2 arguments, mais elle n'en prend que 1
Say that CB_IMPLEMENT_PLUGIN take only one argument but two are given
the line 31 is :
CB_IMPLEMENT_PLUGIN(QtWorkbench,"QtWorkbench");I tried to remove one argument end then the other but didn't work.
QuoteI'm trying to compile an qt example I found on trolltech website.
Hmm... looks like you try to build a Code::Blocks plugin, though?
QuoteSay that CB_IMPLEMENT_PLUGIN take only one argument but two are given
The compiler is right. Always. :)
If you get this message, then you are using SDK headers older than 13 February. Possibly, you have an old copy of outdated SDK headers in your include path, and it's using these.
At the begin it was a qt project compilation problem.
Now it's a plugin compilation problem. I have downloaded the RC sources and not the svn sources.
I tried a svn checkout but I got this error :
Error: PROPFIND request failed on '/svnroot/repos/codeblocks/trunk'
Error: PROPFIND of '/svnroot/repos/codeblocks/trunk': could not connect to server (http://svn.berlios.de)
Can someone send me the svn sources by e-mail ?
Julien.Tschaeppaet _at_ he-arc.ch
Are you being serious about requesting that we e-mail you a 34 MB attachment?
Maybe you want to try svn checkout svn://svn.berlios.de/codeblocks/trunk instead, that will be a lot easier for you :)
But if you insist on this e-mail thing... :lol:
with svn://svn.berlios.de/codeblocks/trunk I got
QuoteError: Can't connect to host 'svn.berlios.de': No connection could be made because the target machine actively refused it.
ok, try by mail to these two address (not sure that the first can receive big attachments):
Julien.Tschaeppaet _at_ he-arc.ch
contact _at_ streethockeycup.ch
Thank you
Code::Blocks is open source. Please get the sources through the normal channels. We 're not emailing the source to anyone. We don't want to be considered spammers by mail servers...
I tried through svn but I got error everytime I try
Quote from: JuTs on July 03, 2006, 03:03:24 PM
I tried through svn but I got error everytime I try
HTTP access failed here too. Seems some server is currently down.
SVN access to
svn://svn.berlios.de/codeblocks/trunk works fine though (just tried).
If it's a server problem, try again later.
If it's your problem (i.e. network connectivity), we can't fix it for you.
It's ok now.
I have a question about the project's build options. There are $(#CB) variables, I think that is the directory of the c::b' sources, right ? But where have I to define the value of $(#CB) ?
And what does mean $(#CB.INCLUDE) ?
http://wiki.codeblocks.org/index.php?title=Global_compiler_variables
http://wiki.codeblocks.org/index.php?title=Recommended_global_variables
Ok, Thank you
The compilation of the plugin seems to be ok but when I run the update script I got :
Quote
Creating output directory tree
Compressing core UI resources
Compressing plugins UI resources
Packing core UI bitmaps
Packing plugins UI bitmaps
Copying files
cp: ne peut évaluer `tools/ConsoleRunner/cb_console_runner': Aucun fichier ou répertoire de ce type
cp: ne peut évaluer `tools/ConsoleRunner/cb_console_runner': Aucun fichier ou répertoire de ce type
cp: ne peut évaluer `devel/codeblocks': Aucun fichier ou répertoire de ce type
cp: ne peut évaluer `devel/*.so': Aucun fichier ou répertoire de ce type
Stripping debug info from output tree
Creating launch-scripts
Seems that tools/ConsoleRunner/cb_console_runner is not correct.
Another problem I got when I try to run an application compiled with c::b :
Quote./helloworld: error while loading shared libraries: libQtCore.so.4: cannot open shared object file: No such file or directory
I think that the application try to load the libraries from the /usr/lib/ directory. What I have to do in c::b to have the libraries linked with the application ?