My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
PluginInstallation  
How to install the plugin
Featured, Phase-Deploy
Updated Jul 13, 2009 by y.pag...@gmail.com

Installation instructions

Windows users

If you are updating from a release < 0.5 then remove all the plugin related files from your Code::Blocks installation. This can be done manually or using the uninstall plugin option from the Code::Blocks plugin manager.

Use the supplied binary plugin with the stable Code::Blocks release or a recent Code::Blocks nightly build (0.6.0 has been successfully installed in Feb 13 2008 night build): Go to Plugins->Manage Plugins->Install New and select the file you downloaded. The plugin should be immediately available. For now binary releases are only provided for Windows, do not use the binary distribution of the plugin in a linux installation of Code::Blocks.

Linux Users

Setting up you build environment:

Before continuing you must make sure that you have setup your build environment in a way that you can actually build Code::Blocks from sources. This is well documented in the Code::Blocks wiki. Please take the time to check if the requirements to build Code::Blocks are met. Don't follow the whole process of building Code::Blocks, just make sure that you have installed the prerequisites (wxWidgets - wxGTK, preferably version 2.8.4) on your linux distribution.

Long story short:

svn checkout svn://svn.berlios.de/codeblocks/trunk codeblocks
cd codeblocks/
wget http://qtworkbench.googlecode.com/files/QtWorkbench-src-0.5.1.tar.gz
tar zxf QtWorkbench-src-0.5.1.tar.gz
patch --unified --strip=0 --forward --input=qtworkbench.patch
./bootstrap
./configure --prefix=/opt/codeblocks-svn --with-contrib-plugins=qtworkbench
make
sudo make install
/opt/codeblocks-svn/bin/codeblocks

Step by step explanation:

  • svn checkout svn://svn.berlios.de/codeblocks/trunk codeblocks will get you a fresh copy of the Code::Blocks sources from the project's source repository.
  • cd codeblocks/ we change our working directory to the one we downloaded the Code::Blocks sources in.
  • wget http://qtworkbench.googlecode.com/files/QtWorkbench-src-0.5.1.tar.gz we download (you will need to have wget installed something that is generally true for a typical linux installation) the QtWorkbench sources for release 0.5.1 along with a patch to the Code::Blocks build process that enables building QtWorkbench
  • tar zxf QtWorkbench-src-0.5.1.tar.gz we unarchive the sources
  • patch --unified --strip=0 --forward --input=qtworkbench.patch we apply the patch to the Code::Blocks build process
  • ./bootstrap we start the typical Code::Blocks build process
  • ./configure --prefix=/opt/codeblocks-svn --with-contrib-plugins=qtworkbench we configure the Code::Blocks build process to: a) install Code::Blocks under /opt/codeblocks-svn and b) build QtWorkbench (suggested to replace --with-contrib-plugins=qtworkbench with --with-contrib-plugins=all in order to enjoy all the contributed Code::Blocks plugins)
  • make builds everything (will take a while so be patient)
  • sudo make install installs to wherever --prefix points to when we invoked ./configure
  • /opt/codeblocks-svn/bin/codeblocks runs our shiny new Code::Blocks installation, with QtWorkbench included.
Comment by mbergman...@gmx.de, Feb 5, 2008

This refuses work for me! I installed and compiled everything, like described above, on an OpenSuSE 10.3-64Bit system with wxGTK 2.8.4, compiling went ok after correcting an int-declared function within code:blocks (should have been "bool"). Installing is also ok. But when firing up codeblocks, I don't have qtworkbench, neither listet under "plugins", nor under "Settings -> Environment..." Don't know waht's wrong - any ideas?

Comment by jeroen....@gmail.com, Jul 21, 2008

I can't get even the patch to work. I always get a bunch of errors that say certain "hunks" failed.

Comment by jeroen....@gmail.com, Jul 21, 2008

I've been able to install correctly by applying the patch manually. It seems the line numbers don't match with the ones from the most recent files anymore.

Comment by oscar.y...@gmail.com, Oct 14, 2008

Here's my story:

(i) I had to apply the patch manually (only three files are modified), confirming what the previous post has commented. (ii) While ./configure ran smoothly after that, the build (make) crashed when compiling the file ./src/tools/cb_share_config/mainframe.cpp, due to a version conflict with wxFD_HIDE_READONLY (line 438). I commented that out (I'm unaware of side effects) and the build completed. (iii) Now I have to learn to use the plugin ... =) (at least it shows in the plugin config dialog).

If you need the patched files email me (oscar dot yasu at gmail dot com)

Comment by oscar.y...@gmail.com, Oct 14, 2008

Quick update: works like a charm !

Comment by dragon.d...@gmail.com, Oct 17, 2008

configure: SVN revision 1.0svn5273 (2008-10-15 15:47:34) configure: error: conditional "BUILD_QTWORKBENCH" was never defined. Usually this means the macro was only invoked conditionally.

Comment by BJRowlet...@gmail.com, Nov 21, 2008

The Codeblocks SVN has since been updated, while this plugin has not. As far as I know, downloading the Codeblocks source (v8.02) from Codeblock's official site, and using this plugin, will work.

Comment by sebs...@gmail.com, Jun 11, 2009

Hello everybody, I need help to install this plugin. I'm working under ubuntu 9.04. I have wxGTK and wxWidgets already installed. By taping this command : patch --unified --strip=0 --forward --input=qtworkbench.patch

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 71. Hunk #3 FAILED at 88. 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 238. Hunk #3 FAILED at 253. Hunk #4 succeeded at 225 with fuzz 2 (offset -80 lines). Hunk #5 FAILED at 251. 4 out of 5 hunks FAILED -- saving rejects to file acinclude.m4.rej

Somebody can help me please??


Sign in to add a comment
Powered by Google Project Hosting