Re: [fpc-pascal] Some RTL functions cry big tears when mixing Pchar and Ansistring/String

2013-06-10 Thread Marco van de Voort
In our previous episode, m...@rpzdesign.com said: > > Passing a Pchar gives weird, erratic behavior Please make minimal examples in a few lines, and add them to the bugtracker. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fre

Re: [fpc-pascal] Some RTL functions cry big tears when mixing Pchar and Ansistring/String

2013-06-10 Thread Jeppe Græsdal Johansen
Den 11-06-2013 04:49, m...@rpzdesign.com skrev: Passing a Pchar gives weird, erratic behavior Could you maybe describe this weird, erratic behavior? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listi

Re: [fpc-pascal] Packaging shared libraries for OSX, recommendations?

2013-06-10 Thread Bruce Tulloch
So just to be clear, if we create a framework designed for others to bundle with their own apps where our framework (for the library) looks like this: MyFramework.framework |-- MyFramework -> Versions/Current/MyFramework |-- Headers -> Versions/Current/Headers |-- Resources -> Versions/Current/Res

[fpc-pascal] Some RTL functions cry big tears when mixing Pchar and Ansistring/String

2013-06-10 Thread m...@rpzdesign.com
Under Linux using Lazarus 1.0.8/Fpc 2.6.2/Fedora 14 x64: it seems like mixing Ansistrings and Pchars on certain run time functions is a real no-no. I just spent HOURs, trying to see why I was not getting good program behavior. Lesson #1: Never call function like Copy( pchar, start, length),

[fpc-pascal] Re: AWS S3 RESTAuthentication

2013-06-10 Thread Marcos Douglas
On Mon, Jun 10, 2013 at 9:43 PM, Marcos Douglas wrote: > Hi, > > Someone know how translate the "code" bellow to Pascal? > http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html > > === code === > Authorization = "AWS" + " " + AWSAccessKeyId + ":" + Signature; > > Signature = Base6

[fpc-pascal] AWS S3 RESTAuthentication

2013-06-10 Thread Marcos Douglas
Hi, Someone know how translate the "code" bellow to Pascal? http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html === code === Authorization = "AWS" + " " + AWSAccessKeyId + ":" + Signature; Signature = Base64( HMAC-SHA1( YourSecretAccessKeyID, UTF-8-Encoding-Of( StringToSign )

Re: [fpc-pascal] Packaging shared libraries for OSX, recommendations?

2013-06-10 Thread Bruce Tulloch
Okay, got it, thanks Jonas. -b On Mon, Jun 10, 2013 at 7:55 PM, Jonas Maebe wrote: > > On 10 Jun 2013, at 11:41, Bruce Tulloch wrote: > > On Mon, Jun 10, 2013 at 6:59 PM, Jonas Maebe * >> *wrote: >> >> Under Mac OS X (and *BSD, and probably even most Linux distributions >>> these >>> days), yo

Re: [fpc-pascal] Packaging shared libraries for OSX, recommendations?

2013-06-10 Thread Jonas Maebe
On 10 Jun 2013, at 11:41, Bruce Tulloch wrote: On Mon, Jun 10, 2013 at 6:59 PM, Jonas Maebe >wrote: Under Mac OS X (and *BSD, and probably even most Linux distributions these days), you would put it under /usr/local/[lib,include,share]. Understood. So if we install our library, headers et

Re: [fpc-pascal] Packaging shared libraries for OSX, recommendations?

2013-06-10 Thread Bruce Tulloch
On Mon, Jun 10, 2013 at 6:59 PM, Jonas Maebe wrote: Under Mac OS X (and *BSD, and probably even most Linux distributions these > days), you would put it under /usr/local/[lib,include,share]. Understood. So if we install our library, headers etc to /usr/local/[lib,include,share] is it true that l

Re: [fpc-pascal] Packaging shared libraries for OSX, recommendations?

2013-06-10 Thread Jonas Maebe
On 10 Jun 2013, at 09:22, Bruce Tulloch wrote: What is the *recommended* way to build and package a shared library for OSX? Our aim is that ordinary users can "just install it" such that other applications that depend on the library "just run" (without requiring authors of those other applic

Re: [fpc-pascal] is there a ready to use FPC Cross compiler x86-Linux -> MIPS-linux?

2013-06-10 Thread Jonas Maebe
On 09 Jun 2013, at 19:08, Dennis Poon wrote: Also, in Lazarus, it still report /usr/bin/fpc does not support mips-linux. Should I go into the .lazarus folder in my user folder and change the environmentoptions.xml from to ? Frankly, I don't understand why I have to BOTH change the co

[fpc-pascal] TGZStream and Int64-sized streams

2013-06-10 Thread Roland Schäfer
Hi all, I'm wondering if anyone is maintaining TGZFileStream, because TStream has Int64-typed Position, Size, and Seek-Offset, and I need this in TGZStream for some large files I process. Any solutions? Cheers! Roland ___ fpc-pascal maillist - fpc-pas

[fpc-pascal] Packaging shared libraries for OSX, recommendations?

2013-06-10 Thread Bruce Tulloch
What is the *recommended* way to build and package a shared library for OSX? Our aim is that ordinary users can "just install it" such that other applications that depend on the library "just run" (without requiring authors of those other applications to include a copy of the library in their bund