Missing some library on Debian 64Bit

Linux specific questions.
exagonx
Posts: 110
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Missing some library on Debian 64Bit

Postby exagonx » Jun 14, 2014 21:04

Hello I have installed the FBC , work correctly with normal prg. but when I try to compile a program with gtk

appair this

ld: cannot find -lgtk-x11-2.0
ld: cannot find -lgdk-x11-2.0
ld: cannot find -lgio-2.0
ld: cannot find -lgobject-2.0
ld: cannot find -lglib-2.0
ld: cannot find -lgmodule-2.0
ld: cannot find -lcairo
ld: cannot find -lpango-1.0
ld: cannot find -lgdk_pixbuf-2.0
ld: cannot find -lpangocairo-1.0
ld: cannot find -latk-1.0



Some people got same error ?
Were is my mistake ?

Fbc work correctly without GTK

Debian 7 64 bit
dkl
Site Admin
Posts: 3209
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Missing some library on Debian 64Bit

Postby dkl » Jun 14, 2014 21:55

Looks like you don't have the 32bit GTK+ 2 development libraries installed. I think you need to install this package:

libgtk2.0-dev:i386


and maybe others if that's not enough.
TJF
Posts: 3481
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Missing some library on Debian 64Bit

Postby TJF » Jun 14, 2014 22:40

You can install version 2 and the newer version 3 at the same system:
sudo apt-get install libgtk2.0-dev:i386 libgtk2.0-doc libgtk-3-dev:i386 libgtk-3-doc

(2 should be first) and then compile your code against either the older or the new binaries.
exagonx
Posts: 110
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: Missing some library on Debian 64Bit

Postby exagonx » Jun 15, 2014 7:31

TJF wrote:You can install version 2 and the newer version 3 at the same system:
sudo apt-get install libgtk2.0-dev:i386 libgtk2.0-doc libgtk-3-dev:i386 libgtk-3-doc

(2 should be first) and then compile your code against either the older or the new binaries.

for those library i have to remove gdm3 because uncompatible and when i reinstall gtk3 and gdm3 again this library become replaced.
any suggestion ?

anyway Thank you for help my friend.
TJF
Posts: 3481
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Missing some library on Debian 64Bit

Postby TJF » Jun 15, 2014 10:39

Sorry, no idea. (It runs fine on my 32 bit system with gdm3.)

I wouldn't code GTK+-2 any more. GTK+-3 runs fine on all systems.

You may try a manual installation (?and compilation?) of the 32 bit libraries?
exagonx
Posts: 110
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: Missing some library on Debian 64Bit

Postby exagonx » Jun 15, 2014 14:53

I hope one day someone can make a 64bit version of freebasic
MOD
Posts: 555
Joined: Jun 11, 2009 20:15

Re: Missing some library on Debian 64Bit

Postby MOD » Jun 15, 2014 15:19

We can already use x86_64 versions of the next fbc: http://users.freebasic-portal.de/stw/builds/linux64/
exagonx
Posts: 110
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: Missing some library on Debian 64Bit

Postby exagonx » Jun 16, 2014 15:03

MOD wrote:We can already use x86_64 versions of the next fbc: http://users.freebasic-portal.de/stw/builds/linux64/

Thank you MOD
But why in the main page is no link for 64bit linux ?
dkl
Site Admin
Posts: 3209
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Missing some library on Debian 64Bit

Postby dkl » Jun 27, 2014 12:43

I will add a link when the next FB version is released - then we'll have 64bit support for the first time in an official FB release.
exagonx
Posts: 110
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: Missing some library on Debian 64Bit

Postby exagonx » Jun 27, 2014 17:42

dkl wrote:I will add a link when the next FB version is released - then we'll have 64bit support for the first time in an official FB release.

I see, thank you anyway.
But My problem still alive , I cant compile software with 64 bit library GTK.
I have no idea what we need for compile In GTK mode .
dkl
Site Admin
Posts: 3209
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Missing some library on Debian 64Bit

Postby dkl » Jun 27, 2014 18:55

Well, you could try the 64bit FB preview builds - it already works pretty well, and would let you use the 64bit GTK libraries.

Other than that though, for 32bit FB, you need 32bit GTK libraries. Normally it's no problem to install those even on 64bit Debian systems. I have no idea why it doesn't work for you - maybe it's a Debian packaging bug.

Here's the package names again if you want to retry:

GTK2 32bit: libgtk2.0-dev:i386
GTK2 64bit: libgtk2.0-dev:amd64
GTK3 32bit: libgtk-3-dev:i386
GTK3 64bit: libgtk-3-dev:amd64


To tell gtk/gtk.bi to use the GTK3 libraries instead of the GTK2 ones, compile your .bas with -d __USE_GTK3__ or put #define __USE_GTK3__ at the top of your .bas, above the #include "gtk/gtk.bi".
TJF
Posts: 3481
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Missing some library on Debian 64Bit

Postby TJF » Jun 28, 2014 5:14

dkl wrote:... it doesn't work for you - maybe it's a Debian packaging bug.

exagons reported a problem with gdm (display manager) and the 32 bit GTK libraries. Yes, I also think it's a packaging problem.

To fix it, I'd try

  • install the 32 bit GTK3
  • copy all files (binaries and configuration) to a second set of files/folders
  • reinstall the 64 Bit GTK3 (and override the 32 bit)
and then set the linker to use the copied folders.

IMHO it's also interesting to know if the 64 bit fbc works with the 64 bit GTK3 and the existing headers. (I don't expect problems, since GLib integer types are used everywhere.)
dkl
Site Admin
Posts: 3209
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Missing some library on Debian 64Bit

Postby dkl » Jun 28, 2014 7:38

Seems like Debian 7 still has the ia32-libs type of packages, and the multiarch stuff isn't fully working. So here's another idea:

apt-get install ia32-libs ia32-libs-gtk


Maybe that's the right way to install 32bit GTK2 libraries on Debian 7.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 1 guest