During late 2012 I had some additional time to look at coding and chose gnome-system-monitor to have a play with and possibly extend as I (and apparently many others) found it lacking. I made some progress learning GTK and extending some of the functionality I wanted but it never really got cleaned up and folded back into the main code line before I got busy being busy again.
After blatting my linux install during an Ubuntu upgrade I needed to put a few things in place on my vanilla Ubuntu 12.10 installation before I could start:
# various build tools
sudo apt-get install gnome-common
sudo apt-get install yelp-tools
# various gnome-system-monitor dependencies
sudo apt-get install glib-2.0
sudo apt-get install gtk+-3.0
sudo apt-get install gtkmm-3.0
# to fetch source code
sudo apt-get install git
gsw@goat-lin:~/src/gsm$ git clone git://git.gnome.org/gnome-system-monitor
Cloning into 'gnome-system-monitor'...
remote: Counting objects: 18018, done.
remote: Compressing objects: 100% (6513/6513), done.
remote: Total 18018 (delta 14018), reused 14329 (delta 11454)
Receiving objects: 100% (18018/18018), 7.96 MiB | 385 KiB/s, done.
Resolving deltas: 100% (14018/14018), done.
Then I attempted to run autoconf.sh (note use of --prefix=/tmp to avoid installing broken development code and related artefacts over your working gnome-system-monitor):
gsw@goat-lin:~$ ./autogen.sh --prefix=/tmp CFLAGS=-g
...
configure: error: Package requirements (glib-2.0 >= 2.28.0 libgtop-2.0 >= 2.28.2 libwnck-3.0 >= 2.91.0 gtk+-3.0 >= 3.5.12 gnome-icon-theme >= 2.31 gtkmm-3.0 >= 3.3.18 libxml-2.0 >= 2.0 librsvg-2.0 >= 2.35 glibmm-2.4 >= 2.27 giomm-2.4 >= 2.27 gmodule-2.0) were not met:
No package 'libgtop-2.0' found
No package 'libwnck-3.0' found
No package 'librsvg-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables PROCMAN_CFLAGS
and PROCMAN_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
As far as I could tell these libraries were installed under /usr/lib on my system but the pkg-config utility was having issues figuring this out.
sudo apt-get install 'libwnck-dev'
sudo apt-get install 'libgtop2-dev'
sudo apt-get install 'libgconf2-dev'
When you run pkg-config with any of the libraries above, all these errors should go away.
pkg-config --print-errors libgtop-2.0
Now run autogen.sh again to get a clean configuration built:
gsw@goat-lin:~/src/gsm/gnome-system-monitor$ ./autogen.sh --prefix=/tmp CFLAGS=-g
OK, that went through cleanly. As do 'make' and 'make install'.
Let's try to run the app.
gsw@goat-lin:~$ /tmp/bin/gnome-system-monitor
** (gnome-system-monitor:31525): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-c8S3ACfDCn: Connection refused
(gnome-system-monitor:31525): GLib-GIO-ERROR **: Settings schema 'org.gnome.gnome-system-monitor' does not contain a key named 'maximized'
[2]+ Done /tmp/bin/gnome-system-monitor
Trace/breakpoint trap (core dumped)
Looking around the system you find /usr/share/glib-2.0/schemas/, and the equivalent directory I just created via 'make install' under /tmp/share/glib-2.0. The trouble is, it doesn't look like the /tmp/bin/gnome-system-monitor is pulling in the right config. For development purposes, the shell(s) under which I'm working with gnome-system-monitor will need an update to the environment to include the new system monitor schema files ahead of the system schema files.:
gsw@goat-lin:~/src/gsm/gnome-system-monitor$ export XDG_DATA_DIRS=/tmp/share:/usr/share
Attempt to start the app again and the GUI starts up as you'd expect and shows the expected version (3.7.4) from git - although still with some warnings that can be worried about later:
gsw@goat-lin:~$ /tmp/bin/gnome-system-monitor
** (gnome-system-monitor:31587): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-c8S3ACfDCn: Connection refused
** (gnome-system-monitor:31587): WARNING **: SELinux was found but is not enabled.
If there's something I've missed in the above to make it harder for myself than it otherwise ought to be, it would be great if you could drop me a comment. Thanks!
After blatting my linux install during an Ubuntu upgrade I needed to put a few things in place on my vanilla Ubuntu 12.10 installation before I could start:
# various build tools
sudo apt-get install gnome-common
sudo apt-get install yelp-tools
# various gnome-system-monitor dependencies
sudo apt-get install glib-2.0
sudo apt-get install gtk+-3.0
sudo apt-get install gtkmm-3.0
# to fetch source code
sudo apt-get install git
gsw@goat-lin:~/src/gsm$ git clone git://git.gnome.org/gnome-system-monitor
Cloning into 'gnome-system-monitor'...
remote: Counting objects: 18018, done.
remote: Compressing objects: 100% (6513/6513), done.
remote: Total 18018 (delta 14018), reused 14329 (delta 11454)
Receiving objects: 100% (18018/18018), 7.96 MiB | 385 KiB/s, done.
Resolving deltas: 100% (14018/14018), done.
Then I attempted to run autoconf.sh (note use of --prefix=/tmp to avoid installing broken development code and related artefacts over your working gnome-system-monitor):
gsw@goat-lin:~$ ./autogen.sh --prefix=/tmp CFLAGS=-g
...
configure: error: Package requirements (glib-2.0 >= 2.28.0 libgtop-2.0 >= 2.28.2 libwnck-3.0 >= 2.91.0 gtk+-3.0 >= 3.5.12 gnome-icon-theme >= 2.31 gtkmm-3.0 >= 3.3.18 libxml-2.0 >= 2.0 librsvg-2.0 >= 2.35 glibmm-2.4 >= 2.27 giomm-2.4 >= 2.27 gmodule-2.0) were not met:
No package 'libgtop-2.0' found
No package 'libwnck-3.0' found
No package 'librsvg-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables PROCMAN_CFLAGS
and PROCMAN_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
As far as I could tell these libraries were installed under /usr/lib on my system but the pkg-config utility was having issues figuring this out.
sudo apt-get install 'libwnck-dev'
sudo apt-get install 'libgtop2-dev'
sudo apt-get install 'libgconf2-dev'
When you run pkg-config with any of the libraries above, all these errors should go away.
pkg-config --print-errors libgtop-2.0
Now run autogen.sh again to get a clean configuration built:
gsw@goat-lin:~/src/gsm/gnome-system-monitor$ ./autogen.sh --prefix=/tmp CFLAGS=-g
OK, that went through cleanly. As do 'make' and 'make install'.
Let's try to run the app.
gsw@goat-lin:~$ /tmp/bin/gnome-system-monitor
** (gnome-system-monitor:31525): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-c8S3ACfDCn: Connection refused
(gnome-system-monitor:31525): GLib-GIO-ERROR **: Settings schema 'org.gnome.gnome-system-monitor' does not contain a key named 'maximized'
[2]+ Done /tmp/bin/gnome-system-monitor
Trace/breakpoint trap (core dumped)
Looking around the system you find /usr/share/glib-2.0/schemas/, and the equivalent directory I just created via 'make install' under /tmp/share/glib-2.0. The trouble is, it doesn't look like the /tmp/bin/gnome-system-monitor is pulling in the right config. For development purposes, the shell(s) under which I'm working with gnome-system-monitor will need an update to the environment to include the new system monitor schema files ahead of the system schema files.:
gsw@goat-lin:~/src/gsm/gnome-system-monitor$ export XDG_DATA_DIRS=/tmp/share:/usr/share
Attempt to start the app again and the GUI starts up as you'd expect and shows the expected version (3.7.4) from git - although still with some warnings that can be worried about later:
gsw@goat-lin:~$ /tmp/bin/gnome-system-monitor
** (gnome-system-monitor:31587): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-c8S3ACfDCn: Connection refused
** (gnome-system-monitor:31587): WARNING **: SELinux was found but is not enabled.
If there's something I've missed in the above to make it harder for myself than it otherwise ought to be, it would be great if you could drop me a comment. Thanks!
No comments:
Post a Comment