Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SQLite in OS 10.4




On Jul 29, 2005, at 12:45 PM, a.d. jensen wrote:

I'm interested in taking a look at sqlite, but this:

The SQLite library is located at /usr/lib/libsqlite.dylib and the sqlite.h header file is in /usr/include.
>(From: http://tinyurl.com/bvb58 [apple.com])

doesn't appear to be installed on any of the computers running various flavours of 10.4 that I have.


ls -l /usr/lib/libsqlite*
lrwxr-xr-x   1 root  wheel      18 May 11 19:00 /usr/lib/libsqlite3.0.8.6.dylib@ -> libsqlite3.0.dylib
-rwxr-xr-x   1 root  wheel  284508 Jun 12 22:21 /usr/lib/libsqlite3.0.dylib*
lrwxr-xr-x   1 root  wheel      18 May 11 19:00 /usr/lib/libsqlite3.dylib@ -> libsqlite3.0.dylib

So it's libsqlite3.0

ls /usr/include/sqlite*
/usr/include/sqlite3.h

This is on a 10.4.1 system


I did find this:


but my Xcode 2.1 installation doesn't seem to like that either.  Compiling a PPC version results in "/usr/bin/ld: table of contents for archive: /Users/adjensen/Libraries/libsqlite.a is out of date; rerun ranlib(1) (can't load from it)"

I presume that I can, with some effort, go to sqlite.org, download the sources and compile them myself, but for consistency's sake, if there's a standard library that should be included in the locations cited in the Apple.com link, I'd rather use those.

Or just do what it tells you - run "ranlib /Usrs/adjensen/Libraries/libsqlite.a"  you're good to go (basically, anytime you download a ".a" static library you need to run ranlib because, according the man ranlib:

Thus the link editor, ld, warns when
       the modification date of a library is more  recent  than  the  creation
       date  of its table of contents.  Unfortunately, this means that you get
       the warning even if you only copy the library.

)

But using libsqlite3.0 in /usr/lib is probably the cleaner way to do things, assuming you are going to require 10.4.



Glenn Andreas                      email@hidden 

 <http://www.gandreas.com/> wicked fun!

Widgetarium | the quickest path to widgets


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >SQLite in OS 10.4 (From: "a.d. jensen" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.