WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: FreeBasic 0.23.0  (Read 5366 times)

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
FreeBasic 0.23.0
« on: November 22, 2011, 06:37:23 AM »
Hello to all members,

I'm trying to make .tcz extension for FreeBasic 0.23.0.

In first time, errors are requesting next files ...

as
libbfd-2.2.1.0-system.20110327.so
libopcodes-2.2.1.0-system.20110327.so

Package as86.tcz does not include that files.  I was get that files from my /usr/bin and /usr/lib folders into Ubuntu hard drive.  But after this is requesting me for next files ...

crt1.o
crtbegin.o
crtend.o
crti.o
crtn.o
gcrt1.o
libgcc.a
libsupc++.a

Which .tcz packages contains that files?

Thanks.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: FreeBasic 0.23.0
« Reply #1 on: November 22, 2011, 06:46:02 AM »
You need the compiletc meta-extension

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: FreeBasic 0.23.0
« Reply #2 on: November 22, 2011, 07:28:31 AM »
Hello Juanito,

I was load compiletc & gcc packages.  Still not run.  It shows me that don't found next files ...

crt1.o
crti.o
crtn.o
gcrt1.o

But that files are installed in /lib folder.  Any solve?

Thank you.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: FreeBasic 0.23.0
« Reply #3 on: November 22, 2011, 08:07:35 AM »
Hi AlejandroPadrino
All you should need is the  compiletc  package. It includes GCC, assembler, etc. Do not load GCC
separately.
Quote
But that files are installed in /lib folder.  Any solve?
Those files should appear in  /usr/lib  when  compiletc is loaded.
« Last Edit: November 22, 2011, 08:19:32 AM by Rich »

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Re: FreeBasic 0.23.0 - (SOLVED)
« Reply #4 on: November 22, 2011, 08:26:05 AM »
Thank you, Rich.  Problems was solved.   :)

Steps for loading FreeBasic manually:

1) Load compiletc.tcz package.
2) Load ncurses-dev.tcz package.
3) Run 'sudo FreeBASIC-0.23.0-linux.run install' from original source file.
4) Get a copy of 'as' assembler file and put it into '/usr/bin' folder.
5) Get a copy of 'libopcodes-2.2.1.0-system.20110327.so' and 'libbfd-2.2.1.0-system.20110327.so' files, and put them into '/usr/lib' folder.

Now you can compile and run FreeBasic projects.

Best.
« Last Edit: November 22, 2011, 08:57:13 AM by AlejandroPadrino »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: FreeBasic 0.23.0
« Reply #5 on: November 22, 2011, 08:41:55 AM »
Hi AlejandroPadrino
Glad to hear you got it working.
Quote
4) Get a copy of 'as' assembler file and put it into '/usr/bin' folder.
Sounds like  freebasic  has that path hard coded instead of searching the standard paths. Compiletc
puts the assembler under  /usr/local/bin  which is in the standard path.

Offline AlejandroPadrino

  • Full Member
  • ***
  • Posts: 143
Few steps to run - (BUG SOLVED)
« Reply #6 on: November 22, 2011, 11:50:23 AM »
Hello Rich,

Really GNU Assembler steps posted before are not needed, I was test now.  GNU Assembler included into compiletc.tcz package runs fine.  To run FreeBasic in TinyCore only requires first three steps.

1) Load compiletc.tcz package.
2) Load ncurses-dev.tcz package.
2) Load ncurses.tcz package.
3) Run 'sudo FreeBASIC-0.23.0-linux.run install' from original source file.

Edited:  I was found a bug.  Can't compile and link using ncurses-dev.tcz.  The bug was solved changing ncurses-dev.tcz with ncurses.tcz.  Package freebasic.tcz ready to submit, and tested with "Hello world" application.

Best.   ;)
« Last Edit: November 22, 2011, 03:44:06 PM by AlejandroPadrino »