Linux support - Ubuntu 12.04

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

hsiehlc
Posts: 13
Joined: Fri Jul 19, 2013 9:15 am

Re: Linux support - Ubuntu 12.04

Post by hsiehlc »

Okay here is one thing I found would like to share, even though I don't really know why.
Previously, before I fixed CoinRead issue. When I ran AESDemo under LinuxDemo/src directory with "sudo ./AESDemo", it did not return any user interface but bailed out. And now I found if I don't run it with sudo, it would work now. the AESDemo user interface comes up, and runs properly. So I am assuming the problem I had is just sudo. If I didn't run AESDemo with sudo, then it could be just fine in the first place.
LenMeakin
Posts: 3
Joined: Wed Jul 24, 2013 2:26 pm

Re: Linux support - Ubuntu 12.04

Post by LenMeakin »

I would think that this is caused by sudo not having access to the X export variables within your shell.
hsiehlc
Posts: 13
Joined: Fri Jul 19, 2013 9:15 am

Re: Linux support - Ubuntu 12.04

Post by hsiehlc »

Hi there,

Sorry to bother again...
I have a new problem when I try the linux installation to a new Unbuntu PC today.
Here is the problem, I think gnome.h is missing from the LinuxDemo/src directory, so when I do the make at LinuxDemo dir, it gave me error as follows:
root@richard-Aspire-4920:/home/richard/PaylinkSourceDist/PayLink/LinuxDemo# whoami
root
root@richard-Aspire-4920:/home/richard/PaylinkSourceDist/PayLink/LinuxDemo# makemake all-recursive
make[1]: Entering directory `/home/richard/PaylinkSourceDist/PayLink/LinuxDemo'
Making all in src
make[2]: Entering directory `/home/richard/PaylinkSourceDist/PayLink/LinuxDemo/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng14 -I/usr/include/libdrm -Wall -g -g -O2 -MT support.o -MD -MP -MF ".deps/support.Tpo" -c -o support.o support.c; \
then mv -f ".deps/support.Tpo" ".deps/support.Po"; else rm -f ".deps/support.Tpo"; exit 1; fi
support.c:33:19: serious error: gnome.h:No such file or directory
interpretation stopped.
make[2]: *** [support.o] Error 1
make[2]: Leaving directory `/home/richard/PaylinkSourceDist/PayLink/LinuxDemo/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/richard/PaylinkSourceDist/PayLink/LinuxDemo'
make: *** [all] Error 2
root@richard-Aspire-4920:/home/richard/PaylinkSourceDist/PayLink/LinuxDemo#
This does not happen when I did the Linux download and installation last time...
Can someone help me?

Thanks a lot,
Richard
aardvark
Posts: 19
Joined: Mon Jun 21, 2004 6:05 pm

Re: Linux support - Ubuntu 12.04

Post by aardvark »

What version of Ubuntu adid you install, and what installation options did you chose?

Do you have the gnome package installed?
hsiehlc
Posts: 13
Joined: Fri Jul 19, 2013 9:15 am

Re: Linux support - Ubuntu 12.04

Post by hsiehlc »

aardvark wrote:What version of Ubuntu adid you install, and what installation options did you chose?

Do you have the gnome package installed?
Hi aardvark,

My Ubuntu is the same 12.04 which I had installation before.
And I did a "sudo apt-get install gnome" and installed the package, select gdm but not lightdm during installation. But the error about missing gnome.h is the same.

Richard
davebush
Posts: 490
Joined: Fri Oct 22, 2004 12:20 pm

Re: Linux support - Ubuntu 12.04

Post by davebush »

It's mysterious - it just works for me.

What do you get when you run
locate gnome.h
I Get:
/usr/include/libgnome-2.0/libgnome/libgnome.h
/usr/include/libgnomeui-2.0/gnome.h
Can you capture the output of your ./configure command and all the output of the make and I'll try comparing it all to mine.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
hsiehlc
Posts: 13
Joined: Fri Jul 19, 2013 9:15 am

Re: Linux support - Ubuntu 12.04

Post by hsiehlc »

my locate gnome.h is different from yours, not sure what I should do to fix it:
root@richard-Aspire-4920:/home/richard# locate gnome.h
/usr/share/dbus-1/services/org.gnome.hamster.service
Then I did ./configure, and at the end it told me package libgnomeui.2.0 is not found:
checking for PACKAGE... configure: error: Package requirements (libgnomeui-2.0 gtk+-2.0) were not met:

No package 'libgnomeui-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 PACKAGE_CFLAGS
and PACKAGE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
So what is the suggestted step to fix gnome problem?

Thanks a lot!
Richard
davebush
Posts: 490
Joined: Fri Oct 22, 2004 12:20 pm

Re: Linux support - Ubuntu 12.04

Post by davebush »

I am not a Linux expert - I use Windows for my everyday programming. I installed Ubuntu with development options and it just worked.

Looking around with Google, it appears that you need to make sure that you get development packages, otherwise you get run time packages.

Your configure message implies you need gtk+-2.0 - Using apt-cache show <package>, I can see I have the following:
libgtk2.0-dev
libgnutls-dev
libsasl2-dev
I suspect that getting these will also bring in the correct dependencies for gnome. If they don't, then the command:
apt-cache show .*gnome.*dev.* | grep Package:
gives me the list:
Package: libgnome-desktop-3-dev
Package: libgnome-desktop-3-dev
Package: gnome-control-center-dev
Package: gnome-control-center-dev
Package: gnome-settings-daemon-dev
Package: gnome-settings-daemon-dev
Package: libgnomecanvas2-dev
Package: libgnomecanvas2-dev
Package: libgnome2-dev
Package: libgnome2-dev
Package: libgnome-keyring-dev
Package: libgnome-bluetooth-dev
Package: libgnome-control-center-dev
Package: libgnome-control-center-dev
Package: libgnome-desktop-dev
Package: libgnome-media-profiles-dev
Package: libgnome-menu-3-dev
Package: libgnome-menu-dev
Package: libgnome-vfs2.0-cil-dev
Package: libgnomevfs2-dev
Package: libgnomevfs2-dev
Package: libgnome2.0-cil-dev
Package: libgnomekbd-dev
Package: libgnomekbd-dev
Package: libgnomeui-dev
Package: libgsf-gnome-1-dev
Package: libsoup-gnome2.4-dev
Package: python-gnome2-desktop-dev
Package: python-gnome2-dev
Package: gnome-devel-docs
Package: gnome-core-devel
Package: gnome-platform-devel
Package: libgnomedesktop2.0-cil-dev
Package: gnome-devel
Package: libgnome-speech-dev
Package: gnome-video-effects-dev
Package: guile-gnome2-dev
Package: libgnome-vfsmm-2.6-dev
Package: libgnome-keyring1.0-cil-dev
Package: libgnome-mag-dev
Package: libgnomeada2.24.1-dev
Package: libgnomecanvasmm-2.6-dev
Package: libgnomecups1.0-dev
Package: libgnomemm-2.6-dev
Package: libgnomeprint2.2-dev
Package: libgnomeprintui2.2-dev
Package: libgnomescan-dev
Package: libgnomeuimm-2.6-dev
Package: libmimedir-gnome-dev
Package: liblablgtk2-gnome-ocaml-dev
Package: libopenrawgnome-dev
Package: python-gnome2-extras-dev
Package: ruby-gnome2-dev
I presume if your list is significantly different, then you should be able to do:
apt-get .*gnome.*dev.* | grep Package:
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
hsiehlc
Posts: 13
Joined: Fri Jul 19, 2013 9:15 am

Re: Linux support - Ubuntu 12.04

Post by hsiehlc »

Okay, I checked for gtk+-2.0, and I get:
root@richard-Aspire-4920:/home/richard# apt-cache show gtk+-2.0 | grep Package:
Package: gir1.2-gtk-2.0
Package: gir1.2-spice-client-gtk-2.0
Package: libspice-client-gtk-2.0-1
Package: libspice-client-gtk-2.0-dev
root@richard-Aspire-4920:/home/richard#
And I tried:
root@richard-Aspire-4920:/home/richard# apt-cache show .*gnome.*dev.* | grep Package:
Package: libgnome-desktop-3-dev
Package: libgnome-desktop-3-dev
Package: gnome-control-center-dev
Package: gnome-control-center-dev
Package: gnome-settings-daemon-dev
Package: gnome-settings-daemon-dev
Package: libgnomecanvas2-dev
Package: libgnomecanvas2-dev
Package: libgnome2-dev
Package: libgnome2-dev
Package: libgnome-keyring-dev
Package: libgnome-bluetooth-dev
Package: libgnome-control-center-dev
Package: libgnome-control-center-dev
Package: libgnome-desktop-dev
Package: libgnome-media-profiles-dev
Package: libgnome-menu-3-dev
Package: libgnome-menu-dev
Package: libgnome-vfs2.0-cil-dev
Package: libgnomevfs2-dev
Package: libgnomevfs2-dev
Package: libgnome2.0-cil-dev
Package: libgnomekbd-dev
Package: libgnomekbd-dev
Package: libgnomeui-dev
Package: libgsf-gnome-1-dev
Package: libsoup-gnome2.4-dev
Package: python-gnome2-desktop-dev
Package: python-gnome2-dev
Package: gnome-devel-docs
Package: gnome-core-devel
Package: gnome-platform-devel
Package: libgnomedesktop2.0-cil-dev
Package: gnome-devel
Package: libgnome-speech-dev
Package: gnome-video-effects-dev
Package: guile-gnome2-dev
Package: libgnome-vfsmm-2.6-dev
Package: libgnome-keyring1.0-cil-dev
Package: libgnome-mag-dev
Package: libgnomeada2.24.1-dev
Package: libgnomecanvasmm-2.6-dev
Package: libgnomecups1.0-dev
Package: libgnomemm-2.6-dev
Package: libgnomeprint2.2-dev
Package: libgnomeprintui2.2-dev
Package: libgnomescan-dev
Package: libgnomeuimm-2.6-dev
Package: libmimedir-gnome-dev
Package: liblablgtk2-gnome-ocaml-dev
Package: libopenrawgnome-dev
Package: python-gnome2-extras-dev
Package: ruby-gnome2-dev
root@richard-Aspire-4920:/home/richard#
The result list looks the same as yours... what should I try next.

Thanks,
Richard
davebush
Posts: 490
Joined: Fri Oct 22, 2004 12:20 pm

Re: Linux support - Ubuntu 12.04

Post by davebush »

You don't seem to have these packages:
libgtk2.0-dev
libgnutls-dev
libsasl2-dev
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply