Shop OBEX P1 Docs P2 Docs Learn Events
SimpleIDE builds on the Raspberry PI !! — Parallax Forums

SimpleIDE builds on the Raspberry PI !!

Heater.Heater. Posts: 21,230
edited 2012-07-23 10:53 in Propeller 1
Just got SimpleIDE built and running on the Raspberry PI.

Like so:

1) If you want to use C/C++ get propgcc installed as per instructions in my previous thread
http://forums.parallax.com/showthread.php?141428-propgcc-builds-on-Raspberry-Pi-!!

2) Install the qt4 development tools:
$ apt-get install qt4-dev-tools

3) Get the sources of SimpleIDE (propside)
$ hg clone https://code.google.com/p/propside/

4) Change to the source directory and build it:
$ cd propside/propside
$ qmake
$ make

Only takes an hour or so.

5) Test it:

$ ./SimpleIDE

Yay it runs and compiles things!

I still don't have a serial port or loader to actually load a Pro from Raspi yet.

Comments

  • mindrobotsmindrobots Posts: 6,506
    edited 2012-07-23 04:17
    Brilliant!! I received notice on Friday that my Pi was shipping!! Looks like I'll be able to have my Pi and Edit too!! (sorry for the PUNishment!)

    Thanks for blazing the trails ahead of us!!
  • Heater.Heater. Posts: 21,230
    edited 2012-07-23 04:49
    Guess I should find a place to post the propgcc, SimpleIDE and other binaries so that people don't have to spend all day downloading and compiling stuff.
  • Heater.Heater. Posts: 21,230
    edited 2012-07-23 06:47
    I just tried rebuilding simpleide with the propside/release/linux/release.sh script on Raspian.
    It failed miserably with an internal compiler error ending like so:
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQEXTSERIALPORT_LIB -DIDEVERSION=0 -DMINVERSION=7 -DFIXVERSION=2 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o properties.o properties.cpp
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQEXTSERIALPORT_LIB -DIDEVERSION=0 -DMINVERSION=7 -DFIXVERSION=2 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o newproject.o newproject.cpp
    g++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
    make: *** [treemodel.o] Error 4
    make: *** Waiting for unfinished jobs....
    + test 2 != 0
    + echo make failed.
    make failed.
    + exit 1
    

    Odd that as qmake, make in the source directory worked OK.

    Ah well better do that again...
  • jazzedjazzed Posts: 11,803
    edited 2012-07-23 08:07
    That's great Heater!

    If you want the latest SimpleIDE code with support for spin, do $ hg update spinside
    That will also give you the Parallax spin library. I've been copying that to /opt/parallax .
    I haven't worked out the release details yet. You'll have to add a PI folder and tweak it.

    Post your package here:http://code.google.com/p/propside/downloads/list
    Please don't push any changes to the repo until after August 1st.
  • uksconeukscone Posts: 5
    edited 2012-07-23 08:45
    Heater. wrote: »
    Guess I should find a place to post the propgcc, SimpleIDE and other binaries so that people don't have to spend all day downloading and compiling stuff.

    i built it a few weeks ago & posted tarballs of the binaries on my website (http://russelldavis.org/RaspberryPi). i only built for softfp though. i was going to build them for the hard float raspbian sometime this week so if you've already done that i won't need to
  • uksconeukscone Posts: 5
    edited 2012-07-23 08:46
    that error is normally caused by it running out of ram when compiling. are you using the 32/224 memory split?

    [edit: sorry forgot to quote. the cc1plus error is normally caused by it running ram, using the 32/224 split and swap normally solves it]
  • uksconeukscone Posts: 5
    edited 2012-07-23 08:52
    Heater. wrote: »
    I just tried rebuilding simpleide with the propside/release/linux/release.sh script on Raspian.
    It failed miserably with an internal compiler error ending like so:
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQEXTSERIALPORT_LIB -DIDEVERSION=0 -DMINVERSION=7 -DFIXVERSION=2 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o properties.o properties.cpp
    g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQEXTSERIALPORT_LIB -DIDEVERSION=0 -DMINVERSION=7 -DFIXVERSION=2 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o newproject.o newproject.cpp
    g++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
    make: *** [treemodel.o] Error 4
    make: *** Waiting for unfinished jobs....
    + test 2 != 0
    + echo make failed.
    make failed.
    + exit 1
    

    Odd that as qmake, make in the source directory worked OK.

    Ah well better do that again...


    oh and the other thing i seem to remember having to do was (although been building so much stuff recently it might be for something else) was change the -j option so it didn't try to use more than a couple of threads to build.

    hope that helps
  • Heater.Heater. Posts: 21,230
    edited 2012-07-23 09:04
    Ukscone,
    Actually I have not started to tackle the differnt raspi options. Just jumped into a compile fest for Prop and work related stuff.
    Thanks for the heads up, I'll try that out tomorrow.
    I was also wondering if putting things on an nfs share on my PC would speed things along a bit. And perhaps a little raspi overclocking:)
  • uksconeukscone Posts: 5
    edited 2012-07-23 09:31
    I did have a tiny problem with the OS spin compiler, on wheezy & squeeze i had to add a couple of #defines for the _stricmp stuff but it doesn't seem to be needed on raspbian.

    I didn't post the resulting binaries but because propgcc takes so long to compile natively i started using my cross compiling environment to build it as then it is just a couple of hours rather than an overnight thing. a fast sd card or nfs will probably help though, personally i'm loathed to overclock, not for any real reason other than i'm a stubborn wotsit and it feels like a cheat :)
  • Heater.Heater. Posts: 21,230
    edited 2012-07-23 09:58
    I might skip the overclocking till I have some more raspis to play with.
    Crosscompiling has always been a pain for me. Also for the guys building Raspian.
    At the end of the day I think a system like the Pi running Debian should be self sufficient.
    Back in the day I would wait all day and night for three Intel development systems to do a total recompile of our 8080 based application. Nothing has changed much in 30 years!
  • uksconeukscone Posts: 5
    edited 2012-07-23 10:53
    i normally prefer to compile natively (and a lot of projects REQUIRE it) but I have scratchbox2 configured almost perfectly for ARM devices & the raspberry pi in particular so it's pretty much a "no thought required" thing for me especially when i need to bootstrap something that doesn't have a generic arm binary available. the only problem i've had with it is that the "official" toolchain is being a right PITA & not working correctly and i can't be bothered to fix it as the code sourcery toolchain & my self-built ones do the job.

    i'm still waiting for code code i sent for processing to be returned to me 35 years later, do you think they might possibly have forgotten about it? :)
Sign In or Register to comment.