Forum Discussion

kemamo's avatar
kemamo
Visitor
16 years ago

Compiler available?

I just got my first Roku and downloaded the SDK and read all the docs.

I read some of the posts on the desire for an emulator -- I'll cast my vote for that too. I haven't tried to write anything yet but having experience with other custom languages on proprietary hardware, it's quite a painful process without an emulator. But that's just an aside.

Is there a compiler available or something that would at least check the syntax of the scripts before they're uploaded to the box? Since there is something on the box that converts the script to the bytecode, and since the box is running Linux. I assume there must be something that would help the workflow.

Thanks for providing the SDK Roku folks. It sounds like it will be fun to develop with.
Regards,
Ken

19 Replies

  • You need to replace "ROKU_IP" in the url with the actual IP address of your Roku.
  • Yes, I did that, after I posted..... But still did not work

    C:\OLD drive\Roku\examples\source>c:\curl -s -S -F "archive=@"C:\OLD drive\R
    oku\examples\source\simplevideoplayer".zip" -F "mysubmit=Replace" -F "passwd=" h
    ttp://192.168.1.101/plugin_install
    curl: (6) Could not resolve host: E; Host not found
    curl: (6) Could not resolve host: drive\Roku\examples\source\simplevideoplayer.z
    ip; Host not found
    curl: (26) failed creating formpost data

    C:\OLD drive\Roku\examples\source>pause
    Press any key to continue . . .
  • It looks like the quotes around your path are messing up the command-line.
  • "bbakernc" wrote:
    Do you mean http://192.168.1.101 need qoutes.... "http://192.168.101/plugin_install"

    No, don't need quotes around the URL.

    "bbakernc" wrote:
    One thing I see,
    "archive=@"c:\********" Is the @ correct?

    The @ is correct, but the quotes around the path are what's causing your problem.

    Instead of:
    c:\curl -s -S -F "archive=@"C:\OLD drive\Roku\examples\source\simplevideoplayer".zip" -F "mysubmit=Replace" -F "passwd=" http://192.168.1.101/plugin_install

    It needs to be:
    c:\curl -s -S -F "archive=@C:\OLD drive\Roku\examples\source\simplevideoplayer.zip" -F "mysubmit=Replace" -F "passwd=" http://192.168.1.101/plugin_install
  • "bbakernc" wrote:
    That works as hard code.

    But this with the varibles is putting the qoutes in

    c:\curl -s -S -F "archive=@%1.zip" -F "mysubmit=Replace" -F "passwd=" "http://192.168.1.101/plugin_install"

    Right. That's because you have a space in the path. I'm not sure how to fix that aside from changing the folder name from "OLD Drive" to "OLDDrive".
  • I moved the entire folder to the root of c and it works GREAT...thanks
  • The Makefile(s) shipped with the sdk make use of the ROKU_DEV_TARGET environment variable. A common place to set it is in your .bashrc file.

    Example:
    export ROKU_DEV_TARGET=192.168.1.120

    --Kevin