Page 1 of 1
Building standalone with external
Posted: Thu Apr 15, 2010 9:05 pm
by jwbuzz
I asked this question here (viewtopic.php?f=7&t=5202) but I'm thinking it warrants it's own thread. How do you bundle an external when you build a standalone application. It runs well in the studio, but when I build the standalone the button that calls an external doesn't work.
Re: Building standalone with external
Posted: Fri Apr 16, 2010 3:22 pm
by trevordevore
Re: Building standalone with external
Posted: Fri Apr 16, 2010 4:23 pm
by jwbuzz
Trevor.. Thanks. I've already seen that document and tried that, but my external (libkiosk) doesn't show up in the "Script Libraries" section of the "Standalone Application Settings". Not sure how to debug that.
Re: Building standalone with external
Posted: Fri Apr 16, 2010 4:48 pm
by trevordevore
I just went through the instructions and libkiosk showed up under scripts. What did you enter in the Externals.txt file in the Runtime folder? I added:
libkiosk,libkiosk.bundle
Re: Building standalone with external
Posted: Fri Apr 16, 2010 4:53 pm
by jwbuzz
I added the same thing. What does the structure of your "My Revolution Enterprise" folder look like? It's strange because it works if I run it from the studio.
Re: Building standalone with external
Posted: Fri Apr 16, 2010 4:58 pm
by trevordevore
The same as in the lesson example.
Code: Select all
My Revolution Enterprise
Externals
libkiosk.bundle
Externals.txt
Runtime
Mac OS X
Universal
Externals
libkiosk.bundle
Externals.txt
Re: Building standalone with external
Posted: Fri Apr 16, 2010 5:02 pm
by jwbuzz
Ah.. sheesh.. I had a typo in the Externals name. It shows up now so let me try to build it.
Re: Building standalone with external
Posted: Fri Apr 16, 2010 5:04 pm
by jwbuzz
Hm.. it includes it now if I explore the package contents but it still doesn't work. How do you typically debug this in the standalone environment?
Re: Building standalone with external
Posted: Fri Apr 16, 2010 5:24 pm
by trevordevore
In order to confirm that it should work I built a standalone using the stack that comes with the libkiosk download (after updating the standalone settings to include the external). Everything worked as expected.
The last step in the lesson providers the hint as to how to verify that the Rev engine loaded the external in a standalone. When Rev builds a standalone it creates a stack named "revExternalLibrary". Add a button to your program with the following code:
Code: Select all
answer the externalPackages of stack "revExternalLibrary"
Does libkiosk appear among the lines?
Re: Building standalone with external
Posted: Fri Apr 16, 2010 5:42 pm
by jwbuzz
I get nothing when I do that...empty dialog box. This may be a stupid question, but could this be related to the fact that I'm still using the trial? We're in the process of purchasing but hasn't gone through yet.
I'm also having an issue with a command getting called related to a URL:
put URL "
http://blah" into theWebPageContent
The URL isn't actually getting called when build as a standalone but is getting called when I run it within Rev Studio.
Re: Building standalone with external
Posted: Fri Apr 16, 2010 8:00 pm
by jwbuzz
We got our license and I still have the issue. So it's not related to the trial.
Re: Building standalone with external
Posted: Mon Apr 19, 2010 2:32 pm
by trevordevore
So no url commands work and no externals work when building a standalone? I haven't seen this before myself so I'm not sure what could be going on. Maybe try a fresh install?