<?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=Sleipner</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=Sleipner"/>
	<link rel="alternate" type="text/html" href="https://wiki.codeblocks.org/index.php/Special:Contributions/Sleipner"/>
	<updated>2026-05-26T13:36:47Z</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=1233</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=1233"/>
		<updated>2005-10-25T23:56:47Z</updated>

		<summary type="html">&lt;p&gt;Sleipner: /* Compile the Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= NOTE: THIS INFORMATION IS ANTIQUATED! =&lt;br /&gt;
&lt;br /&gt;
== Code::Blocks now works fine with Unicode and wx2.6, and the build system has changed ==&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 CVS====&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 CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS 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 CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&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) '''bootsrap'''. 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;
 # ./bootsrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootsrap 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;
Original Author: me22 ( me22.ca@gmail.com )&lt;br /&gt;
Some changes: sleipner ( themacgyver@gmail.com )&lt;/div&gt;</summary>
		<author><name>Sleipner</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=253</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=253"/>
		<updated>2005-10-25T23:26:09Z</updated>

		<summary type="html">&lt;p&gt;Sleipner: /* Compile the Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= NOTE: THIS INFORMATION IS ANTIQUATED! =&lt;br /&gt;
&lt;br /&gt;
== Code::Blocks now works fine with Unicode and wx2.6, and the build system has changed ==&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 CVS====&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 CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS 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 CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&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) '''bootsrap'''. 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;
 # ./bootsrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootsrap 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) '''Create directory to build Code::Blocks'''.&lt;br /&gt;
 # mkdir -p build/release&lt;br /&gt;
 # cd build/release&lt;br /&gt;
&lt;br /&gt;
4) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ../../configure&lt;br /&gt;
&lt;br /&gt;
5) '''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;
Original Author: me22 ( me22.ca@gmail.com )&lt;br /&gt;
Some changes: sleipner ( themacgyver@gmail.com )&lt;/div&gt;</summary>
		<author><name>Sleipner</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=252</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=252"/>
		<updated>2005-10-25T22:41:53Z</updated>

		<summary type="html">&lt;p&gt;Sleipner: /* Compile the Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= NOTE: THIS INFORMATION IS ANTIQUATED! =&lt;br /&gt;
&lt;br /&gt;
== Code::Blocks now works fine with Unicode and wx2.6, and the build system has changed ==&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 CVS====&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 CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS 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 CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&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) '''bootsrap'''. 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;
 # ./bootsrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootsrap again.&lt;br /&gt;
 # find . -type f -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) '''Create directory to build Code::Blocks'''.&lt;br /&gt;
 # mkdir -p build/release&lt;br /&gt;
 # cd build/release&lt;br /&gt;
&lt;br /&gt;
4) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ../../configure&lt;br /&gt;
&lt;br /&gt;
5) '''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;
Original Author: me22 ( me22.ca@gmail.com )&lt;br /&gt;
Some changes: sleipner ( themacgyver@gmail.com )&lt;/div&gt;</summary>
		<author><name>Sleipner</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=251</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=251"/>
		<updated>2005-10-25T22:32:48Z</updated>

		<summary type="html">&lt;p&gt;Sleipner: /* Credits */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= NOTE: THIS INFORMATION IS ANTIQUATED! =&lt;br /&gt;
&lt;br /&gt;
== Code::Blocks now works fine with Unicode and wx2.6, and the build system has changed ==&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 CVS====&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 CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS 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 CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&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) '''bootsreap'''. 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;
 # ./bootsrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootsrap again.&lt;br /&gt;
 # find . -type f -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) '''Create directory to build Code::Blocks'''.&lt;br /&gt;
 # mkdir -p build/release&lt;br /&gt;
 # cd build/release&lt;br /&gt;
&lt;br /&gt;
4) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ../../configure&lt;br /&gt;
&lt;br /&gt;
5) '''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;
Original Author: me22 ( me22.ca@gmail.com )&lt;br /&gt;
Some changes: sleipner ( themacgyver@gmail.com )&lt;/div&gt;</summary>
		<author><name>Sleipner</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=250</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=250"/>
		<updated>2005-10-25T22:27:59Z</updated>

		<summary type="html">&lt;p&gt;Sleipner: /* More */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= NOTE: THIS INFORMATION IS ANTIQUATED! =&lt;br /&gt;
&lt;br /&gt;
== Code::Blocks now works fine with Unicode and wx2.6, and the build system has changed ==&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 CVS====&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 CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS 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 CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&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) '''bootsreap'''. 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;
 # ./bootsrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootsrap again.&lt;br /&gt;
 # find . -type f -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) '''Create directory to build Code::Blocks'''.&lt;br /&gt;
 # mkdir -p build/release&lt;br /&gt;
 # cd build/release&lt;br /&gt;
&lt;br /&gt;
4) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ../../configure&lt;br /&gt;
&lt;br /&gt;
5) '''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;
Original Author: me22 ( me22.ca@gmail.com )&lt;/div&gt;</summary>
		<author><name>Sleipner</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=249</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=249"/>
		<updated>2005-10-25T22:27:04Z</updated>

		<summary type="html">&lt;p&gt;Sleipner: /* Compile the Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= NOTE: THIS INFORMATION IS ANTIQUATED! =&lt;br /&gt;
&lt;br /&gt;
== Code::Blocks now works fine with Unicode and wx2.6, and the build system has changed ==&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 CVS====&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 CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS 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 CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&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) '''bootsreap'''. 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;
 # ./bootsrap&lt;br /&gt;
Note: If you get weird errors here try running following command and then bootsrap again.&lt;br /&gt;
 # find . -type f -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) '''Create directory to build Code::Blocks'''.&lt;br /&gt;
 # mkdir -p build/release&lt;br /&gt;
 # cd build/release&lt;br /&gt;
&lt;br /&gt;
4) '''configure'''. Use 'configure --help' to see what things you can enable or disable.&lt;br /&gt;
 # ../../configure&lt;br /&gt;
&lt;br /&gt;
5) '''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;
For now ( assuming bash shell ):&lt;br /&gt;
 $ cd /usr/local/src/codeblocks/src/output&lt;br /&gt;
 $ LD_LIBRARY_PATH=&amp;quot;.&amp;quot; ./codeblocks.exe&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;
Original Author: me22 ( me22.ca@gmail.com )&lt;/div&gt;</summary>
		<author><name>Sleipner</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=248</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=248"/>
		<updated>2005-10-25T22:21:15Z</updated>

		<summary type="html">&lt;p&gt;Sleipner: /* Option 1: Download a source tarball. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= NOTE: THIS INFORMATION IS ANTIQUATED! =&lt;br /&gt;
&lt;br /&gt;
== Code::Blocks now works fine with Unicode and wx2.6, and the build system has changed ==&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 CVS====&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 CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS 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 CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&lt;br /&gt;
&lt;br /&gt;
===Compile the Code===&lt;br /&gt;
&lt;br /&gt;
1) '''cd to the directory with the Makefile'''.  Following our example, from CVS this would be /usr/local/src/codeblocks/src; from a tarball, something like /usr/local/src/CodeBlocks-1.0-beta5 :&lt;br /&gt;
 # cd /usr/local/src/codeblocks/src&lt;br /&gt;
 or&lt;br /&gt;
 # cd /usr/local/src/CodeBlocks-1.0-beta5&lt;br /&gt;
If neither of those works, you can always use find to look for it :&lt;br /&gt;
 # find &amp;lt;parent directory you extracted to&amp;gt; -name Makefile.unix&lt;br /&gt;
&lt;br /&gt;
2) '''Build the sources'''.  There's no configuration nessesary, just let make go to work :&lt;br /&gt;
 # make -f Makefile.unix&lt;br /&gt;
 # make -f Makefile.unix update&lt;br /&gt;
The first line does the actual compiling.  The second moves the nessesary things to the output directory, zips some resources, and performs other miscellaneous nessesary tasks.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
===More===&lt;br /&gt;
&lt;br /&gt;
to come&lt;br /&gt;
&lt;br /&gt;
For now ( assuming bash shell ):&lt;br /&gt;
 $ cd /usr/local/src/codeblocks/src/output&lt;br /&gt;
 $ LD_LIBRARY_PATH=&amp;quot;.&amp;quot; ./codeblocks.exe&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;
Original Author: me22 ( me22.ca@gmail.com )&lt;/div&gt;</summary>
		<author><name>Sleipner</name></author>
	</entry>
	<entry>
		<id>https://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Gentoo&amp;diff=247</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=247"/>
		<updated>2005-10-25T22:18:52Z</updated>

		<summary type="html">&lt;p&gt;Sleipner: /* Prepare Libraries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= NOTE: THIS INFORMATION IS ANTIQUATED! =&lt;br /&gt;
&lt;br /&gt;
== Code::Blocks now works fine with Unicode and wx2.6, and the build system has changed ==&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 [https://www.codeblocks.org/modules.php?op=modload&amp;amp;name=Downloads&amp;amp;file=index&amp;amp;req=viewsdownload&amp;amp;sid=3 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.0-beta5 ( or similar ) folder.&lt;br /&gt;
&lt;br /&gt;
====Option 2: Fetch from CVS====&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 CVS client'''.  You might have it already.  If not, this just requires the usual :&lt;br /&gt;
 # emerge dev-util/cvs&lt;br /&gt;
&lt;br /&gt;
2) '''Set the CVS root'''. Run the following command, and enter the password ''anonymous'' when asked :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks login&lt;br /&gt;
Note that simply hitting enter--not entering a password--might also work.&lt;br /&gt;
&lt;br /&gt;
3) '''Checkout a copy'''. cd to the directory you want the code to be placed in.  Note that CVS 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 CVS server :&lt;br /&gt;
 # cvs -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/codeblocks checkout codeblocks&lt;br /&gt;
&lt;br /&gt;
===Compile the Code===&lt;br /&gt;
&lt;br /&gt;
1) '''cd to the directory with the Makefile'''.  Following our example, from CVS this would be /usr/local/src/codeblocks/src; from a tarball, something like /usr/local/src/CodeBlocks-1.0-beta5 :&lt;br /&gt;
 # cd /usr/local/src/codeblocks/src&lt;br /&gt;
 or&lt;br /&gt;
 # cd /usr/local/src/CodeBlocks-1.0-beta5&lt;br /&gt;
If neither of those works, you can always use find to look for it :&lt;br /&gt;
 # find &amp;lt;parent directory you extracted to&amp;gt; -name Makefile.unix&lt;br /&gt;
&lt;br /&gt;
2) '''Build the sources'''.  There's no configuration nessesary, just let make go to work :&lt;br /&gt;
 # make -f Makefile.unix&lt;br /&gt;
 # make -f Makefile.unix update&lt;br /&gt;
The first line does the actual compiling.  The second moves the nessesary things to the output directory, zips some resources, and performs other miscellaneous nessesary tasks.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The &amp;quot;update&amp;quot; script seems to be using Dos character encoding, which will result in its failure to run on Linux. To fix this, use dos2unix:&lt;br /&gt;
 # emerge -av dos2unix&lt;br /&gt;
This will install dos2unix. Now we are ready to convert the script.&lt;br /&gt;
 # dos2unix -n update update.unix&lt;br /&gt;
 # chmod +x update.unix&lt;br /&gt;
 # ./update.unix&lt;br /&gt;
The first line converts the script character encoding, the second makes it executable and the third runs it. This trick is from a forum post by ilkapo.&lt;br /&gt;
&lt;br /&gt;
===More===&lt;br /&gt;
&lt;br /&gt;
to come&lt;br /&gt;
&lt;br /&gt;
For now ( assuming bash shell ):&lt;br /&gt;
 $ cd /usr/local/src/codeblocks/src/output&lt;br /&gt;
 $ LD_LIBRARY_PATH=&amp;quot;.&amp;quot; ./codeblocks.exe&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;
Original Author: me22 ( me22.ca@gmail.com )&lt;/div&gt;</summary>
		<author><name>Sleipner</name></author>
	</entry>
</feed>