<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=D1mk4</id>
	<title>Code::Blocks - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=D1mk4"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/D1mk4"/>
	<updated>2026-04-21T14:41:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=4527</id>
		<title>Installing Code::Blocks from source on Gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=4527"/>
		<updated>2007-03-31T09:54:10Z</updated>

		<summary type="html">&lt;p&gt;D1mk4: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Installing Code::Blocks]]&lt;br /&gt;
[[Category: Installing Code::Blocks from source]]&lt;br /&gt;
== Current Code::Blocks Compilation Methods for Gentoo ==&lt;br /&gt;
&lt;br /&gt;
=== Subversion Portage Overlay ===&lt;br /&gt;
The current suggested method for emerging Code::Blocks is through the use of custom Ebuilds. The most prominently known portage overlay for the ebuilds is located here: [http://forums.gentoo.org/viewtopic-t-440412.html Gentoo Forums Code::Blocks Portage Overlay]&lt;br /&gt;
&lt;br /&gt;
To create an overlay, please read [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
=== Create your own overlay ===&lt;br /&gt;
Another method of pulling together your own Ebuilds and creating your own portage overlay is to view the bug report for adding Code::Blocks to portage. [http://bugs.gentoo.org/show_bug.cgi?id=89533 Gentoo Code::Blocks Package Suggestion]&lt;br /&gt;
&lt;br /&gt;
== Preparing Code::Blocks from Source (For 1.0rc2) ==&lt;br /&gt;
&lt;br /&gt;
'''WORK IN PROGRESS'''&lt;br /&gt;
&lt;br /&gt;
( Note: This is non-official and unverified.  It worked for me, but... )&lt;br /&gt;
&lt;br /&gt;
===Prepare Libraries===&lt;br /&gt;
&lt;br /&gt;
Code::Blocks uses the wxWidgets (http://www.wxwindows.org/) library for its GUI. wxWidgets in turn uses GTK+ (http://www.gtk.org/). GTK+ is the library which GNOME desktop uses, but GNOME is not required to use it. In fact, odds are very good that if you have a number of GUI programs installed, you already have it. wxWidgets is also very common, if slightly less so. &lt;br /&gt;
&lt;br /&gt;
You need to compile the wxGTK package with the following use flag:&lt;br /&gt;
&lt;br /&gt;
 +gtk2 &lt;br /&gt;
&lt;br /&gt;
The best way of getting this done is by adding a line to /etc/portage/package.use and recompiling wxGTK :&lt;br /&gt;
&lt;br /&gt;
 # echo x11-libs/wxGTK gtk2  &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
 # emerge wxGTK&lt;br /&gt;
&lt;br /&gt;
Note: Code::Blocks now works fine with Unicode. So you might want to build wxGTK with +unicode flag.&lt;br /&gt;
&lt;br /&gt;
===Get the source code===&lt;br /&gt;
&lt;br /&gt;
For this you have 2 options:&lt;br /&gt;
&lt;br /&gt;
====Option 1: Download a source tarball.====&lt;br /&gt;
&lt;br /&gt;
This is easy and means you have an easily-reproduced source set.&lt;br /&gt;
&lt;br /&gt;
1) '''Download a source tarball''' from [http://sourceforge.net/project/showfiles.php?group_id=126998&amp;amp;package_id=142469 The Download Section of CodeBlocks.org]&lt;br /&gt;
&lt;br /&gt;
2) '''Extract it'''. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however. This should create a codeblocks-1.0rc2 ( or similar ) folder.&lt;br /&gt;
&lt;br /&gt;
====Option 2: Fetch from SVN====&lt;br /&gt;
&lt;br /&gt;
This is not signifigantly harder and means you have a more up-to-date version of the source code.  Usually this means more features and different bugs, which might be more or less annoying.&lt;br /&gt;
&lt;br /&gt;
1) '''Install the SVN client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/subversion&lt;br /&gt;
&lt;br /&gt;
2) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that SVN will create a codeblocks directory for you. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however.&lt;br /&gt;
 # cd /usr/local/src&lt;br /&gt;
The following command fetches the source from the SVN server :&lt;br /&gt;
 # svn checkout svn://svn.berlios.de/codeblocks/trunk&lt;br /&gt;
&lt;br /&gt;
===Compile the Code===&lt;br /&gt;
&lt;br /&gt;
1) '''cd to codeblocks directory'''.  Following our example, from CVS this would be /usr/local/src/codeblocks; from a tarball, something like /usr/local/src/codeblocks-1.0rc2 :&lt;br /&gt;
 # cd /usr/local/src/codeblocks&lt;br /&gt;
or&lt;br /&gt;
 # cd /usr/local/src/codeblocks-1.0rc2&lt;br /&gt;
&lt;br /&gt;
2) '''bootstrap'''. The very first time you unpack the source (or checkout from CVS), you need to run ./bootstrap. This will create a sane building environment.&lt;br /&gt;
 # ./bootstrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootstrap again.&lt;br /&gt;
 # find . -type f -and -not -name &amp;quot;*.cpp&amp;quot; -and -not -name &amp;quot;*.h&amp;quot; -and -not -name &amp;quot;*.png&amp;quot; -and -not -name &amp;quot;*.bmp&amp;quot; | sed &amp;quot;s/.*/\&amp;quot;\\0\&amp;quot;/&amp;quot; | xargs dos2unix&lt;br /&gt;
&lt;br /&gt;
3) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ./configure&lt;br /&gt;
&lt;br /&gt;
4) '''make and make install'''.&lt;br /&gt;
 # make&lt;br /&gt;
 # sudo make install&lt;br /&gt;
&lt;br /&gt;
===More===&lt;br /&gt;
&lt;br /&gt;
to come&lt;br /&gt;
&lt;br /&gt;
To run Code::Blocks:&lt;br /&gt;
 # codeblocks&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
[https://www.codeblocks.org/index.php?name=PNphpBB2&amp;amp;file=viewtopic&amp;amp;t=29 Linux releases or compiling on Linux] from the forum&lt;br /&gt;
&lt;br /&gt;
[https://www.codeblocks.org/source_code.shtml Code::Blocks : SVN access instructions]&lt;br /&gt;
&lt;br /&gt;
===Credits===&lt;br /&gt;
&lt;br /&gt;
First version author: me22 ( me22.ca@gmail.com )&lt;br /&gt;
Some changes: sleipner ( themacgyver@gmail.com )&lt;br /&gt;
More updating: Crzysdrs&lt;br /&gt;
And more updating: d1mk4 ( d1mk4nah@gmail.com )&lt;/div&gt;</summary>
		<author><name>D1mk4</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=4526</id>
		<title>Installing Code::Blocks from source on Gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=4526"/>
		<updated>2007-03-31T00:00:32Z</updated>

		<summary type="html">&lt;p&gt;D1mk4: /* Credits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Installing Code::Blocks]]&lt;br /&gt;
[[Category: Installing Code::Blocks from source]]&lt;br /&gt;
== Current Code::Blocks Compilation Methods for Gentoo ==&lt;br /&gt;
&lt;br /&gt;
=== Subversion Portage Overlay ===&lt;br /&gt;
The current suggested method for emerging Code::Blocks is through the use of custom Ebuilds. The most prominently known portage overlay for the ebuilds is located here: [http://forums.gentoo.org/viewtopic-t-440412.html Gentoo Forums Code::Blocks Portage Overlay]&lt;br /&gt;
&lt;br /&gt;
To create an overlay, please read [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
=== Create your own overlay ===&lt;br /&gt;
Another method of pulling together your own Ebuilds and creating your own portage overlay is to view the bug report for adding Code::Blocks to portage. [http://bugs.gentoo.org/show_bug.cgi?id=89533 Gentoo Code::Blocks Package Suggestion]&lt;br /&gt;
&lt;br /&gt;
== Preparing Code::Blocks from Source (For 1.0rc2) ==&lt;br /&gt;
&lt;br /&gt;
'''WORK IN PROGRESS'''&lt;br /&gt;
&lt;br /&gt;
( Note: This is non-official and unverified.  It worked for me, but... )&lt;br /&gt;
&lt;br /&gt;
===Prepare Libraries===&lt;br /&gt;
&lt;br /&gt;
Code::Blocks uses the wxWidgets (http://www.wxwindows.org/) library for its GUI. wxWidgets in turn uses GTK+ (http://www.gtk.org/). GTK+ is the library which GNOME desktop uses, but GNOME is not required to use it. In fact, odds are very good that if you have a number of GUI programs installed, you already have it. wxWidgets is also very common, if slightly less so. &lt;br /&gt;
&lt;br /&gt;
You need to compile the wxGTK package with the following use flag:&lt;br /&gt;
&lt;br /&gt;
 +gtk2 &lt;br /&gt;
&lt;br /&gt;
The best way of getting this done is by adding a line to /etc/portage/package.use and recompiling wxGTK :&lt;br /&gt;
&lt;br /&gt;
 # echo x11-libs/wxGTK gtk2  &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
 # emerge wxGTK&lt;br /&gt;
&lt;br /&gt;
Note: Code::Blocks now works fine with Unicode. So you might want to build wxGTK with +unicode flag.&lt;br /&gt;
&lt;br /&gt;
===Get the source code===&lt;br /&gt;
&lt;br /&gt;
For this you have 2 options:&lt;br /&gt;
&lt;br /&gt;
====Option 1: Download a source tarball.====&lt;br /&gt;
&lt;br /&gt;
This is easy and means you have an easily-reproduced source set.&lt;br /&gt;
&lt;br /&gt;
1) '''Download a source tarball''' from [http://sourceforge.net/project/showfiles.php?group_id=126998&amp;amp;package_id=142469 The Download Section of CodeBlocks.org]&lt;br /&gt;
&lt;br /&gt;
2) '''Extract it'''. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however. This should create a codeblocks-1.0rc2 ( or similar ) folder.&lt;br /&gt;
&lt;br /&gt;
====Option 2: Fetch from SVN====&lt;br /&gt;
&lt;br /&gt;
This is not signifigantly harder and means you have a more up-to-date version of the source code.  Usually this means more features and different bugs, which might be more or less annoying.&lt;br /&gt;
&lt;br /&gt;
1) '''Install the SVN client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/subversion&lt;br /&gt;
&lt;br /&gt;
2) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that SVN will create a codeblocks directory for you. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however.&lt;br /&gt;
 # cd /usr/local/src&lt;br /&gt;
The following command fetches the source from the SVN server :&lt;br /&gt;
 # svn checkout svn://svn.berlios.de/codeblocks/trunk&lt;br /&gt;
&lt;br /&gt;
===Compile the Code===&lt;br /&gt;
&lt;br /&gt;
1) '''cd to codeblocks directory'''.  Following our example, from CVS this would be /usr/local/src/codeblocks; from a tarball, something like /usr/local/src/codeblocks-1.0rc2 :&lt;br /&gt;
 # cd /usr/local/src/codeblocks&lt;br /&gt;
or&lt;br /&gt;
 # cd /usr/local/src/codeblocks-1.0rc2&lt;br /&gt;
&lt;br /&gt;
2) '''bootstrap'''. The very first time you unpack the source (or checkout from CVS), you need to run ./bootstrap. This will create a sane building environment.&lt;br /&gt;
 # ./bootstrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootstrap again.&lt;br /&gt;
 # find . -type f -and -not -name &amp;quot;*.cpp&amp;quot; -and -not -name &amp;quot;*.h&amp;quot; -and -not -name &amp;quot;*.png&amp;quot; -and -not -name &amp;quot;*.bmp&amp;quot; | sed &amp;quot;s/.*/\&amp;quot;\\0\&amp;quot;/&amp;quot; | xargs dos2unix&lt;br /&gt;
&lt;br /&gt;
3) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ./configure&lt;br /&gt;
&lt;br /&gt;
4) '''make and make install'''.&lt;br /&gt;
 # make&lt;br /&gt;
 # sudo make install&lt;br /&gt;
&lt;br /&gt;
===More===&lt;br /&gt;
&lt;br /&gt;
to come&lt;br /&gt;
&lt;br /&gt;
To run Code::Blocks:&lt;br /&gt;
 # codeblocks&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
[https://www.codeblocks.org/index.php?name=PNphpBB2&amp;amp;file=viewtopic&amp;amp;t=29 Linux releases or compiling on Linux] from the forum&lt;br /&gt;
&lt;br /&gt;
[http://sourceforge.net/cvs/?group_id=126998 Code::Blocks : CVS access instructions (CB developers are not using it)]&lt;br /&gt;
&lt;br /&gt;
[http://sourceforge.net/docman/display_doc.php?docid=14033&amp;amp;group_id=1 Basic Introduction to CVS and SourceForge.net (SF.net) Project CVS Services (CB developers are not using it)]&lt;br /&gt;
&lt;br /&gt;
[https://www.codeblocks.org/source_code.shtml Code::Blocks : SVN access instructions]&lt;br /&gt;
&lt;br /&gt;
===Credits===&lt;br /&gt;
&lt;br /&gt;
First version author: me22 ( me22.ca@gmail.com )&lt;br /&gt;
Some changes: sleipner ( themacgyver@gmail.com )&lt;br /&gt;
More updating: Crzysdrs&lt;br /&gt;
And more updating: d1mk4 ( d1mk4nah@gmail.com )&lt;/div&gt;</summary>
		<author><name>D1mk4</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=4525</id>
		<title>Installing Code::Blocks from source on Gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=4525"/>
		<updated>2007-03-30T23:59:19Z</updated>

		<summary type="html">&lt;p&gt;D1mk4: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Installing Code::Blocks]]&lt;br /&gt;
[[Category: Installing Code::Blocks from source]]&lt;br /&gt;
== Current Code::Blocks Compilation Methods for Gentoo ==&lt;br /&gt;
&lt;br /&gt;
=== Subversion Portage Overlay ===&lt;br /&gt;
The current suggested method for emerging Code::Blocks is through the use of custom Ebuilds. The most prominently known portage overlay for the ebuilds is located here: [http://forums.gentoo.org/viewtopic-t-440412.html Gentoo Forums Code::Blocks Portage Overlay]&lt;br /&gt;
&lt;br /&gt;
To create an overlay, please read [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
=== Create your own overlay ===&lt;br /&gt;
Another method of pulling together your own Ebuilds and creating your own portage overlay is to view the bug report for adding Code::Blocks to portage. [http://bugs.gentoo.org/show_bug.cgi?id=89533 Gentoo Code::Blocks Package Suggestion]&lt;br /&gt;
&lt;br /&gt;
== Preparing Code::Blocks from Source (For 1.0rc2) ==&lt;br /&gt;
&lt;br /&gt;
'''WORK IN PROGRESS'''&lt;br /&gt;
&lt;br /&gt;
( Note: This is non-official and unverified.  It worked for me, but... )&lt;br /&gt;
&lt;br /&gt;
===Prepare Libraries===&lt;br /&gt;
&lt;br /&gt;
Code::Blocks uses the wxWidgets (http://www.wxwindows.org/) library for its GUI. wxWidgets in turn uses GTK+ (http://www.gtk.org/). GTK+ is the library which GNOME desktop uses, but GNOME is not required to use it. In fact, odds are very good that if you have a number of GUI programs installed, you already have it. wxWidgets is also very common, if slightly less so. &lt;br /&gt;
&lt;br /&gt;
You need to compile the wxGTK package with the following use flag:&lt;br /&gt;
&lt;br /&gt;
 +gtk2 &lt;br /&gt;
&lt;br /&gt;
The best way of getting this done is by adding a line to /etc/portage/package.use and recompiling wxGTK :&lt;br /&gt;
&lt;br /&gt;
 # echo x11-libs/wxGTK gtk2  &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
 # emerge wxGTK&lt;br /&gt;
&lt;br /&gt;
Note: Code::Blocks now works fine with Unicode. So you might want to build wxGTK with +unicode flag.&lt;br /&gt;
&lt;br /&gt;
===Get the source code===&lt;br /&gt;
&lt;br /&gt;
For this you have 2 options:&lt;br /&gt;
&lt;br /&gt;
====Option 1: Download a source tarball.====&lt;br /&gt;
&lt;br /&gt;
This is easy and means you have an easily-reproduced source set.&lt;br /&gt;
&lt;br /&gt;
1) '''Download a source tarball''' from [http://sourceforge.net/project/showfiles.php?group_id=126998&amp;amp;package_id=142469 The Download Section of CodeBlocks.org]&lt;br /&gt;
&lt;br /&gt;
2) '''Extract it'''. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however. This should create a codeblocks-1.0rc2 ( or similar ) folder.&lt;br /&gt;
&lt;br /&gt;
====Option 2: Fetch from SVN====&lt;br /&gt;
&lt;br /&gt;
This is not signifigantly harder and means you have a more up-to-date version of the source code.  Usually this means more features and different bugs, which might be more or less annoying.&lt;br /&gt;
&lt;br /&gt;
1) '''Install the SVN client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/subversion&lt;br /&gt;
&lt;br /&gt;
2) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that SVN will create a codeblocks directory for you. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however.&lt;br /&gt;
 # cd /usr/local/src&lt;br /&gt;
The following command fetches the source from the SVN server :&lt;br /&gt;
 # svn checkout svn://svn.berlios.de/codeblocks/trunk&lt;br /&gt;
&lt;br /&gt;
===Compile the Code===&lt;br /&gt;
&lt;br /&gt;
1) '''cd to codeblocks directory'''.  Following our example, from CVS this would be /usr/local/src/codeblocks; from a tarball, something like /usr/local/src/codeblocks-1.0rc2 :&lt;br /&gt;
 # cd /usr/local/src/codeblocks&lt;br /&gt;
or&lt;br /&gt;
 # cd /usr/local/src/codeblocks-1.0rc2&lt;br /&gt;
&lt;br /&gt;
2) '''bootstrap'''. The very first time you unpack the source (or checkout from CVS), you need to run ./bootstrap. This will create a sane building environment.&lt;br /&gt;
 # ./bootstrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootstrap again.&lt;br /&gt;
 # find . -type f -and -not -name &amp;quot;*.cpp&amp;quot; -and -not -name &amp;quot;*.h&amp;quot; -and -not -name &amp;quot;*.png&amp;quot; -and -not -name &amp;quot;*.bmp&amp;quot; | sed &amp;quot;s/.*/\&amp;quot;\\0\&amp;quot;/&amp;quot; | xargs dos2unix&lt;br /&gt;
&lt;br /&gt;
3) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ./configure&lt;br /&gt;
&lt;br /&gt;
4) '''make and make install'''.&lt;br /&gt;
 # make&lt;br /&gt;
 # sudo make install&lt;br /&gt;
&lt;br /&gt;
===More===&lt;br /&gt;
&lt;br /&gt;
to come&lt;br /&gt;
&lt;br /&gt;
To run Code::Blocks:&lt;br /&gt;
 # codeblocks&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
[https://www.codeblocks.org/index.php?name=PNphpBB2&amp;amp;file=viewtopic&amp;amp;t=29 Linux releases or compiling on Linux] from the forum&lt;br /&gt;
&lt;br /&gt;
[http://sourceforge.net/cvs/?group_id=126998 Code::Blocks : CVS access instructions (CB developers are not using it)]&lt;br /&gt;
&lt;br /&gt;
[http://sourceforge.net/docman/display_doc.php?docid=14033&amp;amp;group_id=1 Basic Introduction to CVS and SourceForge.net (SF.net) Project CVS Services (CB developers are not using it)]&lt;br /&gt;
&lt;br /&gt;
[https://www.codeblocks.org/source_code.shtml Code::Blocks : SVN access instructions]&lt;br /&gt;
&lt;br /&gt;
===Credits===&lt;br /&gt;
&lt;br /&gt;
First version author: me22 ( me22.ca@gmail.com )&lt;br /&gt;
Some changes: sleipner ( themacgyver@gmail.com )&lt;br /&gt;
More updating: Crzysdrs&lt;/div&gt;</summary>
		<author><name>D1mk4</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=4524</id>
		<title>Installing Code::Blocks from source on Gentoo</title>
		<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=4524"/>
		<updated>2007-03-30T23:55:24Z</updated>

		<summary type="html">&lt;p&gt;D1mk4: /* Option 2: Fetch from SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Installing Code::Blocks]]&lt;br /&gt;
[[Category: Installing Code::Blocks from source]]&lt;br /&gt;
== Current Code::Blocks Compilation Methods for Gentoo ==&lt;br /&gt;
&lt;br /&gt;
=== Subversion Portage Overlay ===&lt;br /&gt;
The current suggested method for emerging Code::Blocks is through the use of custom Ebuilds. The most prominently known portage overlay for the ebuilds is located here: [http://forums.gentoo.org/viewtopic-t-440412.html Gentoo Forums Code::Blocks Portage Overlay]&lt;br /&gt;
&lt;br /&gt;
To create an overlay, please read [http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds HOWTO Installing 3rd Party Ebuilds]&lt;br /&gt;
&lt;br /&gt;
=== Create your own overlay ===&lt;br /&gt;
Another method of pulling together your own Ebuilds and creating your own portage overlay is to view the bug report for adding Code::Blocks to portage. [http://bugs.gentoo.org/show_bug.cgi?id=89533 Gentoo Code::Blocks Package Suggestion]&lt;br /&gt;
&lt;br /&gt;
== Preparing Code::Blocks from Source (For 1.0rc2) ==&lt;br /&gt;
&lt;br /&gt;
'''WORK IN PROGRESS'''&lt;br /&gt;
&lt;br /&gt;
( Note: This is non-official and unverified.  It worked for me, but... )&lt;br /&gt;
&lt;br /&gt;
===Prepare Libraries===&lt;br /&gt;
&lt;br /&gt;
Code::Blocks uses the wxWidgets (http://www.wxwindows.org/) library for its GUI. wxWidgets in turn uses GTK+ (http://www.gtk.org/). GTK+ is the library which GNOME desktop uses, but GNOME is not required to use it. In fact, odds are very good that if you have a number of GUI programs installed, you already have it. wxWidgets is also very common, if slightly less so. &lt;br /&gt;
&lt;br /&gt;
You need to compile the wxGTK package with the following use flag:&lt;br /&gt;
&lt;br /&gt;
 +gtk2 &lt;br /&gt;
&lt;br /&gt;
The best way of getting this done is by adding a line to /etc/portage/package.use and recompiling wxGTK :&lt;br /&gt;
&lt;br /&gt;
 # echo x11-libs/wxGTK gtk2  &amp;gt;&amp;gt; /etc/portage/package.use&lt;br /&gt;
 # emerge wxGTK&lt;br /&gt;
&lt;br /&gt;
Note: Code::Blocks now works fine with Unicode. So you might want to build wxGTK with +unicode flag.&lt;br /&gt;
&lt;br /&gt;
===Get the source code===&lt;br /&gt;
&lt;br /&gt;
For this you have 2 options:&lt;br /&gt;
&lt;br /&gt;
====Option 1: Download a source tarball.====&lt;br /&gt;
&lt;br /&gt;
This is easy and means you have an easily-reproduced source set.&lt;br /&gt;
&lt;br /&gt;
1) '''Download a source tarball''' from [http://sourceforge.net/project/showfiles.php?group_id=126998&amp;amp;package_id=142469 The Download Section of CodeBlocks.org]&lt;br /&gt;
&lt;br /&gt;
2) '''Extract it'''. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however. This should create a codeblocks-1.0rc2 ( or similar ) folder.&lt;br /&gt;
&lt;br /&gt;
====Option 2: Fetch from SVN====&lt;br /&gt;
&lt;br /&gt;
This is not signifigantly harder and means you have a more up-to-date version of the source code.  Usually this means more features and different bugs, which might be more or less annoying.&lt;br /&gt;
&lt;br /&gt;
1) '''Install the SVN client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/subversion&lt;br /&gt;
&lt;br /&gt;
2) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that SVN will create a codeblocks directory for you. For this tutorial, I'm going to assume that you're installing as root, so /usr/local/src is a good pick. Any location is fine, however.&lt;br /&gt;
 # cd /usr/local/src&lt;br /&gt;
The following command fetches the source from the SVN server :&lt;br /&gt;
 # svn checkout svn://svn.berlios.de/codeblocks/trunk&lt;br /&gt;
&lt;br /&gt;
===Compile the Code===&lt;br /&gt;
&lt;br /&gt;
1) '''cd to codeblocks directory'''.  Following our example, from CVS this would be /usr/local/src/codeblocks; from a tarball, something like /usr/local/src/codeblocks-1.0rc2 :&lt;br /&gt;
 # cd /usr/local/src/codeblocks&lt;br /&gt;
or&lt;br /&gt;
 # cd /usr/local/src/codeblocks-1.0rc2&lt;br /&gt;
&lt;br /&gt;
2) '''bootstrap'''. The very first time you unpack the source (or checkout from CVS), you need to run ./bootstrap. This will create a sane building environment.&lt;br /&gt;
 # ./bootstrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootstrap again.&lt;br /&gt;
 # find . -type f -and -not -name &amp;quot;*.cpp&amp;quot; -and -not -name &amp;quot;*.h&amp;quot; -and -not -name &amp;quot;*.png&amp;quot; -and -not -name &amp;quot;*.bmp&amp;quot; | sed &amp;quot;s/.*/\&amp;quot;\\0\&amp;quot;/&amp;quot; | xargs dos2unix&lt;br /&gt;
&lt;br /&gt;
3) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ./configure&lt;br /&gt;
&lt;br /&gt;
4) '''make and make install'''.&lt;br /&gt;
 # make&lt;br /&gt;
 # sudo make install&lt;br /&gt;
&lt;br /&gt;
===More===&lt;br /&gt;
&lt;br /&gt;
to come&lt;br /&gt;
&lt;br /&gt;
To run Code::Blocks:&lt;br /&gt;
 # codeblocks&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
&lt;br /&gt;
[https://www.codeblocks.org/index.php?name=PNphpBB2&amp;amp;file=viewtopic&amp;amp;t=29 Linux releases or compiling on Linux] from the forum&lt;br /&gt;
&lt;br /&gt;
[http://sourceforge.net/cvs/?group_id=126998 Code::Blocks : CVS access instructions]&lt;br /&gt;
&lt;br /&gt;
[http://sourceforge.net/docman/display_doc.php?docid=14033&amp;amp;group_id=1 Basic Introduction to CVS and SourceForge.net (SF.net) Project CVS Services]&lt;br /&gt;
&lt;br /&gt;
===Credits===&lt;br /&gt;
&lt;br /&gt;
First version author: me22 ( me22.ca@gmail.com )&lt;br /&gt;
Some changes: sleipner ( themacgyver@gmail.com )&lt;br /&gt;
More updating: Crzysdrs&lt;/div&gt;</summary>
		<author><name>D1mk4</name></author>
	</entry>
</feed>