LC 9.0.4 GLX Mac and Win app - saving standalone errors

Collaborate on tools, libraries, and applications beyond the IDE

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 237
Joined: Sun May 27, 2007 8:19 pm

LC 9.0.4 GLX Mac and Win app - saving standalone errors

Post by Martin Koob » Thu Jun 06, 2019 5:14 pm

Hi

Now that I can open my app and run it in LC 9.0.5 on my Mac I tried to create a standalone using the GLX application Packager. To do that I need to create the standalone using the GLX Application Properties Plugin.

I have followed the steps in the tutorial here:
https://revolution.screenstepslive.com/ ... rettyPhoto

However in the 'Build Standalone Engines' step when I click the 'Build Standalone' button in the 'glxApplicationProperties' plugin I get an error dialog.
Error Building Standalone: 91,72,1
532,72,1
Any Idea what is causing that?

I have tried this with just trying to build both a Mac and Windows standalone.
When the error happened I tried to just build a Mac Standalone. I still got the error.

Any idea what these error codes mean that can point me in the right direction to solve this?

Thanks.

Martin Koob

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 962
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: LC 9.0.4 GLX Mac and Win app - saving standalone errors

Post by trevordevore » Thu Jun 06, 2019 5:19 pm

Error 91 is "can't find stack". Line 72 is the line of whatever script was executed.

I haven't tried building any GLX standalones in LC 9. I know the standalone builder has changed so you will probably have to inspect the GLX plugin code and put sprinkle some debugging statements in to see what is going on.
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 237
Joined: Sun May 27, 2007 8:19 pm

Re: LC 9.0.4 GLX Mac and Win app - saving standalone errors

Post by Martin Koob » Thu Jun 06, 2019 7:44 pm

I tracked down where the error is generated
it is in stack glxapplicationproperties > handler BuildStandalones

Code: Select all

 Line 72 send "revSaveAsStandalone theStack, theOutputFolder" to stack "revSaveAsStandalone" of stack "revStandaloneSettings"
In LC 9 there is a stack "revStandaloneSettings" but it does not have a sub stack "revSaveAsStandalone". It is a separate stack that is opened as a library with a "start using" command in the preOpen handler of stack "revSaveAsStandalone".

The stack "revSaveAsStandalone" has the revSaveAsStandalone handler.

I changed line 72 to

Code: Select all

send "revSaveAsStandalone theStack, theOutputFolder" to stack "revSaveAsStandalone"
That got past the first error.



Now I get a different error dialog with the message:

There was an error while saving the standalone application
Cannot create a folder
'private/var/folders/jp/p6y_k5q946s5121x_55w4k1w0000gn/T/TemporaryItems/revstandalone1559845523309/myapp'

This error seems to occur in the stack 'revSaveAsStandalone > handler revSaveAsStandalone.

I am still trying to track down where that command to create folder occurs and see why it fails. Not sure why it cannot create a temporary folder.

I have to stop now but will continue to try and track this down later. If you have any insights that would be great.

Thanks

Martin

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 962
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: LC 9.0.4 GLX Mac and Win app - saving standalone errors

Post by trevordevore » Thu Jun 06, 2019 7:54 pm

Looking at the Levure packaging code I see that I had to start creating the folder passed as the 2nd param to `revSaveAsStandalone`. So try creating `theOutputFolder`using `create folder` first.

I also have code in Levure that assigns a custom property of the stack that is being built as a standalone:

Code: Select all

set the cRevStandaloneSettings["defaultBuildFolder"] of stack tTempStandaloneStack to tTempBuildFolder
The `tTempBuildFolder` variable in the above code would be `theOutputFolder` in the GLX code. I don't know if that is necessary or not.
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 237
Joined: Sun May 27, 2007 8:19 pm

Re: LC 9.0.4 GLX Mac and Win app - saving standalone errors

Post by Martin Koob » Wed Jun 12, 2019 1:23 am

Hi

One step further but another hurdle encountered.

I got the build to proceed by making the following changes to the following code in the handler BuildStandalones in the stack glxApplicationProperties.

Code: Select all

## Now build standalones
   if theError is empty then
      put "glxappLauncher" into theStack
      put specialFolderPath("temporary") into theOutputFolder
      put "/revstandalone" & the milliseconds after theOutputFolder  --LC 9 # I can  add "/myappname" if I am building both Win and Mac standalones
      create folder theOutputFolder --LC 9 create folder before calling revSaveAsStandalone
      try
         send "revSaveAsStandalone theStack, theOutputFolder" to stack "revSaveAsStandalone" # LC9 revSaveAsStandalone is now separate stack --of stack "revStandaloneSettings"
      catch e
         put e into theError
      end try
   end if
   
However once the build completes I get a dialog named 'revBuildResults' that says
The standalone Application was successfully built.

The following warnings occurred.
1. MacOSX x86-32, external No externals.txt config file found for mergAV
I have mergAV code in the application but I am transitioning to using the capture control in LC 9. I tried removing mergAV external from the list of the externals in the Stacks & externals tab of the glxApplicationProperties stack but I still get the same result.

There is a standalone in the target build folder but it won't launch properly.

Any suggestions about the missing externals.txt config file?

Thanks

Martin Koob

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 962
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: LC 9.0.4 GLX Mac and Win app - saving standalone errors

Post by trevordevore » Thu Jun 13, 2019 2:11 pm

@Martin - I don't know the cause of the error so I only have suggestions of where to look. if you look at the Standalone builder settings for your stack is the merge code selected in the Inclusions tab? If you don't see it in the Inclusions tab maybe check the custom properties of the stack to see if it is stored somewhere.
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 237
Joined: Sun May 27, 2007 8:19 pm

Re: LC 9.0.4 GLX Mac and Win app - saving standalone errors

Post by Martin Koob » Thu Jun 13, 2019 6:25 pm

@trevor Thanks for the help. I thought I had removed the mergAV inclusion but I found when looking at the inclusions tab that it was still checked.

Once I cleared that the standalone built successfully.

Martin

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 962
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: LC 9.0.4 GLX Mac and Win app - saving standalone errors

Post by trevordevore » Thu Jun 13, 2019 6:47 pm

Great. You're welcome.
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

Post Reply

Return to “Community Projects”