Shop OBEX P1 Docs P2 Docs Learn Events
PropellerIDE Development Thread - Page 5 — Parallax Forums

PropellerIDE Development Thread

12357

Comments

  • Roger Lee wrote: »
    Hello Brett,

    Thank you for an excellent program in PropellerIDE.
    It is really shaping up, well done.

    I upgraded from ver. 0.33.3 to ver. 0.36.5 on February 9th (2016)
    running on a Raspberry Pi 2 model B Raspbian-Jessie

    I'm sure I have some done something wrong in the install process.
    It is now running very slowly.
    Screen scrolling and selecting text takes soooooo long.

    attached ( I hope ) is the terminal screen boot report.

    The Warning messages may mean more to you than they do to me. :)
    Thanks you for any help you may have.

    Roger.
    
    pi@RPi2:~ $ propelleride 
    libEGL warning: GLX/DRI2 is not supported
    libEGL warning: DRI2: failed to authenticate
    libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:${ORIGIN}/dri:/usr/lib/dri)
    [DEBUG] main: PropellerIDE v0.36.5 - An easy-to-use, cross-platform IDE for the Parallax Propeller
    [WARN ] default: Cant find EGLConfig, returning null config
    [WARN ] default: Unable to find an X11 visual which matches EGL config 0
    [WARN ] default: Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
    [DEBUG] color.scheme: loading ":/themes/Dusk_Ocean.theme"
    [DEBUG] color.scheme: loading "/home/pi/.config/Parallax/PropellerIDE.conf"
    [DEBUG] color.scheme: saving "/home/pi/.config/Parallax/PropellerIDE.conf"
    [DEBUG] project.parser: rebuilding project model
    [WARN ] default: Cant find EGLConfig, returning null config
    [WARN ] default: Unable to find an X11 visual which matches EGL config 0
    [WARN ] default: Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/usr/share/propelleride/library/library/com.serial.terminal.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/RGB_Cube_Docs.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/jm_ws2812.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/RGB-Cube-4.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    
    


    Hi Roger. From reading the output, it looks like it's failing to initialize OpenGL, which would explain the slow. Make sure that you've installed the extra EGL stuff you need on Raspberry Pi (https://bweir.gitbooks.io/propelleride/content/user/getting-started/installing-propelleride.html)
    sudo apt-get update
    sudo apt-get install qt5-default qt5-qmake libegl1-mesa libgles2-mesa
    

    If that doesn't work, try this (https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=86467)
    sudo apt-get install build-essential
    sudo apt-get install mesa-common-dev
    sudo apt-get install libglu1-mesa-dev -y
    
  • Hi Brett,

    I have it working following the suggestion from dnalor, for files in the same directory as the main, open the file, edit and save. Then all the function expand and auto-suggest works.
    Thank you for your work on the IDE.

  • Thanks Brett,

    Will try your suggestions and report back, probably Monday.

    Roger.
  • I have it working now following the suggestion from dnalor, edit the additional files, save them and they start to work.

    Thank you for the IDE Brett.
  • Roger LeeRoger Lee Posts: 339
    edited 2016-02-16 02:19
    Monday update:

    I feel like this is progress :)
    it's been a long day. I confused myself so went with a reinstall of Raspbian.
    This is my current result. It is workable now (much better). Still one warning showing up at launch.
    
    pi@mypi:~ $ propelleride 
    libEGL warning: DRI2: failed to authenticate
    [DEBUG] main: PropellerIDE v0.36.7 - An easy-to-use, cross-platform IDE for the Parallax Propeller
    [DEBUG] color.scheme: loading ":/themes/Dusk_Ocean.theme"
    [DEBUG] color.scheme: loading "/home/pi/.config/Parallax/PropellerIDE.conf"
    [DEBUG] color.scheme: saving "/home/pi/.config/Parallax/PropellerIDE.conf"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/usr/share/propelleride/library/library/com.serial.terminal.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/RGB-Cube-4.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] mainwindow: creating terminal
    [DEBUG] ide.terminal: switch to port "ttyAMA0"
    [ERROR] pm.device: Failed to open device: "ttyAMA0"
    [ERROR] pm.device: Failed to open device: "ttyAMA0"
    [DEBUG] ide.terminal: switch to port "ttyUSB0"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] build.manager: /usr/bin/openspin
    [DEBUG] build.manager:      -L/usr/bin/../share/propelleride/library/library
    [DEBUG] build.manager:      /home/pi/Propeller Code/RGB-Cube-4.spin
    
    


    Roger




  • I spoke too soon. and with not much in the way of information. sorry about that.

    The last report where I said it was working is incorrect. It looks better, but will not open a new file.

    I'm now going to try this from the beginning. baby steps.
    here is the file /etc/apt/sources.list after I have add the last 2 lines.
    deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
    # Uncomment line below then 'apt-get update' to enable 'apt-get source'
    deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
    
    deb http://twolife.be/raspbian/ wheezy main backports
    deb-src http://twolift.be/raspbian/ wheezy main backports
    

    when I then run sudo apt-get update I get the following message:
    pi@mypi:~ $ sudo apt-get update
    Get:1 http://twolift.be wheezy InRelease
    Get:2 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]                                                     
    Hit http://archive.raspberrypi.org jessie InRelease                                                                     
    Ign http://twolift.be wheezy InRelease                                                                                  
    E: GPG error: http://twolift.be wheezy InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    pi@mypi:~ $
    

    I've looked for typos and such, another set of eyes is welcome.

    Roger.

  • Quick question, What version of raspbian are you trying to use?
  • 
    pi@mypi:~ $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="8"
    VERSION="8 (jessie)"
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    pi@mypi:~ $
    
  • Ah that's why it's complaining. You don't need wheezy backports if you're already using jessie. Take out those lines and try updating again.
  • Roger LeeRoger Lee Posts: 339
    edited 2016-02-18 02:11
    Thank you for your time Brett,

    commented out the lines ( /etc/apt/sources.list is back to original form)
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install qt5-default qt5-qmake libegl1-mesa libgles2-mesa

    this is what I get now:
    pi@mypi:~ $ propelleride 
    libEGL warning: DRI2: failed to authenticate
    [DEBUG] main: PropellerIDE v0.36.7 - An easy-to-use, cross-platform IDE for the Parallax Propeller
    [DEBUG] color.scheme: loading ":/themes/Dusk_Ocean.theme"
    [DEBUG] color.scheme: loading "/home/pi/.config/Parallax/PropellerIDE.conf"
    [DEBUG] color.scheme: saving "/home/pi/.config/Parallax/PropellerIDE.conf"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/RGB_Cube_Docs.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/usr/share/propelleride/library/library/com.serial.terminal.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/jm_ws2812.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/RGB-Cube-4.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    

    Still missing something (?)
    It seems to be running better (again)and I can load new files .

    EDIT: It let me load one new file one time, then the file open window locks up.


  • Heater.Heater. Posts: 21,230
    Roger Lee,
    I've looked for typos and such, another set of eyes is welcome.
    Well, you have "http://twolift.be" in your sources file instead of "http://twolife.be".

    Now, I know that twolife was a way to get qt5 onto raspbian but it's a really bad idea.

    Adding such sources to your system often leads to problems with your package manager, dependencies get messed up. apt stops working.

    It's better to never add any sources to sources.list that are not official repos for your OS.

    Yes, I know, the net is full of instructions about installing whatever program that tell you to do exactly that. It's just dangerous.
  • quote="Roger Lee;1366119"]Thank you for your time Brett,

    commented out the lines ( /etc/apt/sources.list is back to original form)
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install qt5-default qt5-qmake libegl1-mesa libgles2-mesa

    this is what I get now:
    pi@mypi:~ $ propelleride 
    libEGL warning: DRI2: failed to authenticate
    [DEBUG] main: PropellerIDE v0.36.7 - An easy-to-use, cross-platform IDE for the Parallax Propeller
    [DEBUG] color.scheme: loading ":/themes/Dusk_Ocean.theme"
    [DEBUG] color.scheme: loading "/home/pi/.config/Parallax/PropellerIDE.conf"
    [DEBUG] color.scheme: saving "/home/pi/.config/Parallax/PropellerIDE.conf"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/RGB_Cube_Docs.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/usr/share/propelleride/library/library/com.serial.terminal.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/jm_ws2812.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] file.manager: opening "/home/pi/Propeller Code/RGB-Cube-4.spin"
    [DEBUG] project.parser: rebuilding project model
    [DEBUG] project.parser: rebuilding project model
    

    Still missing something (?)
    It seems to be running better (again)and I can load new files .

    EDIT: It let me load one new file one time, then the file open window locks up.


    [/quote]

    Hmmm I'm really not sure what's going on. It looks like a driver problem. I haven't seen behavior like that on any other installation. I'll take a look at it myself when i get home from my trip tomorrow.
  • Thanks Heater,

    Old eyes, that's my story , and I'm sticking to it. :thumb:
  • Heater.Heater. Posts: 21,230
    edited 2016-02-20 00:05
    Roger Lee,

    OK. I just realized something horribly wrong here.

    In your first post here you stated that you are using the latest Raspbian-Jessie on your Raspberry Pi. This is good.

    As such you should not be installing any Qt5 from twolife.be. Do not do that!

    Raspbian Jessie has Qt5 packages available in it's repo now. The twolife.be thing was for those who wanted Qt5 on Raspbian Wheezy that only had Qt4.

    To install Qt5 on Jessie do the following:
    $ sudo apt-get update
    $ sudo apt-get upgrade
    $ sudo apt-get install qt5-default
    $ qmake --version
    QMake version 3.0
    Using Qt version 5.3.2 in /usr/lib/arm-linux-gnueabihf
    
    I have not checked but it sounds to me like there are some PropellerIDE instructions that need updating for Raspian Jessie.


    EDIT: Oops I now notice Brett has said all that above !



  • Hi Bret,
    Just FYI I installed Propeller IDE on my raspberry pi this AM an it works! I had an initial problem that turned out to be a dead Quickstart board. Another board and fixint the path in preferences and presto my test "hello world blink demo started working!
    Thanks for all your efforts.
    Jim
  • Brett WeirBrett Weir Posts: 288
    edited 2016-02-28 02:02
    Heater. wrote: »
    Roger Lee,

    OK. I just realized something horribly wrong here.

    In your first post here you stated that you are using the latest Raspbian-Jessie on your Raspberry Pi. This is good.

    As such you should not be installing any Qt5 from twolife.be. Do not do that!

    Raspbian Jessie has Qt5 packages available in it's repo now. The twolife.be thing was for those who wanted Qt5 on Raspbian Wheezy that only had Qt4.

    To install Qt5 on Jessie do the following:
    $ sudo apt-get update
    $ sudo apt-get upgrade
    $ sudo apt-get install qt5-default
    $ qmake --version
    QMake version 3.0
    Using Qt version 5.3.2 in /usr/lib/arm-linux-gnueabihf
    
    I have not checked but it sounds to me like there are some PropellerIDE instructions that need updating for Raspian Jessie.


    EDIT: Oops I now notice Brett has said all that above !

    Haha, sorry for any confusion. I've been in vacation mode for the past couple weeks so I haven't been checking this topic or any others much. =P
  • Just to let you know, after several run it give me a
    "Build Failed"
    "Failed to start compiler: 'openspin'; "check Preferences"
    
    Then I have to close down, and start up again, and it works again for a while.
    Linux Mint 17.3 64 bit
    PropellerIDE version: 0.37.2
    834 x 360 - 39K
    416 x 491 - 42K
    512 x 272 - 78K
  • Ok,
    I am installing propelleride on Linux Mint and having some problems,so I have bumped the thread to make it easier to find.
    Jim
  • Has anyone installed an AMD64 version under Linux.mint? I can download propelleride-0-37.3-amd64.run but cannot seem to get it to install.
    ~ $ sudo dpkg -i propelleride-0.37.3-amd64.run
    Jim

  • fridafrida Posts: 155
    edited 2016-05-29 14:53
    That is the version I am using now, on Linux Mint 17.3 64 bit
    propelleride-0.37.3-amd64.deb
  • RS_Jim wrote: »
    Has anyone installed an AMD64 version under Linux.mint? I can download propelleride-0-37.3-amd64.run but cannot seem to get it to install.
    ~ $ sudo dpkg -i propelleride-0.37.3-amd64.run
    Jim

    A .run file is installed via
    ~ $ sudo ./propelleride-0.37.3-amd64.run
    

    .run files are not installable through a package manager such as dpkg.
  • Thanks David
    Jim
  • Still no joy, command not found
    Jim
  • chmod +x propelleride-0.37.3-amd64.run first (when you download it default permissions normally only allow read and write :))
  • Heater.Heater. Posts: 21,230
    I presume you are in the directory where it was downloaded when you run that command.

    "File not found" is not "Permission denied".
  • Yes
    Heater. wrote: »
    I presume you are in the directory where it was downloaded when you run that command.

    "File not found" is not "Permission denied".

  • TorTor Posts: 2,010
    edited 2016-05-31 08:06
    RS_Jim:
    First we must find out what's missing: If you enter just 'sudo' (without apostrophes), do you get the 'Command not found'? If yes, you're missing the 'sudo' command. If so, try this instead:
    su
    (enter root password)
    ./propelleride-0.37.3-amd64.run
    exit
    
    (you're temporarily logging in as root, without changing to the root home directory (that would be 'su -' which is not what we do here). Then executing the install script, then logging out (back to normal user account))
    If the above still doesn't work, do the 'chmod +x' that rosco_pc suggested (or a+rx). Or simply do 'sh propelleride-0.37.3-amd64.run' instead, which is to explicitly invoke the shell to execute the script, instead of implicitly.
  • Does this help.
    686 x 571 - 28K
    656 x 435 - 44K
  • I found the documentation of propellerIDE a bit lacking when it comes to the RaspberryPi, I needed the arm package and only found one under https://github.com/parallaxinc/PropellerIDE/releases/download/0.36.7/propelleride-0.36.7-armhf.deb after much internet searching.

    After installing this version, it ran fine on my raspberrypi 3.

    Instructions say nothing about using the arm install, here: https://bweir.gitbooks.io/propelleride-docs/content/user/getting-started/installing-propelleride.html

    Also instructing people to actually install the propeller ide package, i.e.--> $ sudo dpkg -i propelleride-0.36.7-armhf.deb, would be ideal in the getting started section under RaspberryPi. (and other linux platforms)



    Is there any way to force propellerIDE to use ttyUSB0 as its default at startup instead of ttyAMA0?

    Nice job on the propellerIDE BTW. Works great. Using it with a RPI to program my prop wireless.
  • Clock Loop wrote: »
    I found the documentation of propellerIDE a bit lacking when it comes to the RaspberryPi, I needed the arm package and only found one under https://github.com/parallaxinc/PropellerIDE/releases/download/0.36.7/propelleride-0.36.7-armhf.deb after much internet searching.

    After installing this version, it ran fine on my raspberrypi 3.

    Instructions say nothing about using the arm install, here: https://bweir.gitbooks.io/propelleride-docs/content/user/getting-started/installing-propelleride.html

    Also instructing people to actually install the propeller ide package, i.e.--> $ sudo dpkg -i propelleride-0.36.7-armhf.deb, would be ideal in the getting started section under RaspberryPi. (and other linux platforms)



    Is there any way to force propellerIDE to use ttyUSB0 as its default at startup instead of ttyAMA0?

    Nice job on the propellerIDE BTW. Works great. Using it with a RPI to program my prop wireless.

    Hi there! Admittedly, I have been lax on my Raspberry Pi support lately. It fell off while I was working on changes to the build system, and haven't added it back in yet. Then I've also been away from the project entirely for a couple months working on other things. I agree that RPi installation should be explicitly spelled out.

    Question: I have an RPi Model B (I think); would instructions produced for that also work for the 3?

    Some time around 0.37 (not yet available for RPi), PropellerIDE now attempts to open your last selected device on startup, so if the device didn't change, it would auto-select ttyUSB0. You can try it out on desktop to see it in action.

    I'm always happy to hear that you like it. :)
Sign In or Register to comment.