FreeBasic on Debian 10

Linux specific questions.
Post Reply
nov79
Posts: 47
Joined: Feb 23, 2020 15:31

FreeBasic on Debian 10

Post by nov79 »

I noticed alongside the packages pointed out by readme.txt we also need to install tinfo5 as Debian 10 now comes with tinfo6 and fbc requires the 5 ones. Someone should update readme.txt to include this. Thanks.
Landeel
Posts: 776
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: FreeBasic on Debian 10

Post by Landeel »

Same problem with *Ubuntu 20.04.
viewtopic.php?f=5&t=28443
robert
Posts: 168
Joined: Aug 06, 2019 18:45

Re: FreeBasic on Debian 10

Post by robert »

Landeel wrote:Same problem with *Ubuntu 20.04.
viewtopic.php?f=5&t=28443
The solution for Ubuntu 20.04 is

sudo apt install libtinfo5
caseih
Posts: 2063
Joined: Feb 26, 2007 5:32

Re: FreeBasic on Debian 10

Post by caseih »

Yes it's just a matter of installing the package. I'm running Debian 10 Buster on my Pine64 board and it has the package libncurses5 in it which has libtinfo.5. It appears to be available for all debian versions, even testing and unstable, along side the newer libncurses6 package.
Landeel
Posts: 776
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: FreeBasic on Debian 10

Post by Landeel »

libtinfo is part of Ncurses.
From what I've read, it is under a very permissive license.
I think we can just link it statically with our programs and forget about this dependency.
Please correct me if I'm wrong.
caseih
Posts: 2063
Joined: Feb 26, 2007 5:32

Re: FreeBasic on Debian 10

Post by caseih »

Sure you can statically link it in your own executables. But most people are using the provided fbc binaries from FreeBASIC which need that shared library.

But as we've shown, all you need to do is make sure the right packages are installed and everything works as it is now with the default binaries as provided by FreeBASIC and your own binaries.
Landeel
Posts: 776
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: FreeBasic on Debian 10

Post by Landeel »

fbc is a fbc program. The next version should come with static libtinfo.
robert
Posts: 168
Joined: Aug 06, 2019 18:45

Re: FreeBasic on Debian 10

Post by robert »

Landeel wrote:fbc is a fbc program. The next version should come with static libtinfo.
static libtinfo for which distro ???
Landeel
Posts: 776
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: FreeBasic on Debian 10

Post by Landeel »

I think the one from 18.04 is good enough. Got it to run from 14.04 to 20.04.
The one from 20.04 is not backwards compatible.

EDIT: Hm, that was the dynamic lib. I think with the static lib, any version will work.
Post Reply