Author Topic: Qtworkbench  (Read 5538 times)

Offline liquid

  • Single posting newcomer
  • *
  • Posts: 5
Qtworkbench
« 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. 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


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Qtworkbench
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Qtworkbench
« Reply #2 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.

Offline liquid

  • Single posting newcomer
  • *
  • Posts: 5
Re: Qtworkbench
« Reply #3 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: Qtworkbench
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline liquid

  • Single posting newcomer
  • *
  • Posts: 5
Re: Qtworkbench
« Reply #5 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: Qtworkbench
« Reply #6 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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org