EnhancedQT External in OSX

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
xfratboy
Posts: 97
Joined: Fri Mar 05, 2010 9:09 pm

EnhancedQT External in OSX

Post by xfratboy » Tue Mar 15, 2011 7:32 pm

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.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: EnhancedQT External in OSX

Post by Mark » Wed Mar 16, 2011 1:32 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

xfratboy
Posts: 97
Joined: Fri Mar 05, 2010 9:09 pm

Re: EnhancedQT External in OSX

Post by xfratboy » Wed Mar 16, 2011 5:14 pm

You lost me. I did try your recommendation but still no change. Works on Windows but not on Mac.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: EnhancedQT External in OSX

Post by Mark » Wed Mar 16, 2011 5:24 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

xfratboy
Posts: 97
Joined: Fri Mar 05, 2010 9:09 pm

Re: EnhancedQT External in OSX

Post by xfratboy » Thu Mar 17, 2011 11:27 pm

...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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: EnhancedQT External in OSX

Post by Mark » Fri Mar 18, 2011 2:34 am

x,

Start using the stack. Just try it.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

xfratboy
Posts: 97
Joined: Fri Mar 05, 2010 9:09 pm

Re: EnhancedQT External in OSX

Post by xfratboy » Mon Mar 21, 2011 3:55 pm

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.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: EnhancedQT External in OSX

Post by Mark » Mon Mar 21, 2011 10:52 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply