Shop OBEX P1 Docs P2 Docs Learn Events
How to use SpinWrap on Windows, any executable available? — Parallax Forums

How to use SpinWrap on Windows, any executable available?

banjobanjo Posts: 447
edited 2015-04-29 14:57 in Propeller 1
So I was going to try SpinWrap on the PropCam Spin code. Found it on GitHub but have not been able to successfully compile spinwrap.c. I've tried with three different compilers (MS Visual C++ 2010, Borland C++ Builder, SimpleIde) but they all error out on different things which is bound to take some time to resolve with my limited experience.

Is there any SpinWrap executable available for Windows so I could skip the compiling?

Comments

  • David BetzDavid Betz Posts: 14,516
    edited 2015-04-27 13:38
    I'll try to find time to build a Windows version over the next few days.
  • banjobanjo Posts: 447
    edited 2015-04-27 21:57
    David Betz wrote: »
    I'll try to find time to build a Windows version over the next few days.
    Thx, appreciated!
  • David BetzDavid Betz Posts: 14,516
    edited 2015-04-28 17:30
    Sorry, I won't be able to do this until the weekend. I'm currently traveling and my hotel internet connection isn't fast enough to download and install MinGW to build a Windows version of spinwrap.
  • banjobanjo Posts: 447
    edited 2015-04-28 22:45
    Ok, no problem, I'm thankful for whatever help is provided!
  • David BetzDavid Betz Posts: 14,516
    edited 2015-04-29 04:55
    I built this with the MinGW cross compiler under Linux and I don't have a Windows install to try it on. Please let me know if it works for you.

    Thanks,
    David

    spinwrap-win.zip
  • banjobanjo Posts: 447
    edited 2015-04-29 05:57
    I'm at work now so could only verify that the executable is starting ok, i.e. shows list of usage parameters. But I suppose the rest will work ok as well unless some Linux-specific actions are taken.
    Will test more after a couple of hours when I'm home.

    Thanks,
    Thomas
  • David BetzDavid Betz Posts: 14,516
    edited 2015-04-29 07:20
    banjo wrote: »
    I'm at work now so could only verify that the executable is starting ok, i.e. shows list of usage parameters. But I suppose the rest will work ok as well unless some Linux-specific actions are taken.
    Will test more after a couple of hours when I'm home.

    Thanks,
    Thomas
    Getting the usage message is certainly a good first step! :-)
    Let me know if you have any trouble with it. You'll also need to have OpenSpin installed to use spinwrap.
  • banjobanjo Posts: 447
    edited 2015-04-29 08:42
    Ok, spinwrap turned some beautiful Spin code into readable C code so seems to work perfect!
    I downloaded OpenSpin as well. So am I correct in that I need to use OpenSpin instead of SimpleIde to compile? If so, how do I transfer it to the Propeller Activity Board?
  • David BetzDavid Betz Posts: 14,516
    edited 2015-04-29 09:05
    banjo wrote: »
    Ok, spinwrap turned some beautiful Spin code into readable C code so seems to work perfect!
    I downloaded OpenSpin as well. So am I correct in that I need to use OpenSpin instead of SimpleIde to compile? If so, how do I transfer it to the Propeller Activity Board?
    You don't need the Spin code anymore after you've run spinwrap because it embeds the binary produced by the OpenSpin compiler in the generated C code. You should be able to use the resulting C or C++ source file with SimpleIDE.
  • banjobanjo Posts: 447
    edited 2015-04-29 09:06
    Thx, starting to understand how it all fits together
  • banjobanjo Posts: 447
    edited 2015-04-29 12:03
    David, thanks for your help! I've now been able to wrap a simple led-toggle spin program into a C++ program. Let's see how I can combine Spin and C/C++ for PropCam, but I'll leave that for a possible later thread.
  • David BetzDavid Betz Posts: 14,516
    edited 2015-04-29 14:57
    banjo wrote: »
    David, thanks for your help! I've now been able to wrap a simple led-toggle spin program into a C++ program. Let's see how I can combine Spin and C/C++ for PropCam, but I'll leave that for a possible later thread.
    Great! I'm glad you got it working. It certainly needs some documentation!
Sign In or Register to comment.