Menu

Installation of GCBasic on linux

Help
2009-08-14
2013-05-30
  • Nobody/Anonymous

    OK, I know I am stupid, but... I have downloaded GCBasic and fbc (free basic compiler) but how do I actually use the latter to compile/install the former? I have searched the web andsure there are instructions but sorry, I don't understand, Please Help!
    Thanks in advance

     
    • Santiago

      Santiago - 2009-08-15

      Hello.
      To install freebasic open a termianl, move to freebasic folder and type:

      sudo ./install.sh -i

      To compile GcBasic:
      Download the last update of GcBasic from here:
      http://gcbasic.sourceforge.net/newfiles/update.zip
      Unzip and move to the GCBASIC folder overwriting previous files.

      Open a terminal, move to GCBASIC folder and type:

      fbc gcbasic.bas

      Now you should have the gcbasic executable in GCBASIC folder.
      Now you can do your configuration by editing te "sample gcbasic.ini" and save it as "gcbasic.ini"

      To have Gedit as GcBasic IDE have a look to this:
      https://sourceforge.net/forum/forum.php?thread_id=3302823&forum_id=629990

       
    • Santiago

      Santiago - 2009-08-15

      I forgot:
      To have GcBasic and asm sintax highlighting in Gedit (Ubuntu Hardy) you can install this files:
      http://www.box.net/shared/hfn191lyhu

      I think in Ubuntu Jaunty does not work, but you can find the lang and xml files inside the folders and install yourself in the proper place.

       
      • Nobody/Anonymous

        Thanks Guys,
        After I posted I also found this on the web which was very helpful -http://pic-linux.foroactivo.net/gcbasic-f26/compilador-basic-libre-para-pic-gcbasic-t89.htm
        or the alternative apt get gcbasic (which I ended up using)
        Thanks again for  your time and input.

         
    • mmotte

      mmotte - 2009-08-16

      I recently installed and got working GCBASIC on ubuntu jaunty.
      Biggest help was :  https://sourceforge.net/forum/message.php?msg_id=6171904
      RE: Problems compiling GCBASIC for linux
      By: Hugh Considine (w_cholmondeleyProject Admin) - 2009-01-19 04:02

      I use gedit in ubuntu for editor/ide.  I think it is as easy as crimson editor and i liked CE alot.

      gedit has what is called:   EXTERNAL TOOLS Mananger

      These are the tools I set up  one button commands  to compile , erase and download to PIC using  PICkit 2

      pk2cmd  was downloaded off of  Microchip site

      Ubuntu needed some usb library files to make the  PICkit 2 work..  Also pk2cmd  took some work to let the commands work without sudo and a password. you'll see... goto  http://groups.google.com/group/pickit-devel/  (sorry the printer didn't print the rest)

      this is my button descriptions.

      GCBASIC Compile
      Description:  GCBASIC Compile
      ShortcutKey:  F5
      Commands:     /home/mike/GCBASIC/gcbasic -NP $GEDIT_CURRENT_DOCUMENT_PATH
      Input:   Nothing
      Output:  Display in bottom pane
      Applicability:  All documents

      PIKKIT2 Program Compiled.hex
      Description:  upload .hex to chip
      ShortcutKey:  F6
      Commands:     pk2cmd  /PPIC16F886 /x /m  /F/home/mike/GCBASIC/compiled.hex  /r /t
      Input:   Nothing
      Output:  Display in bottom pane
      Applicability:  All documents

      PIKKIT2 ERASE
      Description:  PIKKIT2 Erase
      ShortcutKey:  F4
      Commands:    pk2cmd  /p  /e
      Input:   Nothing
      Output:  Display in bottom pane
      Applicability:  All documents

      thanks to santiago glez  for how to do these to make gedit easy to use

      Thanks Hugh for how to  compile using fbc and how to install

      Mike

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.