Packages required for .20 and up in Ubuntu

Linux specific questions.
jdebord
Posts: 547
Joined: May 27, 2005 6:20
Location: Limoges, France
Contact:

Post by jdebord »

It works with my SpeedTouch 330 ADSL USB modem, but for other modems I am not sure. You should check the site :)
Galeon
Posts: 563
Joined: Apr 08, 2009 5:30
Location: Philippines
Contact:

Post by Galeon »

jdebord - I don't know what happened; its now working :)

Installing FreeBASIC without Internet Connection in Ubuntu Jaunty:
Download these packages from http://packages.ubuntu.com:
libncurses5-dev
libstdc++6-4.3-dev
g++-4.3
g++
patch
dpkg-dev
build-essential
x11proto-core-dev
libxau-dev
libxdmcp-dev
x11proto-input-dev
x11proto-kb-dev
xtrans-dev
libpthread-stubs0
libpthread-stubs0-dev
libxcb1-dev
libx11-dev
x11proto-xext-dev
libxext-dev
libxpm-dev
x11proto-render-dev
libxrender-dev
x11proto-randr-dev
libxrandr-dev

and these from Debian's repositories:
freebasic_0.20.0b_i386
check other posts in this forum for the links

Install them using dpkg, with "dpkg -i <package path>" but use "dpkg -i --force-configure-any <package path>" for g++-4.3, if there is an error message in libstdc++6-4.3-dev just ignore it. Install all packages in the same order.
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Post by dkl »

Based on a clean Ubuntu 10.04, I could get FreeBASIC 0.21 to work with these packages:

32bit Ubuntu:
libncurses5-dev
libx11-dev
libxext-dev
libxpm-dev
libxrandr-dev
libxrender-dev
libstdc++6-4.4-dev (only needed with the normal non-standalone FreeBASIC)
64bit Ubuntu with standalone FreeBASIC:
ia32-libs
libc6-dev-i386
lib32ncurses5-dev
Erik1984
Posts: 76
Joined: Sep 16, 2010 11:17
Location: The Netherlands

Post by Erik1984 »

dkl wrote:Based on a clean Ubuntu 10.04, I could get FreeBASIC 0.21 to work with these packages:

32bit Ubuntu:
libncurses5-dev
libx11-dev
libxext-dev
libxpm-dev
libxrandr-dev
libxrender-dev
libstdc++6-4.4-dev (only needed with the normal non-standalone FreeBASIC)
64bit Ubuntu with standalone FreeBASIC:
ia32-libs
libc6-dev-i386
lib32ncurses5-dev
I have 32-bit Ubuntu 10.10 and got it to work using the same packages, installing them with Synaptic. Also my first time installing FB on Ubuntu (just recently switched from Windows ) and it wasn't as hard as I feared ;) . Just compiled 2 .bas files I made in Windows and they ran fine.
Veggiet
Posts: 156
Joined: Apr 17, 2006 19:41

Re: Packages required for .20 and up in Ubuntu

Post by Veggiet »

Ok I'm really getting frustrated now. I'm running UBUNTU 12.04 64-bit I've installed fbc from FreeBASIC-0.23.0-linux.run, I've installed all these pkgs through aptitude:
libncurses5-dev
libx11-dev
libxext-dev
libxpm-dev
libxrandr-dev
libxrender-dev
libstdc++6-4.4-dev (only needed with the normal non-standalone FreeBASIC)
ia32-libs
libc6-dev-i386
lib32ncurses5-dev
and the console apps are conpiling, but if I try a graphics app I get (from geany):

Code: Select all

fbc -w all "helloworld.bas"  (in directory: /home/samuel/Basic)
ld: cannot find -lX11
ld: cannot find -lXext
ld: cannot find -lXpm
ld: cannot find -lXrandr
ld: cannot find -lXrender
Compilation failed.
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Packages required for .20 and up in Ubuntu

Post by dkl »

Apparently Ubuntu 12.04's ia32-libs doesn't include 32bit versions of the X11 development files anymore. I suspect that it's now necessary to install multiarch packages: libx11-dev:i386, libxext-dev:i386, etc.
Veggiet
Posts: 156
Joined: Apr 17, 2006 19:41

Re: Packages required for .20 and up in Ubuntu

Post by Veggiet »

Thanks that worked great! All of them automatically installed with apt-get, except for one package libXpm-dev:i386 it's wouldn't allow me to install, so I had to manually remove the installed version with 'sudo apt-get purge libXpm-dev' Thanks again!
counting_pine
Site Admin
Posts: 6323
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Packages required for .20 and up in Ubuntu

Post by counting_pine »

Hi. My fbc manual build returned this after a (32-bit) 12.04 upgrade:

Code: Select all

fbc: error while loading shared libraries: libbfd-2.21.53-system.20110810.so: cannot open shared object file: No such file or directory
Reinstalling FB from the official .run file (along with the 7 pkgs from Veggiet's post) I think I've nearly got the build working now, but apparently I'm missing libsupc++.
According to this page I either need to be on ia64 or to install the mingw32 package, can that be right?

EDIT: Never mind, I think I might have fixed it by installing libstdc++6-4.6-dev or something.. Now trying to make from scratch. Looks like more packages require installing, though hopefully just the ones listed in the wiki..

EDIT2: Doh, my above search link (obtained from Google) was searching specifically in ia64 packages!
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Packages required for .20 and up in Ubuntu

Post by dkl »

Yea, libbfd can really be annoying when dynamically linked... on Debian unstable you have such updates every other week, in that case it's easier to disable objinfo in fbc or statically link against a self-built libbfd.

libstdc++ is indeed in the package with the same name, though I'd recommend to just install the whole "g++" package which should pull in the appropriate libstdc++, and also ensure it's updated properly.
Laiko
Posts: 5
Joined: May 13, 2012 22:30
Location: Germany

Re: Packages required for .20 and up in Ubuntu

Post by Laiko »

Hello!
I'm new to the forum and my english is bad
why is text edit with google translator.
I beg your forgiveness for this weakness.

This topic has already helped me very much.
I had the same problem as Veggiet after the update
Ubuntu 64-bit 11:10 to
Ubuntu LTS on 12:04 64-bit and I have the 32-bit packet
installed and the error message was wake.
But in my program I use with OpenGL and fbsound0.10 :
# INCLUDE ONCE "GL / gl.bi"
# INCLUDE ONCE "GL / glu.bi"
#LIBPATH "../fbsound0.10/lib"
#INCLUDE ONCE "../fbsound0.10/inc/fbsound.bi"

And now I get this error message:

fbc "Moon7.bas" (in directory: / home / Laiko / Desktop / Moon)
Moon7.bas () warning 21 (2): Object files or libraries with mixed multithreading (-mt) options, fbsoundlin
ld: can not find-lGL
ld: can not find-igloo
ld: can not find-logg
ld: can not find-lvorbis
ld: can not find-lvorbisfile
Compilation failed.

What packages should I install to use OpenGL and fbsound0.10 ?

Thank you!
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Packages required for .20 and up in Ubuntu

Post by dkl »

I can't test, but here's my guess:
libgl1-mesa-dev:i386
libogg-dev:i386
libvorbis-dev:i386
I don't know about -lgloo though.
Laiko
Posts: 5
Joined: May 13, 2012 22:30
Location: Germany

Re: Packages required for .20 and up in Ubuntu

Post by Laiko »

Thank you dkl !

You were right, the packets have fixed most errors.
But, unfortunately, remains the OpenGL window with black because it GLU
must be initialized with:

# INCLUDE ONCE "GL / glu.bi"
REM set default settings for the OpenGL-Window
gluPerspective 45.0, 800.0/600.0, 0.1, 2000.0

Which package should I install for GLU?
Laiko
Posts: 5
Joined: May 13, 2012 22:30
Location: Germany

Re: Packages required for .20 and up in Ubuntu

Post by Laiko »

I'm sorry!
I've forgotten the message compiler.

fbc "Moon7.bas" (in directory: / home / Laiko / Desktop / Moon)
Moon7.bas () warning 21 (2): Object files or libraries with mixed multithreading (-mt) options, fbsoundlin
ld: cannot find -lGLU
Compilation failed.
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Packages required for .20 and up in Ubuntu

Post by dkl »

I think it's this one:
libglu1-mesa-dev:i386
and if you need GLUT too, then this should do:
freeglut3-dev:i386
Laiko
Posts: 5
Joined: May 13, 2012 22:30
Location: Germany

Re: Packages required for .20 and up in Ubuntu

Post by Laiko »

Thanks!
Everything is working again!
Post Reply