pbp and linux


Results 1 to 32 of 32

Thread: pbp and linux

Threaded View

  1. #6
    Join Date
    Dec 2012
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: pbp and linux

    ok, got gEdit fully working with integrated compiling! here's how I did it:

    First, I installed gEdit's external tools using "sudo apt-get install gedit-plugins",
    Then added the pbp.lang file to /usr/shared/gtksourceview-2.0/language-specs/
    You need to close out of all gEdit windows at this time and restart it to get the new language to show up.
    Finally, I went to gEdit and went to Tools/Manage External Tools, and created an entry called Compile PBP code, and added this into the codebox at the right:

    #!/bin/sh
    wine c:/pbp/pbpw -e -s -ac:/Program Files/Microchip/MPASM Suite/MPASMWIN -p12f675 $GEDIT_CURRENT_DOCUMENT_NAME
    var=$GEDIT_CURRENT_DOCUMENT_NAME
    var2=${var%???}
    outasm=$var2"ASM"
    wine c:/Program\ Files/Microchip/MPASM\ Suite/mpasmwin /e /l $outasm
    Then finally clicked on the save option in the external tools manager and clicked "current document". Click close out of the external tools options and when your ready to compile your code, just go to tools/external tools/Compile PBP code, and it'll compile everything just right.

    Just make sure you change the -12f675 to whatever PIC your using tho and it should work flawlessly. Here's the file again to keep everything organized:

    pbp.lang.zip

    Ps. mackrackit, using this requires no more premade batch files :P
    Last edited by Chirpy; - 6th December 2012 at 09:09.

Similar Threads

  1. Replies: 1
    Last Post: - 30th October 2012, 09:28
  2. Replies: 5
    Last Post: - 16th October 2012, 20:31
  3. Linux with PBP
    By sayzer in forum PBP Wish List
    Replies: 0
    Last Post: - 8th August 2006, 21:27
  4. LINUX IDE and PBP
    By mslaney in forum General
    Replies: 0
    Last Post: - 5th January 2005, 20:43
  5. Linux
    By mackrackit in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 5th February 2004, 21:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts