Timezone library - how to use in Livecode Server?
Mark Waddingham
mark at livecode.com
Thu Sep 6 05:57:51 EDT 2018
Hi Matthias,
On 2018-09-05 10:34, Matthias Rebbe via use-livecode wrote:
> file "/home/xxxxxxx/public_html/xxxxxx/tz.lc"
> row 4, col 5: extension: error occurred with domain (runtime)
> row 4, col 5: extension: error occurred with description (unable to
> load foreign library)
> row 4, col 5: extension: error occurred with file (timezone.lcb)
> row 4, col 5: extension: error occurred with line (62)
> row 4, col 5: extension: error occurred with column (1)
> row 4, col 5: extension: error occurred with file (timezone.lcb)
> row 4, col 5: extension: error occurred with line (737)
> row 4, col 5: extension: error occurred with column (1)
> row 4, col 5: Function: error in function handler (FromUniversaltime)
> row 4, col 5: put: error in expression
>
> This works in LC IDE (w/o Line 1).
The IDE and standalone builder have an extra step which makes sure an
extension can find its code (shared library) resources. In this specific
case, before 'load extension' you need to do:
set the revLibraryMapping["tz"] to
"/home/ua829968/public_html/rebbe.tech/tz-test/extensions/com.livecode.library.timezone/code/x86_64-linux/tz.so"
(substitute x86_64-linux for x86-linux, if you are running on a 32-bit
host)
This tells the engine where to find the 'tz' library which is referenced
by the foreign handler bindings in the tz extension.
Warmest Regards,
Mark.
P.S. https://github.com/livecode/livecode/pull/6660
--
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps
More information about the use-livecode
mailing list