News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Qtworkbench

Started by liquid, April 06, 2011, 09:52:46 AM

Previous topic - Next topic

liquid

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


MortenMacFly

Quote from: liquid on April 06, 2011, 09:52:46 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

And if you have to use the automake-system, you have to apply the patches manually.
This should be not too hard.

liquid

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?

stahta01

Quote from: liquid on April 12, 2011, 10:40:00 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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

liquid

Thanks. I did it and got the library libQtWorkbench.so. Installing a plugin requires .cbplugin file. How to go further?

stahta01

I would try the "update" script if one exists; should be done with Code::Blocks NOT running at the time.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]