Your Digital Media Has Never Looked So Good

 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Where are the SDK Makefiles?

Fri Jan 03, 2014 1:03 am

After year(s) hiatus looking at BrightScript, i returned back trying the SDK examples and i see we should look for latest code on http://sourceforge.net/projects/rokusdkexamples/files/ (RokuJoel said so in forum and Dev.Guide examples list points there)

So i did download example zips but the makefiles are missing? Not in the ZIPs i looked and not in the code trunk either. I do remember there were makefiles at the time of single monolithic-zip SDK - and the Dev Guide says so ( http://sdkdocs.roku.com/display/sdkdoc/ ... thechannel ):
7.3 Using the Makefile to "Side-Load" the channel
The SDK examples include Makefiles that can automate the steps needed to install the channel. The Makefiles use the ROKU_DEV_TARGET environment variable to know the ip address of the Roku box to install on. Instead of following the steps in 7.2, you could use the Makefile from a shell like so:
% export ROKU_DEV_TARGET=192.168.1.140
% cd <sdk>/examples/source/videoplayer
% make install


What am i missing?

PS. i have no intention of using Eclipse as IDE for Roku, make/bash worked fine last time i had them.
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: Where are the SDK Makefiles?

Fri Jan 03, 2014 9:48 am

This blog post has a link to a zip with the latest examples and makefile (app.mk in the examples\source folder): http://blog.roku.com/developer/2013/10/ ... velopment/
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)
 
EnTerr
** Valued Community Member **
Topic Author
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: Where are the SDK Makefiles?

Fri Jan 03, 2014 3:09 pm

TheEndless wrote:
This blog post has a link to a zip with the latest examples and makefile (app.mk in the examples\source folder): http://blog.roku.com/developer/2013/10/ ... velopment/

Thanks... but all example ZIPs there are circa 2012-01-06, which is 2 years old - and all examples on SourceForge are newer than that - yet miss makefiles.

@Roku*, what is the definitive source to get current, working, complete examples?

In the mean time, this is a simple `run` script i whipped (run from project's parent directory):
#!/bin/bash
# build
cd "$1"
zip -FS -9 -r ../bundle *
cd ..

# deploy
curl --user rokudev:nuisance --anyauth -sS -F "mysubmit=Install" -F "archive=@bundle.zip" -F "passwd=" http://$ROKU_DEV_TARGET/plugin_install |  grep -Po '(?<=<font color="red">).*' | sed 's/<\/font>//'

I commend the
  • "-FS" zip switch (makes "re-build" much faster) and it also "cleans" previous project left-overs
  • "--anyauth" in curl (vs the blog suggested running curl no auth, checking for 401 and running second time --digest). The problem we are solving: --digest does not work on fw3; --anyauth works everywhere
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Re: Where are the SDK Makefiles?

Fri Jan 03, 2014 3:54 pm

EnTerr wrote:
TheEndless wrote:
This blog post has a link to a zip with the latest examples and makefile (app.mk in the examples\source folder): http://blog.roku.com/developer/2013/10/ ... velopment/

Thanks... but all example ZIPs there are circa 2012-01-06, which is 2 years old - and all examples on SourceForge are newer than that - yet miss makefiles.

The zip files may be old, but the app.mk file in the examples\source folder and all of the example source folders were updated in late September 2013, and work with the newly secured dev site. The makefiles for each specific project are all pretty much the same (just a different APPNAME) and refer back up to the app.mk, so they don't need to be updated and should work with all of the examples on SourceForge as well (as long as you have the updated app.mk file in the parent folder).

EDIT: That's also the same SDK file you can download from the official Developer site (https://owner.roku.com/Developer).
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)

Who is online

Users browsing this forum: No registered users and 16 guests