Timezone library - how to use in Livecode Server?

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Thu Sep 6 06:54:44 EDT 2018


Thank you very much Mark. 
With that addition it works now. The timezone library is a great enhancement for Livecode Server. No need to call external php code to do timezone conversions.

And thanks for the ps. I can´t wait for 9.1 to test. :)

Regards

Matthias




> Am 06.09.2018 um 11:57 schrieb Mark Waddingham via use-livecode <use-livecode at lists.runrev.com>:
> 
> 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
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list