News:

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

Main Menu

CodeBlocks QT4 -- qtworkbench in Linux...

Started by jiapei100, January 02, 2010, 12:05:22 AM

Previous topic - Next topic

jiapei100

Hi, all:

Since I really would like to try QT4 using CodeBlocks,
I checked out qtworkbench from http://code.google.com/p/qtworkbench/source/checkout

However, the downloaded folder only affords the source code, how to build it to a    ".cbplugin " ???
There is only one Makefile.am under this folder, which seems to contain something useless.

pkgdata_DATA = QtWorkbench.zip
CLEANFILES = $(pkgdata_DATA)

QtWorkbench.zip: res/manifest.xml
PWD=`pwd` cd $(srcdir)/res && zip $(PWD)/QtWorkbench.zip manifest.xml *.xrc > /dev/null



I'm just wondering how to compile this qtworkbench to produce the needed qtworkbench.cbplugin for me to add into codeblocks IDE?

Cheers
JIA




Welcome to Vision Open
[url="http://www.visionopen.com"]http://www.visionopen.com[/url]

oBFusCATed

Does it have a bootstrap file?
Also I suppose you can use C::B to build the plugin, look for .cbp file.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

killerbot


jiapei100


Hi, SVN doesn't contain a bootstrap file.

Yes, I did a successful build of this plugin.
However, it seems nothing has been produced.

:? :(

Can you help to try it as well?

Cheers
JIA Pei

Quote from: oBFusCATed on January 02, 2010, 12:12:45 AM
Does it have a bootstrap file?
Also I suppose you can use C::B to build the plugin, look for .cbp file.
Welcome to Vision Open
[url="http://www.visionopen.com"]http://www.visionopen.com[/url]

jiapei100


Ok, found it !!

Produced here " Linking dynamic library: ../../../devel/share/codeblocks/plugins/libQtWorkbench.so "

Gosh.. how come it's not produced right down the project folder??

Let me move on a bit.

Cheers
JIA


Welcome to Vision Open
[url="http://www.visionopen.com"]http://www.visionopen.com[/url]

jiapei100


QtWorkbench installed successfully I think.

However, is it good for Linux?

Since on my Ubuntu 9.10,

1) qt4 header files are defaultly in
/usr/include/qt4

2) qt4 library files are defaultly in
/usr/lib/qt4


So, how to set up qtworkbench for my Ubuntu?

Wiki at  http://code.google.com/p/qtworkbench/wiki   seems only afford some instructions for Windows users.

1) What should I fill in "base" under Ubuntu? (compare to http://code.google.com/p/qtworkbench/wiki/GlobalVariables )
2) What should I fill in " QT Installation Directory" and "Make Specifications Directory" under Ubuntu? (compare to http://code.google.com/p/qtworkbench/wiki/PluginConfiguration )


Finally, is qtworkbench only for windows users?

Cheers
JIA





Welcome to Vision Open
[url="http://www.visionopen.com"]http://www.visionopen.com[/url]

jiapei100


Finally, give it up

Not convenient at all..

It seems better to add all staffs required through "Build Options..."

Just wondering,
will manually adding all required "including directories" as well as all required "libraries"
be equivalent to setting global variables (seems to be pretty complex, but still doesn't work fine ).

Best Regards
JIA

Welcome to Vision Open
[url="http://www.visionopen.com"]http://www.visionopen.com[/url]

jiapei100



No, impossible. Because QT will call qmake first to produce some intermediate files, which will be further used to compile the final binary executable file.

So, can anybody show the entire process of how qtworkbench is working under Linux ??

I strictly followed the Wiki at http://code.google.com/p/qtworkbench/wiki/QtWorkbenchProjects

But, I always obtain the following error messages

"
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
Process terminated with status 2 (0 minutes, 0 seconds)
0 errors, 0 warnings
"

So, is it possible that "Ubuntu 9.10 + CodeBlocks 8.02 + qtworkbench 0.60 alpha" is not working?

Urgent   Best Regards
JIA


Quote from: jiapei100 on January 02, 2010, 04:19:48 AM

Finally, give it up

Not convenient at all..

It seems better to add all staffs required through "Build Options..."

Just wondering,
will manually adding all required "including directories" as well as all required "libraries"
be equivalent to setting global variables (seems to be pretty complex, but still doesn't work fine ).

Best Regards
JIA


Welcome to Vision Open
[url="http://www.visionopen.com"]http://www.visionopen.com[/url]