Indeed, configuring sqlite to compile as a dylib on OSX is easy (it's the default).
I think what Richard may mean is packaging an installer so that the dylib is installed where it needs to be. As you point out Jay, dylibs have additional metadata, part of that is the full path to the dylib, and this is also in the sqlite program. So the dylib needs to be installed where it was compiled to be - /usr/local/lib. It is possible to set DYLD_LIBRARY_PATH, like LD_LIBRARY_PATH on Linux, but Mac users don't want to be bothered by this. Using a static library means the sqlite program can be installed whereever the user likes, as long as they know how to run it (ie it's in their PATH). No admin permissions needed. With a dylib, the program can still be anywhere, but the dylib needs to be where the program expects it, normally in /usr/local/lib, which needs admin permissions. Either a script to copy it there could work (again, there's the issue of us being Mac users), or a Mac installer package is needed. On Mar 20, 2009, at 10:51 AM, P Kishor wrote: > On Fri, Mar 20, 2009 at 10:27 AM, Jay A. Kreibich <j...@kreibi.ch> > wrote: >> On Fri, Mar 20, 2009 at 10:46:57AM -0400, D. Richard Hipp scratched >> on the wall: >>> >>> On Mar 20, 2009, at 10:43 AM, Jay A. Kreibich wrote: >>> >>>> >>>> I suppose this is mostly a question for the SQLite development >>>> team: >>>> >>>> I'm wondering why the dynamic libraries for the SQLite core and >>>> TCL-SQLite bindings are not available for Mac OS X (.dylib), when >>>> they are for Linux (.so) and Windows (.DLL). >>> >>> Because I do not know how to generate .dylib files. >> >> That's a good reason... and one that hopefully can be fixed. >> >> As I'm sure you know, .dylib files are the Mach-O (link format used >> by OS X) equivalent of ELF .so files. The main difference is that >> .dylib files have a bit more meta data and can contain multiple >> architectures, so they need to be created with the right set of >> tools. >> >> You can use "libtool -dynamic", just like most platforms, or "gcc >> -dynamiclib" to do it directly from the compiler. This works well >> enough with the amalgamation: >> >> $ gcc -dynamiclib sqlite3.c -o libsqlite3.dylib > > even though I know less about this than your average circuit board, I > didn't even have to ever do the above... > > Just a simple 'make' creates all the .dylib files for me because all > this is taken care of by the Makefile. > > What am I doing right? > > > >> >> You can also embed version information and some meta info into the >> .dylib file. If you have cross compilers installed, you can >> create a >> .dylib file that has both Intel and PowerPC object code, although >> that's becoming less and less important. >> >> >> If you want to take this off-line, I'd be happy to help with more >> specifics. >> >> -j >> >> -- >> Jay A. Kreibich < J A Y @ K R E I B I.C H > >> >> "Our opponent is an alien starship packed with atomic bombs. We have >> a protractor." "I'll go home and see if I can scrounge up a ruler >> and a piece of string." --from Anathem by Neal Stephenson >> _______________________________________________ >> sqlite-users mailing list >> sqlite-users@sqlite.org >> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users >> > > > > -- > Puneet Kishor http://www.punkish.org/ > Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/ > Carbon Model http://carbonmodel.org/ > Open Source Geospatial Foundation http://www.osgeo.org/ > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/ "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty." "Don't you even hate 'em?" "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day." <Ha, ha> "And it might give 'em all stomach ulcers." - Tarzan, on war _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users