Difference between revisions of "Installing Code::Blocks nightly build on Ubuntu"

From Code::Blocks
m (moved from another article)
 
(Added how to install wxWidgets 2.8.4)
Line 1: Line 1:
 
[[Category:Installing Code::Blocks]]
 
[[Category:Installing Code::Blocks]]
 
[[Category:Installing Code::Blocks nightly build]]
 
[[Category:Installing Code::Blocks nightly build]]
This is a quick guide to get Code::Blocks up and running on your ubuntu based Linux distribution. It is also going to make sure you can develop wxWidgets applications on your box as well. Look at the bottom of this guide for a complete command line that will install all the packages in one operation.
+
This is a quick guide to get Code::Blocks up and running on your Ubuntu based Linux distribution. It is also going to make sure you can develop wxWidgets applications on your box as well. Look at the bottom of this guide for a complete command line that will install all the packages in one operation.
  
1. Get the latest nigtly build of Code::Blocks from the [/index.php?board=20.0 nightly builds forum].
+
First be sure you have the necessary software to compile and debug programs.
 
 
2. Install Code::Blocks.
 
sudo dpkg -i <Name_Of_Daily_Build.deb>
 
  
3. Install the compiler.
+
1. Install the compiler.
 
  sudo apt-get install build-essential
 
  sudo apt-get install build-essential
  
4. Install the debugger.
+
2. Install the debugger.
 
  sudo apt-get install gdb
 
  sudo apt-get install gdb
  
5. Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks)
+
You'll need to install wxWidgets to use Codeblocks. Revisions prior to revision 4051 use wxWidgets 2.6 and revisions from 4051 and after use wxWidgets 2.8.4. If you want to install a revision prior to revision 4051, make sure you have your universe and multiverse [https://help.ubuntu.com/ubuntu/desktopguide/C/extra-repositories.html repositories enabled] and install the following packages.
 +
 
 +
1. Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks)
 
  sudo apt-get install libwxgtk2.6-0
 
  sudo apt-get install libwxgtk2.6-0
  
6. Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.)
+
2. Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.)
 
  sudo apt-get install libwxgtk2.6-dev wx2.6-headers wx-common
 
  sudo apt-get install libwxgtk2.6-dev wx2.6-headers wx-common
  
7. ''(OPTIONAL)'' Install the wxWidgets documentation.
+
3. ''(OPTIONAL)'' Install the wxWidgets documentation.
 
  sudo apt-get install wx2.6-doc
 
  sudo apt-get install wx2.6-doc
 +
 +
 +
To install wxWidgets 2.8.4 you need to be using Ubuntu 6.10 (Edgy Eft) or Ubuntu 7.04 (Feisty Fawn) and you need to add the wxWidget repository to your sources.list.
 +
 +
1. Backup your current sources.list first for precaution.
 +
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
 +
 +
2. Open your sources.list in a text editor to edit it.
 +
gksudo gedit /etc/apt/sources.list
 +
 +
3. Add the correct repository for the Ubuntu version you are running to the end of the file.
 +
deb http://apt.tt-solutions.com/ubuntu/ edgy main
 +
or
 +
deb http://apt.tt-solutions.com/ubuntu/ feisty main
 +
 +
4. Save and close the file.
 +
 +
5. Add the key for tt-solutions.com.
 +
wget http://www.tt-solutions.com/vz/key.asc
 +
 +
sudo apt-key add key.asc
 +
 +
6. Update your sources.list and run upgrade to make sure everything is up-to-date.
 +
sudo apt-get update
 +
 +
sudo apt-get dist-upgrade
 +
 +
7. Now you're finally ready to install wxWidgets 2.8.4.
 +
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common
 +
 +
Now go get the nightly build and install it. All dependencies should now be met.
 +
 +
1. Get the latest nigtly build of Code::Blocks from the [/index.php?board=20.0 nightly builds forum].
 +
 +
2. Install Code::Blocks.
 +
sudo dpkg -i <Name_Of_Daily_Build.deb>
  
  
Line 27: Line 62:
  
  
NOTE: Here is a complete command line for steps 3 - 7. Watch for word wrap.
+
NOTE: Here is a complete command line for the above steps. Watch for word wrap. Replace wx2.6 with wx2.8 when needed.
  
 
  sudo apt-get install build-essential gdb libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx2.6-doc wx-common
 
  sudo apt-get install build-essential gdb libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx2.6-doc wx-common

Revision as of 13:46, 8 June 2007

This is a quick guide to get Code::Blocks up and running on your Ubuntu based Linux distribution. It is also going to make sure you can develop wxWidgets applications on your box as well. Look at the bottom of this guide for a complete command line that will install all the packages in one operation.

First be sure you have the necessary software to compile and debug programs.

1. Install the compiler.

sudo apt-get install build-essential

2. Install the debugger.

sudo apt-get install gdb

You'll need to install wxWidgets to use Codeblocks. Revisions prior to revision 4051 use wxWidgets 2.6 and revisions from 4051 and after use wxWidgets 2.8.4. If you want to install a revision prior to revision 4051, make sure you have your universe and multiverse repositories enabled and install the following packages.

1. Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks)

sudo apt-get install libwxgtk2.6-0

2. Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.)

sudo apt-get install libwxgtk2.6-dev wx2.6-headers wx-common

3. (OPTIONAL) Install the wxWidgets documentation.

sudo apt-get install wx2.6-doc


To install wxWidgets 2.8.4 you need to be using Ubuntu 6.10 (Edgy Eft) or Ubuntu 7.04 (Feisty Fawn) and you need to add the wxWidget repository to your sources.list.

1. Backup your current sources.list first for precaution.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2. Open your sources.list in a text editor to edit it.

gksudo gedit /etc/apt/sources.list

3. Add the correct repository for the Ubuntu version you are running to the end of the file.

deb http://apt.tt-solutions.com/ubuntu/ edgy main

or

deb http://apt.tt-solutions.com/ubuntu/ feisty main

4. Save and close the file.

5. Add the key for tt-solutions.com.

wget http://www.tt-solutions.com/vz/key.asc
sudo apt-key add key.asc

6. Update your sources.list and run upgrade to make sure everything is up-to-date.

sudo apt-get update
sudo apt-get dist-upgrade

7. Now you're finally ready to install wxWidgets 2.8.4.

sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common

Now go get the nightly build and install it. All dependencies should now be met.

1. Get the latest nigtly build of Code::Blocks from the [/index.php?board=20.0 nightly builds forum].

2. Install Code::Blocks.

sudo dpkg -i <Name_Of_Daily_Build.deb>




NOTE: Here is a complete command line for the above steps. Watch for word wrap. Replace wx2.6 with wx2.8 when needed.

sudo apt-get install build-essential gdb libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx2.6-doc wx-common


Without optional steps:

sudo apt-get install build-essential gdb libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx-common