Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bbakernc
Visitor

Re: Compiler available?

This is GREAT....

But... I am having an issue

It looks like CURL cant find the Roku box. Here is the CMD

C:\OLD drive\Roku\examples\source>"c:\Program Files\7-Zip\7z.exe" u "C:\OLD
drive\Roku\examples\source\simplevideoplayer".zip "C:\OLD E drive\Roku\examples\
source\simplevideoplayer"\*

7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

Scanning

Updating archive C:\OLD drive\Roku\examples\source\simplevideoplayer.zip


Everything is Ok

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://ROKU_IP/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: (6) Could not resolve host: ROKU_IP; Host not found

C:\OLD drive\Roku\examples\source>pause
Press any key to continue . . .

I can use ie at http://192.168.1.101 and get to the Player.
0 Kudos
TheEndless
Channel Surfer

Re: Compiler available?

You need to replace "ROKU_IP" in the url with the actual IP address of your Roku.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
bbakernc
Visitor

Re: Compiler available?

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 . . .
0 Kudos
TheEndless
Channel Surfer

Re: Compiler available?

It looks like the quotes around your path are messing up the command-line.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
bbakernc
Visitor

Re: Compiler available?

Do you mean http://192.168.1.101 need qoutes.... "http://192.168.101/plugin_install"

One thing I see,
"archive=@"c:\********" Is the @ correct?
0 Kudos
TheEndless
Channel Surfer

Re: Compiler available?

"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
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
bbakernc
Visitor

Re: Compiler available?

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"
0 Kudos
TheEndless
Channel Surfer

Re: Compiler available?

"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".
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
bbakernc
Visitor

Re: Compiler available?

I moved the entire folder to the root of c and it works GREAT...thanks
0 Kudos
RokuKevin
Visitor

Re: Compiler available?

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
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.