User forums > General (but related to Code::Blocks)
how to make rpm for own distro of linux
TeddyKrulewich:
How do i make an rpm for SuSe 10. I want to make one of the nightly builds run on SuSe 10. Any help would be greatly appreciated.
TheTuxKeeper:
It's quite easy ;)
1. Download the svn sources (http://www.codeblocks.org/source_code.shtml)
2. run ./bootstrap and ./configure --enable-contrib
3. run make dist, this will create a .tar.gz with the sources.
4. move the source tar.gz as root to /usr/src/packages/SOURCES
e.g. sudo mv codeblocks-trunk-r2779.tar.gz /usr/src/packages/SOURCES
5. start building the RPM with sudo rpmbuild -bb --target=i586 codeblocks.spec
6. This will create several packages in /usr/src/packages/RPMS/i586. These are:
* codeblocks: main package
* codeblocks-contrib: contrib plugins
* codeblocks-devel: SDK headers
* codeblocks-debuginfo: stripped debug information
Usually you need only the main and the contrib package. The rest is only needed if you need an precise debug output (debuginfo) or you want to write plugins (devel)
I will also update the wiki the next days (had no time yet).
Happy building and codeblocking :D
Daniel
TeddyKrulewich:
this is as far as i got:
teddy@linux:~/cb/trunk> ./bootstrap
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
aclocal:configure.in:63: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
aclocal:configure.in:64: warning: macro `AM_PATH_WXCONFIG' not found in library
configure.in: installing `./install-sh'
configure.in: installing `./missing'
src/plugins/astyle/Makefile.am: installing `./depcomp'
configure.in:63: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:64: error: possibly undefined macro: AM_PATH_WXCONFIG
TheTuxKeeper:
You need these packages to compile codeblocks: wxGTK-devel, zip, subversion, update-desktop-files, make, gettext, autoconf >= 2.5, automake >= 1.7, libtool >= 1.4, m4, intltool, gcc-c++ and libstdc++-devel (that's the full list ;)).
You haven't installed wxGTK-devel at least.
TeddyKrulewich:
I looked in yast2 for wxgtk-devel and it wasnt there
[EDIT] I tried building wxgtk from the wiki instuctions but i think i did somehing wrong :(
Navigation
[0] Message Index
[#] Next page
Go to full version