Difference between revisions of "Installing Code::Blocks nightly build on Ubuntu"
m (added "sudo" to the command which add the key for tt-solution) |
(Update information (incomplete and untested, but better than nothing)) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 11: | Line 11: | ||
sudo apt-get install gdb | sudo apt-get install gdb | ||
− | You'll need to install wxWidgets to use Codeblocks | + | You'll need to install wxWidgets to use Codeblocks (support for wxWidgets < 3.0.0 has been removed). If you want to install them, 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. |
− | 3. Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks) | + | 3. Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks). The version may be different in you Ubuntu. |
− | sudo apt-get install | + | sudo apt-get install libwxgtk3.0-4 |
4. Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.) | 4. Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.) | ||
− | sudo apt-get install | + | sudo apt-get install libwxgtk3.0-dev |
5. ''(OPTIONAL)'' Install the wxWidgets documentation. | 5. ''(OPTIONAL)'' Install the wxWidgets documentation. | ||
− | sudo apt-get install | + | sudo apt-get install wx3.0-doc |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Now go get the nightly build and install it. All dependencies should now be met. | 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]. | + | 1. Get the latest nigtly build of Code::Blocks from the [https://forums.codeblocks.org/index.php?board=20.0 nightly builds forum]. |
2. Install Code::Blocks. | 2. Install Code::Blocks. | ||
sudo dpkg -i <Name_Of_Daily_Build.deb> | sudo dpkg -i <Name_Of_Daily_Build.deb> | ||
− | + | Codeblocks is packaged into separate Debian packages and the packages are archived together in a tar.gz file. | |
1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example. | 1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example. | ||
− | tar xvf CB_''date-of-build_revision-number'' | + | tar xvf CB_''date-of-build_revision-number''_Ubuntu22.04+20.03_wx3.0.4.tar.gz |
2. Install all the packages at the same time. | 2. Install all the packages at the same time. | ||
Line 77: | Line 39: | ||
The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional. If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first. | The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional. If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first. | ||
− | + | ==See also== | |
− | + | * [http://apt.jenslody.de/ Jens' (un-)official debian-repository]: additional instructions and downloads. | |
− | + | * [https://launchpad.net/~pasgui/+archive/ppa/ PPA for pasgui]: an Ubuntu repository. | |
− | + | * [https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable PPA of dmoore]: an alternative Ubuntu repository. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 11:30, 10 March 2022
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 (support for wxWidgets < 3.0.0 has been removed). If you want to install them, make sure you have your universe and multiverse repositories enabled and install the following packages.
3. Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks). The version may be different in you Ubuntu.
sudo apt-get install libwxgtk3.0-4
4. Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.)
sudo apt-get install libwxgtk3.0-dev
5. (OPTIONAL) Install the wxWidgets documentation.
sudo apt-get install wx3.0-doc
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 nightly builds forum.
2. Install Code::Blocks.
sudo dpkg -i <Name_Of_Daily_Build.deb>
Codeblocks is packaged into separate Debian packages and the packages are archived together in a tar.gz file.
1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.
tar xvf CB_date-of-build_revision-number_Ubuntu22.04+20.03_wx3.0.4.tar.gz
2. Install all the packages at the same time.
sudo dpkg -i *.deb
The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional. If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first.
See also
- Jens' (un-)official debian-repository: additional instructions and downloads.
- PPA for pasgui: an Ubuntu repository.
- PPA of dmoore: an alternative Ubuntu repository.