Page 1 of 1

EnhancedQT External in OSX

Posted: Tue Mar 15, 2011 7:32 pm
by xfratboy
I'm playing with the EnhancedQT external ...again.. and I was wondering if anyone could tell me what I'm doing wrong. I can successfully create a standalone for windows that includes the EnhancedQT.dll. I have no problem controlling things like volume and balance under Windows. However, when I try to make the same thing work under OSX it does not work. I look at the .app file LiveCode creates, and within the Contents/MacOS/Externals/ folder, there's no EnhancedQT.bundle ? I've manually copy-pasted the EnhancedQT.bundle into the .app's Externals folder but it still does not work. I've added the relative path to the stack's Externals property (Externals/EnhancedQT.bundle) but still doesn't work. I'm sure that many folks have successfully used the EnhancedQT external in OSX. Perhaps someone could tell me what I'm doing wrong. When I save as a Standalone I was thinking LC should include the EnhancedQT.bundle in the same way that it includes RevXML.bundle or revfont.bundle yet it does not. What's the trick to get EQT to work in a standalone under OSX? Thanks for any help.

Re: EnhancedQT External in OSX

Posted: Wed Mar 16, 2011 1:32 am
by Mark
Hi x,

You need to add a new, empty substack to your main stack. In the preOpenStack handler (or the startUp handler) of card 1 of your mainstack, you add a script that sets the externals property of the empty substack to the absolute path to the external. After setting this property, you go to the substack invisible and start using it.

Best,

Mark

Re: EnhancedQT External in OSX

Posted: Wed Mar 16, 2011 5:14 pm
by xfratboy
You lost me. I did try your recommendation but still no change. Works on Windows but not on Mac.

Re: EnhancedQT External in OSX

Posted: Wed Mar 16, 2011 5:24 pm
by Mark
x,

Try again. It is cumbersome and prone to mistakes. I got it to work and am selling a product (Snapper Screen Recorder) that uses the external.

Kind regards,

Mark

Re: EnhancedQT External in OSX

Posted: Thu Mar 17, 2011 11:27 pm
by xfratboy
...you go to the substack invisible and start using it.
When I go to the empty substack then what am I starting to use? If the substack is empty then what is there to use on it? That's the part that lost me. In terms of setting the externals property, this is the code I've placed in the PreOpenStack of the mainstack:

Code: Select all

 set the itemdel to "/"
 put item 1 to -2 of the effective filename of this stack & "/Externals/EnhancedQT.bundle" into myPath1
 set the externals of stack "MyEmptySubstack" to myPath1
go invisible stack "MyEmptySubstack" 
 set the itemdel to comma

Re: EnhancedQT External in OSX

Posted: Fri Mar 18, 2011 2:34 am
by Mark
x,

Start using the stack. Just try it.

Best,

Mark

Re: EnhancedQT External in OSX

Posted: Mon Mar 21, 2011 3:55 pm
by xfratboy
I've been able to get a little bit more action on this. The problem seemed to be located in the path to the external needing to be Externals/EnhancedQT.dll or Externals/EnhancedQT.bundle ... Now I have a new issue. Perhaps this is what you meant when you said it is "cumbersome and prone to mistakes." I can get the the external to work for a little bit but then the IDE or a standalone. So, how does one debug the "Windows has stopped responding" message. Is there a log or something in Rev that I can look at? Maybe I should ask this in a new thread.

Re: EnhancedQT External in OSX

Posted: Mon Mar 21, 2011 10:52 pm
by Mark
X,

There are many reasons why Windows may stop responding. It could be a problem with your scripts, an incompatibility between the external and your version of window, or even a hardware problem. Try a very simple script first, then see if it works at all. If it doesn't, post your script and we'll figure out if it is in the script or something else.

Best,

Mark