Packages required for .20 and up in Ubuntu

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

Postby jdebord » Sep 23, 2008 9:36

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

Include path

Postby penguin007 » Sep 24, 2008 2:46

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: 1702
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Postby Sisophon2001 » Sep 24, 2008 4:34

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

Postby Turd » Oct 10, 2008 12:28

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

Postby jcfuller » Oct 10, 2008 13:01

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

Postby Turd » Oct 10, 2008 13:14

Thanks :-)

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

Postby Jojo » Dec 13, 2008 17:34

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: 1702
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Postby Sisophon2001 » Dec 14, 2008 0:28

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:

Postby Jojo » Dec 14, 2008 0:33

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"

Postby thiago.ortega » Feb 12, 2009 1:19

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: 1702
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Postby Sisophon2001 » Feb 12, 2009 11:24

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/viewtopic.php?p=101874#101874

http://www.freebasic.net/forum/viewtopic.php?p=114667#114667

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

Postby mathwizard44 » Mar 16, 2009 17:35

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:

Postby Galeon » Sep 05, 2009 14:18

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: 504
Joined: May 27, 2005 6:20
Location: Limoges, France
Contact:

Postby jdebord » Sep 06, 2009 6:32

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:

Postby Galeon » Sep 06, 2009 8:14

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

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests