Difference between revisions of "Installing Code::Blocks from source on RPM based distributions"

From Code::Blocks
Line 33: Line 33:
 
# wxGTK >= 2.6.0 and its devel package (see [http://wxwidgets.org wxwidgets.org])
 
# wxGTK >= 2.6.0 and its devel package (see [http://wxwidgets.org wxwidgets.org])
 
# wxGTK-xrc and its devel package (in some distributions included in the packages of point 1)
 
# wxGTK-xrc and its devel package (in some distributions included in the packages of point 1)
 +
 +
==== Build the wxGTK RPMS from source ====
  
 
=== Install Subversion client ===
 
=== Install Subversion client ===
Line 38: Line 40:
 
This has to be installed before starting:
 
This has to be installed before starting:
 
* subversion >= 1.4.0, (see [http://subversion.tigris.org subversion.tigris.org])
 
* subversion >= 1.4.0, (see [http://subversion.tigris.org subversion.tigris.org])
 +
 +
==== Build Subversion RPM from source ====
  
 
== Install Code::Blocks ==
 
== Install Code::Blocks ==
  
=== Prepare the SVN version ===
+
=== Prepare the Release Candidate ===
 +
 
 +
1. Download the source RPM from [https://www.codeblocks.org/downloads.shtml www.codeblocks.org/downloads.shtml]
 +
 
 +
==== Prepare the SRPM package ====
  
 
1. You need to get the latest sources from SVN [https://www.codeblocks.org/source_code.shtml www.codeblocks.org/source_code.shtml]
 
1. You need to get the latest sources from SVN [https://www.codeblocks.org/source_code.shtml www.codeblocks.org/source_code.shtml]
Line 59: Line 67:
 
  rpmbuild -bs codeblocks.spec
 
  rpmbuild -bs codeblocks.spec
  
=== Prepare the Release Candidate ===
+
=== Build the RPM package ===
 
 
1. Download the source RPM from [https://www.codeblocks.org/downloads.shtml www.codeblocks.org/downloads.shtml]
 
 
 
=== Build the package ===
 
  
 
1. Build the binary package as root
 
1. Build the binary package as root
Line 76: Line 80:
 
* codeblocks-debuginfo: stripped debug information
 
* codeblocks-debuginfo: stripped debug information
  
=== Install the package ===
+
=== Install the RPM package ===
  
 
Install the packages you want (usually codeblocks and codeblocks-contrib) and enjoy Code::Blocks!
 
Install the packages you want (usually codeblocks and codeblocks-contrib) and enjoy Code::Blocks!

Revision as of 10:11, 28 October 2006


TODO: the builds should not be done as root

Install Requirements

Install Developer Tools

This has to be installed before starting:

  • zip
  • update-desktop-files (only on SUSE)
  • make
  • gettext
  • autoconf >= 2.5
  • automake >= 1.7
  • libtool >= 1.4
  • m4
  • intltool
  • gcc-c++
  • libstdc++-devel

Setup RPM environment

This has to be installed before starting:

  • rpm-build

Install wxWidgets 2.6.x

The build requirements in the source RPM are set to a minimum. So it isn't checked whether wxGTK is installed or not. So you have to take a look at it yourself.

This has to be installed:

  1. wxGTK >= 2.6.0 and its devel package (see wxwidgets.org)
  2. wxGTK-xrc and its devel package (in some distributions included in the packages of point 1)

Build the wxGTK RPMS from source

Install Subversion client

This has to be installed before starting:

Build Subversion RPM from source

Install Code::Blocks

Prepare the Release Candidate

1. Download the source RPM from www.codeblocks.org/downloads.shtml

Prepare the SRPM package

1. You need to get the latest sources from SVN www.codeblocks.org/source_code.shtml

2. go into trunk, if you haven't already done it.

3. run these three commands in this order

./bootstrap
./configure --enable-contrib
make dist

the last one will create a .tar.gz archive that contains the sources.

4. copy the archive as root to the directory /usr/src/packages/SOURCES

sudo mv codeblocks-trunk-r$REVISION.tar.gz /usr/src/packages/SOURCES

5. build the source RPM

rpmbuild -bs codeblocks.spec

Build the RPM package

1. Build the binary package as root

rpmbuild --rebuild codeblocks-1.0-***.src.rpm

This will create several packages in one of the architecture specific subdirectories (i386, x86_64, ppc, ...) of /usr/src/redhat/RPMS/.

These are:

  • codeblocks: main package
  • codeblocks-contrib: contrib plugins
  • codeblocks-devel: SDK headers
  • codeblocks-debuginfo: stripped debug information

Install the RPM package

Install the packages you want (usually codeblocks and codeblocks-contrib) and enjoy Code::Blocks!