BrightcoveOS / Roku-Sample-App

Sample application for Roku using Brightcove VideoCloud
51 stars 24 forks source link

SUB or FUNCTION defined twice #1

Closed mediamanire closed 9 years ago

mediamanire commented 12 years ago

Hi everyone, sorry but very much a newbie at the brightcove/roku development and I am trying to understand an error I get.

Can someone please help. I have downloaded and attempted to install the latest roku-sample-app but keep getting the following error.

ERROR compiling /pkg:/source/appHomeScreen.brs: SUB or FUNCTION defined twice. (compile error &had) in ...pkg:source/appHomeScreen.brs (35)

Line 35 in the appHomeScreen.brs file reads as:

Function showHomeScreen(screen) As Integer

How do I resolve this problem? I am sure there is a 'common sense' answer but thats the problem (common sense!!). I presume that I would have to load all of the files in your zip to the roku after adding my brightcove token and unique player ID data or is there some 'files' that I should not be uploading. sorry if this does not make sense but I am quite literally a newbite. Please advise/help. Thanks for reading this. Regards Mediaman

brandonaaskov commented 12 years ago

@adiffmike, any ideas for next steps here?

adiffmike commented 12 years ago

Yeah there's some duplicate files in here (not actually duplicates, but files which kind of do the same thing) I'm pretty sure the files called "app[Something]" should not be here.

mediamanire commented 12 years ago

Thanks a million for this Adiffmike. Seriously thank you. It gives me a starting chance at this. I have 'coder' friend who will be giving me a hand with this - so if I do come back it wont be with very dumb questions. Regards Johnny.

On 1 August 2012 18:54, adiffmike < reply@reply.github.com

wrote:

Yeah there's some duplicate files in here (not actually duplicates, but files which kind of do the same thing) I'm pretty sure the files called "app[Something]" should not be here.


Reply to this email directly or view it on GitHub:

https://github.com/BrightcoveOS/Roku-Sample-App/issues/1#issuecomment-7434633

jeffehobbs commented 10 years ago

Still getting an error when loading:

*\ ERROR compiling /pkg:/source/appHomeScreen.brs: SUB or FUNCTION defined twice. (compile error &had) in ...pkg:/source/appHomeScreen.brs(35)

Searching through the code, line 35 of appHomeScreen.brs is:

Function showHomeScreen(screen) As Integer

Searching through all the source files, "showHomeScreen" shows up only in that file (appHomeScreen.brs).

@adiffmike, if you could provide some clue as to what to do to get past this error, we would appreciate. Feels like we are close here.

jeffehobbs commented 10 years ago

NOTE: Getting rid of the app*.brs files and trying to install then produces:

SUB or FUNCTION defined twice. (compile error &had) in ...69PY/pkg:/source/urlUtils.brs(11)

Seems like there's also a duplication between httpUtils.brs and urlUtils.brs. Working...

jeffehobbs commented 10 years ago

Deleting all the "app" .brs files and deleting httpUtils.brs files allows this project to compile.

bdeitte commented 9 years ago

A very late reply here, but glad to hear this was figured out. I'm spending a bit of time trying to update this app this week, and I have a version that works with @jeffehobbs changes and a few of my own at https://github.com/bdeitte/Roku-Sample-App. It will have a more permanent home later in the week.

bdeitte commented 9 years ago

This should be fixed with https://github.com/BrightcoveOS/Roku-Sample-App/pull/8