Shop OBEX P1 Docs P2 Docs Learn Events
Spin2Cpp - PropWare — Parallax Forums

Spin2Cpp - PropWare

ASAS Posts: 149
edited 2016-02-20 23:44 in Propeller 1
David Zemon,

I got this error when trying test Spin2Cpp
pi@raspberrypi:~/PropellerProjects/PropWare/Examples/Spin2Cpp/bin $ cmake ..

CMake Error at /home/pi/cmake/cmake-3.3.2/Modules/FindPackageHandleStandardArgs.                                 cmake:148 (message):
  Could NOT find PropWare: Found unsuitable version "2.0.0", but required is
  at least "2.1" (found /home/pi/PropWare)
Call Stack (most recent call first):
  /home/pi/cmake/cmake-3.3.2/Modules/FindPackageHandleStandardArgs.cmake:386 (_F                                 PHSA_FAILURE_MESSAGE)
  /home/pi/cmake/cmake-3.3.2/Modules/FindPropWare.cmake:457 (find_package_handle                                 _standard_args)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!

How can I install your last version (to Raspberry), I already see here (http://david.zemon.name/PropWare/Download.xhtml) but is the 2.0.0 version.

I can do it from Github (https://github.com/parallaxinc/PropWare/tree/develop)?

Thanks!

Comments

  • 2.1 is still in development. You can grab the latest development artifacts from here. The main one you'll need is the standalone CMake files: http://david.zemon.name:8111/repository/download/PropWare_Develop/lastSuccessful/PropWare-2.1.0.19-Generic-standalone-cmake.zip&guest=1
  • You can also run Spin2cpp without PropWare. Spin2Cpp is an external program written by @ersmith which will convert Spin files to C++ (and optionally compile them).

    In fact... I don't think Eric offers Raspberry Pi builds of Spin2Cpp... you're going to have to compile it yourself. Fortunately, it's really easy.
    git clone https://github.com/totalspectrum/spin2cpp.git
    cd spin2cpp
    make
    sudo cp build/spin2cpp /usr/local/bin
    

    Woohoo! It should take all of 10 seconds on a Raspberry Pi 2.

    Once it is installed, you can take a look at the options and examples provided in the README to convert Spin files "manually." You might very well find it easier to do this than upgrading PropWare on a Pi.
  • ASAS Posts: 149
    For now I will wait the finished 2.1 version of PropWare.
    (I can´t go here:http://david.zemon.name:8111/repository/download/PropWare_Develop/lastSuccessful/PropWare-2.1.0.19-Generic-standalone-cmake.zip&guest=1)
    DavidZemon wrote: »
    You can also run Spin2cpp without PropWare. Spin2Cpp is an external program written by @ersmith which will convert Spin files to C++ (and optionally compile them).

    In fact... I don't think Eric offers Raspberry Pi builds of Spin2Cpp... you're going to have to compile it yourself. Fortunately, it's really easy.
    git clone https://github.com/totalspectrum/spin2cpp.git
    cd spin2cpp
    make
    sudo cp build/spin2cpp /usr/local/bin
    

    Woohoo! It should take all of 10 seconds on a Raspberry Pi 2.

    Once it is installed, you can take a look at the options and examples provided in the README to convert Spin files "manually." You might very well find it easier to do this than upgrading PropWare on a Pi.

    When I wrote "make" I have this error:
    pi@raspberrypi:~/spin2cpp $ make
    mkdir -p ./build
    bison -t -b ./build/spin -d spin.y
    make: bison: Command not found
    Makefile:63: recipe for target 'build/spin.tab.h' failed
    make: *** [build/spin.tab.h] Error 127
    
    any sugestion?

    Thanks!
  • AS wrote: »

    Ah, sorry about that. Use the first link (this one) and then just choose PropWare-2.1.0.XX-Generic-standalone-cmake.zip. The "XX" is the build number, so it changes every time I commit - that's why the link didn't work (I made a commit between when I posted that, and when you clicked the link).
    AS wrote: »
    DavidZemon wrote: »
    You can also run Spin2cpp without PropWare. Spin2Cpp is an external program written by @ersmith which will convert Spin files to C++ (and optionally compile them).

    In fact... I don't think Eric offers Raspberry Pi builds of Spin2Cpp... you're going to have to compile it yourself. Fortunately, it's really easy.
    git clone https://github.com/totalspectrum/spin2cpp.git
    cd spin2cpp
    make
    sudo cp build/spin2cpp /usr/local/bin
    

    Woohoo! It should take all of 10 seconds on a Raspberry Pi 2.

    Once it is installed, you can take a look at the options and examples provided in the README to convert Spin files "manually." You might very well find it easier to do this than upgrading PropWare on a Pi.

    When I wrote "make" I have this error:
    pi@raspberrypi:~/spin2cpp $ make
    mkdir -p ./build
    bison -t -b ./build/spin -d spin.y
    make: bison: Command not found
    Makefile:63: recipe for target 'build/spin.tab.h' failed
    make: *** [build/spin.tab.h] Error 127
    
    any sugestion?

    Thanks!

    Ah, looks like you're missing some dependencies. I'm not sure how many there are... perhaps just this one? bison can be installed with the command
    sudo apt-get install bison
    
  • ASAS Posts: 149
    It´s working Spin2Cpp!
    This is great to learn C. I will test this a lot!!

    Really thanks
Sign In or Register to comment.