My favorites | Sign in
Project Logo
                
Search
for
Updated Jul 13, 2009 by y.pagles
Labels: Featured, Phase-Deploy
PluginInstallation  
How to install the plugin

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:


Comment by mbergman...@gmx.de, Feb 05, 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 credoand...@hotmail.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 credoand...@hotmail.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.yasu, 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.yasu, Oct 14, 2008

Quick update: works like a charm !

Comment by dragon.djanic, 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 BJRowlett1205, 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 sebsy.s, 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
Hosted by Google Code