Code::Blocks Forums

User forums => Help => Topic started by: liquid on April 06, 2011, 09:52:46 am

Title: Qtworkbench
Post by: liquid on April 06, 2011, 09:52:46 am
Does anybode have an experience in installing and using Qtworkbench plugin? My PC is x86_64 (i5) with LINUX 2.6.35-28. I did not manage to install the plugin as described here http://code.google.com/p/qtworkbench/wiki/PluginInstallation (http://code.google.com/p/qtworkbench/wiki/PluginInstallation). There were errors while executing patch command.

patching file configure.in
Hunk #1 FAILED at 341.
1 out of 1 hunk FAILED -- saving rejects to file configure.in.rej
patching file src/plugins/contrib/Makefile.am
Hunk #1 FAILED at 54.
Hunk #2 FAILED at 67.
Hunk #3 FAILED at 83.
3 out of 3 hunks FAILED -- saving rejects to file src/plugins/contrib/Makefile.am.rej
patching file acinclude.m4
Hunk #1 FAILED at 220.
Hunk #2 FAILED at 237.
Hunk #3 FAILED at 251.
Hunk #4 succeeded at 239 with fuzz 2 (offset -64 lines).
Hunk #5 FAILED at 329.
4 out of 5 hunks FAILED -- saving rejects to file acinclude.m4.rej

Title: Re: Qtworkbench
Post by: MortenMacFly on April 06, 2011, 10:06:25 am
patching file configure.in
Hunk #1 FAILED at 341.
[...]

IMHO this patch is only needed to integrate this plugin into the automake build system.

What you can do it without applying the patch you compile/install C::B and then use the compiled C::B to compile just the plugin using it's C::B project file (*.cbp). That should just work.
Title: Re: Qtworkbench
Post by: Jenna on April 06, 2011, 10:08:17 am
And if you have to use the automake-system, you have to apply the patches manually.
This should be not too hard.
Title: Re: Qtworkbench
Post by: liquid on April 12, 2011, 10:40:00 pm
I tried to compile plugin from .cbp file. I got this message:

-------------- Build: default in QtWorkbench (Unix) ---------------

Compiling: src/qtwconfiguration.cpp
Compiling: src/qtworkbench.cpp
Compiling: src/qtwprogenerator.cpp
Compiling: src/qtwprojecthandler.cpp
Compiling: src/qtwprojectoptions.cpp
Linking dynamic library: ../../../devel/share/codeblocks/plugins/libQtWorkbench.so
/usr/bin/ld: cannot find -lcodeblocks
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 7 seconds)
1 errors, 0 warnings

What to do with -lcodeblocks? I suppose it should be a library but I do not have even /usr/bin/ld directory. How to get it?
Title: Re: Qtworkbench
Post by: stahta01 on April 12, 2011, 10:50:59 pm
What to do with -lcodeblocks? I suppose it should be a library but I do not have even /usr/bin/ld directory. How to get it?

Compile Code::Blocks from source; the library codeblocks is the Code::Blocks SDK Library.
Note: There may be an CodeBlocks-dev package in your distro.

Tim S.
Title: Re: Qtworkbench
Post by: liquid on April 12, 2011, 11:14:48 pm
Thanks. I did it and got the library libQtWorkbench.so. Installing a plugin requires .cbplugin file. How to go further?
Title: Re: Qtworkbench
Post by: stahta01 on April 13, 2011, 12:14:50 am
I would try the "update" script if one exists; should be done with Code::Blocks NOT running at the time.

Tim S.