Externals and file paths

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
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Externals and file paths

Post by bidgeeman » Thu Jun 18, 2009 12:30 am

Hi.

I want to send a friend an exe that I made n Runrev. Being my first ever attempt at this I have a couple of questions please.

1. Does Runev auto adjust the filepath for externals when building for a Mac or Unix?

2. If I make an installer for the exe and my friend chooses to install it in a folder other than "C:/Program Files/App" will Runrev automatically adjust the filepath for the externals or do I have to adjust the externals filepath at the install with a script?

3. How do you set the externals filepath from an installer?

Many thanks
Bidge

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Thu Jun 18, 2009 5:45 am

When ypu build a standalone, Revolution automatically creates a subdirectory "Externals" inside each platform's build directory, and copies the referenced externals for that specific platform in said directory.
Standalone applications will look for externals in specific places: the Externals subdirectory, the executable's directory, and the directories defined in the PATH environment variable.
So in general, you don't have to do anything fancy and it should "just work" even if the user decides to install elsewhere.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Thu Jun 18, 2009 6:04 am

Hi Janschenkel.

Thanks for the response. In this case I am using QT External and the way you install it into Runrev is via placing it in
"C:/ Docments and Settings/User/My Documents/My Revolution Studio/Externals/" folder.

This allows QTExternal to function when using Runrev. The problem is that Runrev does not "Auto find" it and place it in the Externals folder when you build an exe. Instead, you have to point your stack to it manually via the "External References" in the properties Inspector. I see this as a problem if someone installs my exe in a folder other than "C:/Program Files/etc/etc" which is the path hard coded in the "Externals References".

Cheers
Bidge

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

Post by trevordevore » Thu Jun 18, 2009 11:07 am

Here is a lesson that shows how to install an external so that it loads in the IDE and can be included when building a standalone.

Installing An External
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

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Thu Jun 18, 2009 11:29 am

Hi TRevor.
Many thanks for the tutorial and your time.

Cheers
Bidge

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Sat Jun 20, 2009 2:59 am

Can someone please help me figure out what is going wrong?

I have followed Trevors tutorial for installing the QT Bundle but when I edit the externals.txt and create an EXE i get this message:

1 Windows, external not found "C:/Program Files/Revolution Studio/3.5.0-gm-1/Runtime/Windows/x86-32/Externals/revzip.dll
2 C:/Program Files/Revolution Studio/3.5.0-gm-1/Runtime/Windows/x86-32/Externals/EnhancedQT
3 C:/Program Files/Revolution Studio/3.5.0-gm-1/Runtime/Windows/x86-32/Externals/EnhancedQT.dll"

EDIT: Problem solved. Restarted Runrev so t could find the altered Externals.txt.

Cheers
Bidge

Post Reply