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 »

Web site for GRX: http://grx.gnu.de/
penguin007
Posts: 2
Joined: Sep 22, 2008 23:59

Include path

Post by penguin007 »

Actually, it's worse than than that. Whatever program I try to compile bombs out with a ld error indicating that it cannot find the particular library.

Looks like I'll have to compile FB from source........
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

Most of the examples with FB are examples of using external libraries. If they don't work, then it is because you don't have the library installed and configured, and it has nothing to do with FreeBASIC itself. Many new users get confused because they can't run all the samples.

Only three classes of examples should work out of the box, (1) a console application like a one line program

Code: Select all

print "hi"
, (2)the examples using the fbgfx library (with names in this pattern with fbgfx_*.bas in the examples/gfx folder) and (3) the OpenGL examples like fbgfx_opengl.bas and most of the NeHe OpenGL code in /home/garvan/FreeBASIC/examples/libraries/GL and GL/NeHe.

If you are on a windows computer, then the windows samples should work.

Concentrate on these examples to get a feel of FreeBASIC. Study the libraries in your free time, to see which ones are interesting to you. Nobody uses all the supported libraries, but we all have our favourites.

Garvan
Turd
Posts: 175
Joined: Aug 31, 2007 23:34
Location: Saskatchewan, Canada

Post by Turd »

Heres a crappy video of how I install FreeBASIC in Ubuntu.
jcfuller
Posts: 325
Joined: Sep 03, 2007 18:40

Post by jcfuller »

Turd wrote:Heres a crappy video of how I install FreeBASIC in Ubuntu.
Not crappy at all. Well Done

James
Turd
Posts: 175
Joined: Aug 31, 2007 23:34
Location: Saskatchewan, Canada

Post by Turd »

Thanks :-)

I hope it helps someone.
Jojo
Posts: 107
Joined: Jan 04, 2006 20:02
Contact:

Post by Jojo »

When trying to compile an OpenGL application, I get the error "ld: cannot find -lGL". which libraries do I have to install for GL support?
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

On my Ubuntu system (8.04 - did not update yet) it is using mesa. Look for libs like libgl*-mesa* and you should have the run-time versions already installed, so you just need to install the -dev versions to compile code.

This might be enough, but I have forgotten if there were any others.
libgl1-mesa-dev
Garvan
Jojo
Posts: 107
Joined: Jan 04, 2006 20:02
Contact:

Post by Jojo »

in the meantime, i found out that

Code: Select all

aptitude install libgl-dev libglu-dev
should be enough. :)
thiago.ortega
Posts: 2
Joined: Feb 10, 2009 23:26
Location: brasil
Contact:

help: "ld: cannot find -lgcc"

Post by thiago.ortega »

i'm trying to run freebasic in my ubuntu 8.10 (64 bits), but when i try to compile the program, appears:

"ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.2//libgcc.a when searching for -lgcc"
"ld: cannot find -lgcc"

can anyone help me?
Sisophon2001
Posts: 1706
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Post by Sisophon2001 »

Experienced users can get FB to work on 64 bit systems, but new users struggle. The process has not been automated yet. See these links

http://www.freebasic.net/forum/viewtopi ... 874#101874

http://www.freebasic.net/forum/viewtopi ... 667#114667

Garvan
mathwizard44
Posts: 72
Joined: Oct 13, 2006 6:11
Location: Latte Plantation, Guam
Contact:

Post by mathwizard44 »

Thanks for this list. After installing that list of packages, the installation and compilation of the hello world program went off without a hitch. Will try graphics examples later.
Galeon
Posts: 563
Joined: Apr 08, 2009 5:30
Location: Philippines
Contact:

Post by Galeon »

How i could install those packages using Windows?
My USB modem is not working in my Ubuntu Jaunty. There are no Linux computers here (other than mine).
jdebord
Posts: 547
Joined: May 27, 2005 6:20
Location: Limoges, France
Contact:

Post by jdebord »

Galeon wrote: My USB modem is not working in my Ubuntu Jaunty.
Did you try UbuDSL ?
http://www.ubudsl.com/en/start.php
Galeon
Posts: 563
Joined: Apr 08, 2009 5:30
Location: Philippines
Contact:

Post by Galeon »

I have a HSDPA USB Modem, can I use it?
Post Reply