Page 1 of 1

Externals and file paths

Posted: Thu Jun 18, 2009 12:30 am
by bidgeeman
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

Posted: Thu Jun 18, 2009 5:45 am
by Janschenkel
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.

Posted: Thu Jun 18, 2009 6:04 am
by bidgeeman
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

Posted: Thu Jun 18, 2009 11:07 am
by trevordevore
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

Posted: Thu Jun 18, 2009 11:29 am
by bidgeeman
Hi TRevor.
Many thanks for the tutorial and your time.

Cheers
Bidge

Posted: Sat Jun 20, 2009 2:59 am
by bidgeeman
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