Page 1 of 1

Running Sqlite on Mac (PB4 Beta 1)

Posted: Tue May 15, 2007 8:47 am
by CSAUER
It is not often, that someone is posting helpful stuff without API calls. Here is one and its been tested on my Mac Mini G4 with OS X 10.4 together with PB4 Mac Beta 1.
http://www.purebasic.fr/english/viewtopic.php?t=27036

You don't need a Sqlite.dll as it is shipped already with OS X 10.4
Just run the code.

P.S. I have some problems with copy and paste code from this forum to Mac IDE as it seems that it adds some invisible line-ending information which lets compiler say: "Garbage at the end of line".
If you key in manually or import code via Windows and run it on Mac IDE, it will work correctly.

Re: Running Sqlite on Mac (PB4 Beta 1)

Posted: Wed May 16, 2007 9:34 pm
by michel51
CSAUER wrote:It is not often, that someone is posting helpful stuff without API calls. Here is one and its been tested on my Mac Mini G4 with OS X 10.4 together with PB4 Mac Beta 1.
http://www.purebasic.fr/english/viewtopic.php?t=27036
Great, it works (with the command SQLiteInit("/usr/lib/libsqlite3.dylib") )
It's really crossplatform :D
P.S. I have some problems with copy and paste code from this forum to Mac IDE as it seems that it adds some invisible line-ending information which lets compiler say: "Garbage at the end of line".
If you key in manually or import code via Windows and run it on Mac IDE, it will work correctly.

Try this: "quote" the post, click into the source, select all, copy and past ist into an new pb-window (may be you can select a part, I don't tried). Then delete the unused lines and it works. I've tried it with this source, no "Garbage at the end of line" .

Hope it works on your Mac in the same way :)

Posted: Thu May 17, 2007 12:08 am
by johnfinch
Thanks for letting us know! These are great routines.