Packages required for .20 and up in Ubuntu

Linux specific questions.
sir_mud
Posts: 1401
Joined: Jul 29, 2006 3:00
Location: US
Contact:

Packages required for .20 and up in Ubuntu

Postby sir_mud » Apr 16, 2008 17:46

9.04 (Jaunty) Console programs require:
sudo aptitude install libncurses5-dev libstdc++6-4.3-dev build-essential


9.04 (Jaunty) Graphics programs will require:
sudo aptitude install libX11-dev libXext-dev libXpm-dev libXrender-dev libXrandr-dev


7.10 (Gutsy) Console programs require:
sudo aptitude install binutils linux-libc-dev libncurses5-dev libstdc++6-4.1-dev build-essential


7.10 (Gutsy) Graphics programs will require:
sudo aptitude install libX11-dev libXext-dev libXpm-dev libXrender-dev libXrandr-dev


These package names may exist on older versions of Ubuntu or other Debian based distros.
If you are not on Gutsy and recieve compile time errors about missing -lsupc++ then you will need to run:
sudo aptitude install libstdc++6-dev

On most systems this is a virtual package provided by a couple other packages, you should choose the one with the same version as your copy of GCC, for example Gutsy uses GCC 4.1.3 and libstdc++6 is version 4.1.
Last edited by sir_mud on Apr 25, 2009 17:54, edited 2 times in total.
Veggiet
Posts: 156
Joined: Apr 17, 2006 19:41

Postby Veggiet » Jun 26, 2008 22:14

What about 8.04? I think that's hardy heron.
sir_mud
Posts: 1401
Joined: Jul 29, 2006 3:00
Location: US
Contact:

Postby sir_mud » Jun 27, 2008 9:19

These commands are the exact ones I used when setting up Debian 4.0 and a couple versions of Ubuntu, including Hardy.
jofers
Posts: 1525
Joined: May 27, 2005 17:18
Contact:

Postby jofers » Jun 27, 2008 16:05

Is there already an official .deb (or RPM) package? I've noticed a few community ones, but I prefer a package to a binary installation or script.

For example, I didn't have my install script when I tried to uninstall 18.3, and had to download the whole thing again just to uninstall my existing version.
jmsg
Posts: 52
Joined: Apr 12, 2008 2:23

8.04 Hardy Heron

Postby jmsg » Jul 12, 2008 17:39

Yep just got 8.04 HH via cheapbytes with" Unbuntu for non-geeks 3rd addition", (came with live cd) What a pleasure to install, just a few files needed for CD,DVD found easily with Ubuntu help! and walla, no lock ups and takes just a few seconds to shut down!!!! Is this how computers should run? So, now off to install Fb ,,,,,, In Synaptic package manager when searching for Free Basic it brings up Libfreebasic 0.18.2b-1, Question? Will the Fb download and this be sufficient or do I still need both + the ones above?

Question 2 , Can Fb linux use the Fb myfile.bas generated under windows via the Fbedit IDE?? or do i need to export from windows the myfile.bas via word processor in some specific format?

as always thanks in advance!
jmsg
Sisophon2001
Posts: 1702
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Postby Sisophon2001 » Jul 13, 2008 2:56

Answer 1:
The FB download includes all the files you need. libfreebasic is not required.

After installing the compiler you will have to add some development libraries using synaptic. When you try compiling some code you will get an error message saying a library cannot be found (the first one might be -lc or -lncurses) then you need to look for libc-dev (libncurses-dev etc. etc.) in synaptic and install it. It will take five minutes or so to get all you need. You may also need to install build-essential if you do not have it already.

Answer 2:
Text files in windows and linux have different line endings, but most modern editors can use both formats, and the compiler can use both formats, so there is not need to convert or change the file created in FBide.

Garvan

PS. I was wondering if you should have started a separate thread for your questions.
Last edited by Sisophon2001 on Jul 15, 2008 10:25, edited 1 time in total.
cha0s
Site Admin
Posts: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Postby cha0s » Jul 14, 2008 16:11

libfreebasic made it in? That's great! It was a sort of first-step on getting the compiler into the debian repos. Unfortunately I haven't heard much more from the guy who was coordinating that for us....
jmsg
Posts: 52
Joined: Apr 12, 2008 2:23

packages required cont

Postby jmsg » Jul 14, 2008 22:33

yes Libfreebasic 0.18.2b-1, gets pulled up in the Synaptic Package Manager!
The CD i just received from "Cheapbytes" Ubuntu 8.04 Hardy Heron, and it is the only reference it pulls up.
jmsg
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Postby KristopherWindsor » Aug 15, 2008 1:45

I just compiled and ran my first FB program in Ubuntu! :)
I needed all three of the installations mentioned, and this one:

Code: Select all

kristopher@kristopher-laptop:~$ sudo apt-get install libxrandr-dev
jdebord
Posts: 504
Joined: May 27, 2005 6:20
Location: Limoges, France
Contact:

Postby jdebord » Aug 15, 2008 7:40

I have just installed FB 0.20 in Ubuntu 8.04 (after uninstalling the 0.18 version). All was OK. FBMath compiled fine. No code modification was needed.

Many thanks to the FB developers !
Sslaxx
Posts: 107
Joined: Aug 31, 2008 16:53
Location: Malvern, Worcs, UK
Contact:

*nods*

Postby Sslaxx » Aug 31, 2008 17:03

Don't forget the relevant '-dev' packages if you're using things like, for example, Allegro.
roook_ph
Posts: 402
Joined: Apr 01, 2006 20:50
Location: philippines
Contact:

Postby roook_ph » Sep 07, 2008 5:19

been programming for puppylinux w/ allegro and cant get it to work . How about listing those dev packages. Debian works for puppy linux
Sslaxx
Posts: 107
Joined: Aug 31, 2008 16:53
Location: Malvern, Worcs, UK
Contact:

Postby Sslaxx » Sep 07, 2008 9:34

roook_ph wrote:been programming for puppylinux w/ allegro and cant get it to work . How about listing those dev packages. Debian works for puppy linux

I have no idea what they might be called under Puppy. Under Ubuntu it is liballegro4.2-dev - installing that would tell you what other dependencies you need. Similarly, for SDL...

libsdl-image1.2-dev - development files for SDL 1.2 image loading libray
libsdl-pango-dev - text rendering with Pango in SDL applications (development)
libsdl-ttf2.0-dev - development files for SDL ttf library (version 2.0)
libsdl1.2-dev - Simple DirectMedia Layer development files
libsdl-console-dev - development files for libsdl-console
libsdl-gfx1.2-dev - development files for SDL_gfx
libsdl-net1.2-dev - Development files for SDL network library
libsdl-sound1.2-dev - Development files for SDL_sound
libsdl-stretch-dev - development files for SDL_stretch library
libsdl-mixer1.2-dev - development files for SDL1.2 mixer library

Your mileage may vary on this one, though.
penguin007
Posts: 2
Joined: Sep 22, 2008 23:59

ld: cannot find -lgrx20

Postby penguin007 » Sep 23, 2008 1:02

Ubuntu 7.10

Done all the good stuff and can compile console based programs. However, when trying to compile the grx_test.bas in the examples folder, I get the message:

ld: cannot find -lgrx20

I think it is some problem with the path? I have also tried compiling with the -p option:

fbc -p /home/myname/linux/languages/freebasic/FreeBASIC/inc/grx grx_test.bas

but it still complains.

Any ideas?

As far as libraries are concerned, I have finally figured out I need these:

Code: Select all

sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install build-essential
sudo apt-get install binutils
sudo apt-get install ncurses-dev
sudo apt-get install libncurses5-dev
sudo apt-get install libc6-dev
sudo apt-get install libx11-dev
sudo apt-get install libxext-dev
sudo apt-get install libxpm-dev
sudo apt-get install libxrandr-dev
sudo apt-get install libxrender-dev
sudo apt-get install x11proto-core-dev
sudo apt-get install x11proto-input-dev
sudo apt-get install x11proto-kb-dev
sudo apt-get install x11proto-randr-dev
sudo apt-get install x11proto-render-dev
sudo apt-get install x11proto-xext-dev
sudo apt-get install xtrans-dev
sudo apt-get install libxdmcp-dev
sudo apt-get install libxau-dev
sudo apt-get install libxi-dev
sudo ln /usr/lib/gcc/i486-linux-gnu/4.1/libsupc++.a /usr/bin/libsupc++.a
sudo ln /usr/lib/gcc/i486-linux-gnu/4.1/libgcc_eh.a /usr/bin/libgcc_eh.a
Sisophon2001
Posts: 1702
Joined: May 27, 2005 6:34
Location: Cambodia, Thailand, Lao, Ireland etc.
Contact:

Postby Sisophon2001 » Sep 23, 2008 5:46

For GRX 2D I think you will need to compile the library from the source code, which you can find using Goggle. It is not listed in the repositories of Ubuntu.

Looking at the list of libraries you installed, so are duplicates, and some look like they should be unnecessary, but if you can get it to work then that is what is important.

Garvan

Return to “Linux”

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests