Standalone Build Problem
Mike Bonner
bonnmike at gmail.com
Tue Jun 2 12:46:02 EDT 2015
Yep, it won't find the inclusions, you need to pick and choose yourself
because the splashstack is mostly empty of code. The can't figure out what
you need from code that isn't there.
As for the datagrid, I wonder.. If I recall, you don't actually have to
include a datagrid for it to work. Check out this link which mentions
building using the splashstack method..
http://lessons.runrev.com/m/datagrid/l/7339-what-do-i-need-to-do-to-deploy-a-standalone-with-a-data-grid
If you want to search for inclusions automagically, I guess you could cheat
also.
Make a handler that never gets called. You want sqlite support? put in a
revopendatabase call. Same for any other support you need, put in a line
of code that requires whatever support you're looking to add to the
splashstack, to this non-functional handler, so that the build process can
decide that you need <whatever you need>
Its pretty easy though to manually choose inclusions.
On Tue, Jun 2, 2015 at 10:35 AM, Bob Sneidar <bobsneidar at iotecdigital.com>
wrote:
> Thanks Devin.
>
> With this approach I am finding that letting Livecode automatically find
> the libraries it needs is not successful. First, none of my data grids
> work, even though I have added a data grid to the splash stack. Second,
> none of the image files I have referenced in the primary stack are being
> accessed. I suppose I will need to manually add those as well to the
> application folder.
>
> I will, at the risk of sounding like I am whining, repeat the sentiment
> others have expressed, that this is more difficult to get working than it
> ought to be.
>
> Bob S
>
>
> On Jun 2, 2015, at 09:21 , Devin Asay <devin_asay at byu.edu<mailto:
> devin_asay at byu.edu>> wrote:
>
>
> On Jun 2, 2015, at 10:09 AM, Bob Sneidar <bobsneidar at iotecdigital.com
> <mailto:bobsneidar at iotecdigital.com>> wrote:
>
> Hi all.
>
> So I am creating a standalone for the first time, and I am trying to use a
> splash stack. Taking the advice of others I have added a data grid to the
> splash stack so that the data grid library get added. Now when I attempt to
> set the mainstack of the actual stack that contains all the business logic,
> it fails. I think I might know why, but I’ll ask to be sure.
>
> The actual application stack has a number of substacks already. I am
> thinking that a substack cannot itself contain other substacks. If this is
> true, I will have to break out all of my other stacks as single files, then
> add them as substacks to the mainstack.
>
> If this is true, I can see why new users have problems creating
> standalones at first. It is a rather convoluted way of going about things.
> If not, then I am at a loss to know why I cannot set the mainstack property
> of a given stack.
>
> I have also tried using the message box:
> set the mainStack of stack "Forms Generator" to "Forms Generator Splash”
>
> I get:
> Script compile error:
> Error description:
>
> Bob,
>
> Don’t try to make your mainstack (the stack with your business logic) a
> substack of the splash stack. They should both be mainstacks, and the
> splash stack (now app) should simply “go to” the other stack. Looking at it
> another way, the splash stack is simply built into an application that
> contains the engine, which in turn can launch any other stack you want.
>
> HTH
>
> Devin
>
> Devin Asay
> Office of Digital Humanities
> Brigham Young University
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list