Table of Contents

Development Environment Setup for Mageia 1

This page presently references resources (like scripts) currently located on KBulgrien's page.

Trunk Client

$ urpmq --whatprovides libglade2
No package named libglade2
The following packages contain libglade2: libglade2.0_0, libglade2.0_0-devel
You should use "-a" to use all of them
urpmq --whatprovides -a libglade2
libglade2.0_0
libglade2.0_0
libglade2.0_0-devel
libglade2.0_0-devel
$ sudo urpmi libglade2.0_0-devel
In order to satisfy the 'devel(libcairo)' dependency, one of the following packages is needed:
 1- libcairo-devel-1.10.2-3.mga1.i586: Development files for Cairo library (to install)
 2- libcairo-xcb-devel-1.10.2-4.mga1.i586: Development files for Cairo library (to install)
What is your choice? (1-2) 2
The following packages have to be removed for others to be upgraded:
flash-player-plugin-11.1.102.62-1.mga1.nonfree.i586
 (due to missing libcairo2)
libcairo2-1.10.2-3.mga1.i586
 (due to conflicts with libcairo-xcb2-1.10.2-4.mga1.i586) (y/N) N
$ sudo urpmi libglade2.0_0-devel
In order to satisfy the 'devel(libcairo)' dependency, one of the following packages is needed:
 1- libcairo-devel-1.10.2-3.mga1.i586: Development files for Cairo library (to install)
 2- libcairo-xcb-devel-1.10.2-4.mga1.i586: Development files for Cairo library (to install)
What is your choice? (1-2) 1
  To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Mageia - 1 - i586 DVD")
  libatk1.0-devel                1.32.0       2.mga1        i586    
  libcairo-devel                 1.10.2       3.mga1        i586    
  libglade2.0_0-devel            2.6.4        5.mga1        i586    
  libpango1.0-devel              1.28.4       1.mga1        i586    
  libx11_6-devel                 1.4.3        1.mga1        i586    
  libxcb-glx0                    1.7          1.mga1        i586    
  libxcb-randr0                  1.7          1.mga1        i586    
  libxcb-screensaver0            1.7          1.mga1        i586    
  libxcb-xinerama0               1.7          1.mga1        i586    
  libxcb-xprint0                 1.7          1.mga1        i586    
  libxcb-xvmc0                   1.7          1.mga1        i586    
  libxcursor-devel               1.1.11       1.mga1        i586    
  libxext6-devel                 1.2.0        2.mga1        i586    
  libxi-devel                    1.4.2        1.mga1        i586    
  libxinerama1-devel             1.1.1        2.mga1        i586    
  libxrandr2-devel               1.3.1        2.mga1        i586    
  libxrender1-devel              0.9.6        1.mga1        i586    
  pango-doc                      1.28.4       1.mga1        i586    
(medium "Core Release")
  libfontconfig-devel            2.8.0        5.mga1        i586    
  libgtk+2.0-devel               2.24.4       1.mga1        i586    
  libpixman-1-devel              0.20.2       1.mga1        i586    
  libpthread-stubs               0.3          1.mga1        i586    
  libxau6-devel                  1.0.6        1.mga1        i586    
  libxcb-composite0              1.7          1.mga1        i586    
  libxcb-damage0                 1.7          1.mga1        i586    
  libxcb-devel                   1.7          1.mga1        i586    
  libxcb-dpms0                   1.7          1.mga1        i586    
  libxcb-record0                 1.7          1.mga1        i586    
  libxcb-render0                 1.7          1.mga1        i586    
  libxcb-res0                    1.7          1.mga1        i586    
  libxcb-sync0                   1.7          1.mga1        i586    
  libxcb-xevie0                  1.7          1.mga1        i586    
  libxcb-xf86dri0                1.7          1.mga1        i586    
  libxcb-xfixes0                 1.7          1.mga1        i586    
  libxcb-xtest0                  1.7          1.mga1        i586    
  libxcomposite1-devel           0.4.3        1.mga1        i586    
  libxdamage-devel               1.1.3        1.mga1        i586    
  libxdmcp6-devel                1.1.0        1.mga1        i586    
  libxfixes3-devel               5.0          1.mga1        i586    
  libxft-devel                   2.2.0        1.mga1        i586    
  x11-proto-devel                7.6          9.mga1        i586    
(medium "Core Updates")
  libfreetype6-devel             2.4.4        5.4.mga1      i586    
  libgdk_pixbuf2.0-devel         2.22.1       3.1.mga1      i586    
  libpng-devel                   1.2.47       1.mga1        i586    
  libpng3                        1.2.47       1.mga1        i586    
66MB of additional disk space will be used.
8.7MB of packages will be retrieved.
Proceed with the installation of the 45 packages? (Y/n) Y
...
$ sudo urpmi libcurl-devel
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release")
  libext2fs-devel                1.41.14      2.mga1        i586    
  libidn-devel                   1.19         2.mga1        i586    
  libsasl2-devel                 2.1.23       14.mga1       i586    
  libssh2-devel                  1.2.8        1.mga1        i586    
  libwrap-devel                  7.6          42.mga1       i586    
(medium "Core Updates")
  libcurl-devel                  7.21.5       1.2.mga1      i586    
  libkrb53-devel                 1.8.3        5.1.mga1      i586    
  libldap2.4_2-devel             2.4.25       1.1.mga1      i586    
  libopenssl-devel               1.0.0d       2.1.mga1      i586    
13MB of additional disk space will be used.
4.2MB of packages will be retrieved.
Proceed with the installation of the 9 packages? (Y/n) Y
...
$ sudo urpmi liblua-devel
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release")
  liblua-devel                   5.1.4        9.mga1        i586    
  libreadline-devel              6.2          1.mga1        i586    
  lua                            5.1.4        9.mga1        i586    
6.8MB of additional disk space will be used.
1.8MB of packages will be retrieved.
Proceed with the installation of the 3 packages? (Y/n) Y
...
$ sudo urpmi libSDL_image-devel
In order to satisfy the 'devel(libjpeg)' dependency, one of the following packages is needed:
 1- libjpeg-devel-8b-5.mga1.i586: Development tools for programs which will use the libjpeg library (to install)
 2- libjpeg62-devel-6b-49.mga1.i586: Development tools for programs which will use the libjpeg library (to install)
What is your choice? (1-2) 1
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Mageia - 1 - i586 DVD")
  libalsa2-devel                 1.0.24.1     3.mga1        i586    
  libdrm-devel                   2.4.25       1.mga1        i586    
  libjbig-devel                  2.0          5.mga1        i586    
  libslang-devel                 2.2.2        4.mga1        i586    
(medium "Core Release")
  libSDL_image-devel             1.2.10       3.mga1        i586    
  libaa-devel                    1.4.0        0.rc5.22.mga1 i586    
  libdirectfb-devel              1.4.11       2.mga1        i586    
  libggi-devel                   2.2.2        16.mga1       i586    
  libgii-devel                   1.0.2        15.mga1       i586    
  libgpm-devel                   1.20.6       5.mga1        i586    
  libjpeg-devel                  8b           5.mga1        i586    
  libkms1                        2.4.25       1.mga1        i586    
  libmesagl1-devel               7.10.2       4.mga1        i586    
  libmesaglu1-devel              7.10.2       4.mga1        i586    
  libsysfs-devel                 2.1.0        11.mga1       i586    
  libsysfs-static-devel          2.1.0        11.mga1       i586    
  libxxf86dga-devel              1.1.2        1.mga1        i586    
  libxxf86vm-devel               1.1.1        2.mga1        i586    
(medium "Core Updates")
  libSDL-devel                   1.2.14       4.1.mga1      i586    
  libtiff-devel                  3.9.5        1.1.mga1      i586    
27MB of additional disk space will be used.
5.5MB of packages will be retrieved.
Proceed with the installation of the 20 packages? (Y/n) Y
...
$ sudo urpmi libmesaglut3-devel makedepend
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release")
  libice6-devel                  1.0.7        2.mga1        i586    
  libmesaglut3-devel             7.10.2       4.mga1        i586    
  libsm6-devel                   1.2.0        2.mga1        i586    
  libxmu6-devel                  1.1.0        2.mga1        i586    
  libxt-devel                    1.1.1        2.mga1        i586    
  makedepend                     1.0.3        1.mga1        i586    
853KB of additional disk space will be used.
316KB of packages will be retrieved.
Proceed with the installation of the 6 packages? (Y/n) Y
...
$ sudo urpmi cproto
No package named cproto

Media configured:

CD-ROM Mageia - 1 - i586 DVD
Mirror list Core Release
Mirror list Core Updates
Mirror list Nonfree Release
Mirror list Nonfree Updates

Added media:

Mirror list Core Backports
Mirror list Nonfree Backports
Mirror list Tainted Release
Mirror list Tainted Updates
Mirror list Tainted Backports
$ sudo urpmi cproto
No package named cproto

Someone on #mageia @ irc.freenode.net reports cproto is in Cauldron, and is to go into Mageia 2.

$ curl -o cproto-4.7j-1.mga2.src.rpm http://distro.ibiblio.org/pub/linux/distributions/mageia/distrib/cauldron/SRPMS/core/release/cproto-4.7j-1.mga2.src.rpm
$ rpmbuild --rebuild --clean cproto-4.7j-1.mga2.src.rpm
error: Failed build dependencies:
byacc is needed by cproto-4.7j-1.mga1.i586
$ sudo urpmi byacc
$ rpmbuild --rebuild --clean cproto-4.7j-1.mga2.src.rpm
$ mv ~/rpmbuild/RPMS/i586/cproto* .
$ sudo urpmi ./cproto-4.7j-1.mga1.i586.rpm

Above instructions created a full client build environment.

$ cd /home/devel/crossfire
$ curl -l trunk.autogen.sh http://invidious.meflin.net/~kbulgrien/files/trunk.autogen.sh
$ cd client/trunk
$ bash ../../trunk.autogen.sh
$ make
$ sudo mkdir -p /home/apps/crossfire
$ sudo chgrp -R ctools /home/apps
$ sudo chmod -R g+rwx /home/apps
$ make install
$ /home/apps/crossfire/bin/crossfire-client-gtk2

client RPMs

TBD

.glade files

Client .glade window and dialog layout files are maintained using glade3:

$ sudo urpmi glade3
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch   
  libgladeui1_9                  3.6.7        3mdv2010.1    i586    
  glade3                         3.6.7        3mdv2010.1    i586    
Proceed with the installation of the 2 packages? (Y/n) y

Trunk Server

After installing the client packages, this still needed to be done:

$ sudo urpmi flex
$ sudo uprmi python-devel
  installing libpython2.6-devel-2.6.5-2.1mdv2010.1.i586.rpm

Mapper (Server)

Presuming the client and server dependencies are loaded, this was needed:

$ sudo urpmi libgd-devel
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch   
  libgd-devel                    2.0.35       14mdv2010.1   x86_64  
  libxpm-devel                   3.5.8        2mdv2010.1    x86_64  
Proceed with the installation of the 2 packages? (Y/n) y

CRE (Server)

CRE needs qmake:

$ sudo urpmi libqt4-devel
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch   
  lib64asyncns-devel             0.8          1mdv2010.1    x86_64  
  lib64avahi-client-devel        0.6.25       5mdv2010.1    x86_64  
  lib64avahi-common-devel        0.6.25       5mdv2010.1    x86_64  
  lib64cap-devel                 2.19         5mdv2010.1    x86_64  
  lib64dbus-1-devel              1.2.24       1mdv2010.1    x86_64  
  lib64flac-devel                1.2.1        7mdv2010.1    x86_64  
  lib64ogg-devel                 1.2.0        1mdv2010.1    x86_64  
  lib64phononexperimental4       4.4.1        6mdv2010.1    x86_64  
  lib64pulseaudio-devel          0.9.21       26mdv2010.1   x86_64  
  lib64qt4-devel                 4.6.2        9mdv2010.1    x86_64  
  lib64qtclucene4                4.6.2        9mdv2010.1    x86_64  
  lib64qthelp4                   4.6.2        9mdv2010.1    x86_64  
  lib64qtscripttools4            4.6.2        9mdv2010.1    x86_64  
  lib64sndfile-devel             1.0.21       2mdv2010.1    x86_64  
  lib64sqlite3-devel             3.6.23.1     2mdv2010.1    x86_64  
  lib64vorbis-devel              1.3.1        1mdv2010.1    x86_64  
  lib64xtst6-devel               1.1.0        2mdv2010.1    x86_64  
  phonon-devel                   4.4.1        6mdv2010.1    x86_64  
  qt4-designer-plugin-phonon     4.6.2        9mdv2010.1    x86_64  
  qt4-designer-plugin-qt3support 4.6.2        9mdv2010.1    x86_64  
  qt4-designer-plugin-webkit     4.6.2        9mdv2010.1    x86_64  
  qt4-qtconfig                   4.6.2        9mdv2010.1    x86_64  
Proceed with the installation of the 22 packages? (Y/n)