First things first, this is a work in progress, so any problems will be welcomed.
Text in italics such as
your-user-name is meant to be replaced by your user name.
Initial environment
Normal installation from this image
www.linuxcnc.org/testing-stretch-rtpreem...uspace-amd64-r10.iso
Upon first boot run to update apt
Code:
sudo apt-get update
Then run the following to update various packages (these include bug & security fixes and updates)
Code:
sudo apt-get dist-upgrade
So now the system is configured for apt and has latest fixes.
At this point you can choose to reboot or not.
Let's get the required glade version setup & installed
Create a build directory (which can be deleted later) The tilde character
~ is a shortcut for /home/
your-user-name
Code:
mkdir ~/Downloads/glade-build
Change to created directory
Code:
cd ~/Downloads/glade-build
Download the glade sources
Code:
wget https://ftp.gnome.org/pub/GNOME/sources/glade3/3.8/glade3-3.8.6.tar.xz
Extract the glade sources
With
x meaning extract,
v meaning verbose, this is a personal preference and can be left out, and
f means the next
text is the file your wish to work upon.
tar xvf glade3-3.8.6.tar.xz
So far so good.
Let's get the packages we need to build glade.
I put together a script to do the work, but if you want you can type it as one long command.
Anyway here is the script you can cut & paste into get-glade-deps.sh
A little explanation
# denotes the begining of comment
\ is a way of continuing the command on the next line, I feel it helps readability
Due to the way the script is run there is no shebang
#!/bin/sh.
Code:
# run with sudo bash -c 'sh get-glade-dpes.sh'
apt-get install \
build-essential devscripts dh-make \
intltool python-gtk2-dev \
libxml2-dev \
gtk-doc-tools \
gnome-doc-utils \
liblablgtk2-gnome-ocaml-dev \
libglade2-dev \
libgladeui-common \
python-gtkglext1 \
devhelp \
itstool \
libcanberra-gtk-module \
libcanberra-gtk-dev
Now run the file with the following command
Code:
sudo bash -c 'sh get-glade-dpes.sh
If there is an error similar to this
./get-glade-deps.sh: 4: ./get-glade-deps.sh: intltool: not found
It points to an extra whitespace after the
\ or a missing
\ on the line before. Removing the whitespace after the
\ or adding the missing
\ on line 3 will fix it whatever the case my be. The last line does not require a final
\ as it is the end of the multi line command.
If there is no errors from apt-get all has gone well.
Time to build glade deb packages
Change to the glade directory
Setup to build debs with dh-make
Code:
dh_make -c lgpl -s --createorig
Since we are making a very simple package for glade and one that does not get distributed we can basically ignore
Done. Please edit the files in the debian/ subdirectory now.
Time to make the deb packages
At the end of the process lintian will through up some messages that can be ignored for our process. Any errors, which should be none will shows themselves up.
Installation of glade deb package
cd to the upper directory
Running ls will give this ouput
get-glade-deps.sh glade3_3.8.6-1.debian.tar.xz
glade3-3.8.6 glade3_3.8.6-1.dsc
glade3_3.8.6-1_amd64.build glade3_3.8.6.orig.tar.xz
glade3_3.8.6-1_amd64.buildinfo glade3-3.8.6.tar.xz
glade3_3.8.6-1_amd64.changes glade3-dbgsym_3.8.6-1_amd64.deb
glade3_3.8.6-1_amd64.deb
The file of interest to us is glade3_3.8.6-1_amd64.deb. Since we already have the dependencies installed installation is as simple as
Code:
sudo dpkg -i glade3_3.8.6-1_amd64.deb
Now everything is setup, there is a menu entry in Programming, the catalog and pixmaps are ready to go and libraries are ready.
The source directory can now be removed by
Code:
rm -rf glade3-3.8.6
If you later wish to remove glade
Code:
sudo dpkg -r glade3