Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-11

Running Lazarus GTK1 (32bit) via a remote X11 from 64bit Linux

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Seeing that GTK2 via remote X11 connection is totally unworkable (every screen has about 15-20 seconds delay). I thought I would use GTK1 instead.

I want to use the remote Linux server (64bit system) for 64bit application testing. I don't want to develop remotely using GTK1 - I simply want to run the IDE via GTK1. I 'apt-get install' ed the libgtk1.2 libraries and all it's dependencies. I then compiled Lazarus IDE with GTK1 on my local 32bit system. Copied the executable over to the remote 64bit server. But I am unable to run Lazarus on the remote server.

I get the following error:
-------------------------------
graemeg at argon:~/programming$ ./lazarus.gtk1
./lazarus.gtk1: error while loading shared libraries: libglib-1.2.so.0: cannot open shared object file: No such file or directory
-------------------------------

The remote system is Ubuntu 8.04 LTS - 64bit. Normally you can run 32bit software on a 64bit OS. But I'm not having any luck with Lazarus.
The 64bit linux system automatically installed 'libglib1.2ldbl' whereas my local 32bit system has 'libglib1.2' package. I guess this is what's causing the problem. I thought maybe it's just some symbolic link issue. I then searched for libglib-1.2.so.0, thinking that it might be missing or named differently. But there is a /usr/lib/libglib-1.2.so.0 symlink already. So now I'm out of ideas.

Is my only option to install GTK1.2 development packages on the remote server (which I didn't want to do) and do a 64bit compile of Lazarus IDE there? Anybody know of some other way to get the 32bit Lazarus IDE to run on the 64bit Linux OS?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mark Morgan Lloyd
to Graeme Geldenhuys
Graeme Geldenhuys wrote 20 lines
Hi, Seeing that GTK2 via remote X11 connection is totally unworkable (every screen has about 15-20 seconds delay). I thought I would use GTK1 instead. I want to use the remote Linux server (64bit system) for 64bit application testing. I don't want to develop remotely using GTK1 - I simply want to run the IDE via GTK1. I 'apt-get install' ed the libgtk1.2 libraries and all it's dependencies. I then compiled Lazarus IDE with GTK1 on my local 32bit system. Copied the executable over to the remote 64bit server. But I am unable to run Lazarus on the remote server. I get the following error: ------------------------------- graemeg at argon:~/programming$ ./lazarus.gtk1 ./lazarus.gtk1: error while loading shared libraries: libglib-1.2.so.0: cannot open shared object file: No such file or directory

Approaching the problem rather naively, I wonder where that message comes from? A quick grep over both the Lazarus and FPC sources doesn't bring it up (apart from in a Cygwin DLL which obviously isn't being used). In /usr/lib I get a match from libc.a, I wonder if useful detail is getting logged somewhere?

It might turn out to be a lower-level problem- I can't compare behaviour here since all my systems are 32-bit userland.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Hans-Peter Diettrich
to Graeme Geldenhuys: Seeing that GTK2 via remote X11 connection is totally unworkable (every screen has about…
Show quoted text 12 lines
I get the following error: ------------------------------- graemeg at argon:~/programming$ ./lazarus.gtk1 ./lazarus.gtk1: error while loading shared libraries: libglib-1.2.so.0: cannot open shared object file: No such file or directory ------------------------------- The remote system is Ubuntu 8.04 LTS - 64bit. Normally you can run 32bit software on a 64bit OS. But I'm not having any luck with Lazarus.

Did you compile Lazarus for 32 or 64 bit (--target?)?

Try ldd to find out what Lazarus links to on your build and target systems.

IMO your target system should have the according library directories, i.e. lib/ for 32 and/or lib64/ for 64 bit binaries. See also my answer on "[Lazarus] Error during linkage editing".

/usr/lib/libglib-1.2.so.0 symlink already. So now I'm out of ideas.

IMO that should be the 32 bit version. But I'm not very familiar with linux myself :-(

DoDi

Reply by email

Joost van der Sluis
to Graeme Geldenhuys: Seeing that GTK2 via remote X11 connection is totally unworkable (every screen has about…

Op maandag 24-11-2008 om 10:27 uur [tijdzone +0200], schreef Graeme Geldenhuys:

Show quoted text 11 lines
I get the following error: ------------------------------- graemeg at argon:~/programming$ ./lazarus.gtk1 ./lazarus.gtk1: error while loading shared libraries: libglib-1.2.so.0: cannot open shared object file: No such file or directory ------------------------------- The remote system is Ubuntu 8.04 LTS - 64bit. Normally you can run 32bit software on a 64bit OS.

That's not true. If you want to do that you need an installation which supports both environments. I don't know how debian/ubuntu handles this, but I do know that it's different from Fedora which I know better.

But I'm not having any luck with Lazarus.

That's because you haven't installed a 32-bit version of gtk. 32-bit Lazarus needs the 32-bits gtk-libraries. You have to install those.

On Fedora if you install a 32-bit package on a 64-bit system, it also installs all 32-bit dependecies. I think Debian/Ubuntu does the same. But if you really want to do everything manually, as you are trying to do - you have to do this yourself. This mean you have to know how your distribution handle things in detail - I whish you good luck. ;)

Is my only option to install GTK1.2 development packages on the remote server (which I didn't want to do) and do a 64bit compile of Lazarus IDE there? Anybody know of some other way to get the 32bit Lazarus IDE to run on the 64bit Linux OS?

Yes, you need two copies of gtk to be installed on your system.

Joost.

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: Seeing that GTK2 via remote X11 connection is totally unworkable (every screen has about…
Graeme Geldenhuys wrote 11 lines
Lazarus IDE with GTK1 on my local 32bit system. Copied the executable over to the remote 64bit server. But I am unable to run Lazarus on the remote server. I get the following error: ------------------------------- graemeg at argon:~/programming$ ./lazarus.gtk1 ./lazarus.gtk1: error while loading shared libraries: libglib-1.2.so.0: cannot open shared object file: No such file or directory -------------------------------

In the end I gave up trying to resolve this issue. So I installed the GTK1 development libraries and recompiled Lazarus IDE for GTK1 using a 64bit compiler. Now everything is working perfectly.

Thanks for everybody that tried to help.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email