Building standalone with external

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jwbuzz
Posts: 39
Joined: Tue Apr 13, 2010 7:56 pm

Building standalone with external

Post by jwbuzz » Thu Apr 15, 2010 9:05 pm

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.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Re: Building standalone with external

Post by trevordevore » Fri Apr 16, 2010 3:22 pm

Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jwbuzz
Posts: 39
Joined: Tue Apr 13, 2010 7:56 pm

Re: Building standalone with external

Post by jwbuzz » Fri Apr 16, 2010 4:23 pm

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.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Re: Building standalone with external

Post by trevordevore » Fri Apr 16, 2010 4:48 pm

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
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jwbuzz
Posts: 39
Joined: Tue Apr 13, 2010 7:56 pm

Re: Building standalone with external

Post by jwbuzz » Fri Apr 16, 2010 4:53 pm

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.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Re: Building standalone with external

Post by trevordevore » Fri Apr 16, 2010 4:58 pm

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
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jwbuzz
Posts: 39
Joined: Tue Apr 13, 2010 7:56 pm

Re: Building standalone with external

Post by jwbuzz » Fri Apr 16, 2010 5:02 pm

Ah.. sheesh.. I had a typo in the Externals name. It shows up now so let me try to build it.

jwbuzz
Posts: 39
Joined: Tue Apr 13, 2010 7:56 pm

Re: Building standalone with external

Post by jwbuzz » Fri Apr 16, 2010 5:04 pm

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?

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Re: Building standalone with external

Post by trevordevore » Fri Apr 16, 2010 5:24 pm

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?
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jwbuzz
Posts: 39
Joined: Tue Apr 13, 2010 7:56 pm

Re: Building standalone with external

Post by jwbuzz » Fri Apr 16, 2010 5:42 pm

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.

jwbuzz
Posts: 39
Joined: Tue Apr 13, 2010 7:56 pm

Re: Building standalone with external

Post by jwbuzz » Fri Apr 16, 2010 8:00 pm

We got our license and I still have the issue. So it's not related to the trial.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Re: Building standalone with external

Post by trevordevore » Mon Apr 19, 2010 2:32 pm

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?
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Post Reply