On Mon, Feb 23, 2009 at 8:54 AM, William Kyngesburye <kyngch...@kyngchaos.com> wrote: > On Feb 23, 2009, at 7:48 AM, P Kishor wrote: > >> I am tinkering with (aka learning) Xcode 3.1.2, and am trying to set >> up an Xcode project for SQLite amalgamation. What could be simpler, >> no? >> >> My Xcode project is throwing errors. Could someone directly (offlist) >> email me their Xcode project file so I may learn from it? > > > Well, I don't have an Xcode project for Sqlite, but I may be able to help. > > What errors? > > Also, as a first step in any project, which would be missed if you picked > apart someone else's project, choosing the right project template is > important. A template is more than just an initial source file and target, > Xcode does some things differently (like compilation) depending on the > template - I think it's mostly the C flavor that affects anything. And you > can't change the template once selected. > > At least, I used to have trouble with C++ in a C template. Xcode 3 seems to > be more forgiving. > > Looks like Standard Command Line Tool would be the template to use for > SQLite. BSD Dynamic Library would also work. >
Ok, thanks William. I started again with BSD Dynamic Library template, and this time I got only one error... a warning about an unused variable 'err' on line 26510 of sqlite3.c. That line reads 26509> /* if mkdir fails, handle as lock file creation failure */ 26510> int err = errno; (hence, cc-ing this message to the sqlite list) But, it did build. Now, of course, since I asked for just a BSD Dynamic Library, I got a libsqlite.dylib in the Products folder. I didn't get my usual sqlite3 shell binary, so does that mean I have to create another Xcode project with the Standard Command Line Tool template for that? Also, is there an equivalent of 'sudo make install' for Xcode that actually files all the sqlite3 bits and bobs in the correct places? Of course, I can do all this without any problem from the command line, so this is more an exercise in learning Xcode. -- Puneet Kishor http://www.punkish.org/ Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/ Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/ Sent from: Madison Wisconsin United States. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users