osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: [sqlite] sqlite on mac os x 64 bits -
msg#00477

List: sqlite-users

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index


On May 18, 2010, at 4:14 AM, Sylvain Pointeau wrote:
> but is it 64 bits? or do I have to add a special option?

Last time I built a Universal Binary sqlite3 on OS X (March 2010 3.6.22) I had
to

CFLAGS='-arch i686 -arch x86_64' LDFLAGS='-arch i686 -arch x86_64' ./configure
--disable-dependency-tracking

Without the --disable-dependency-tracking configure gets confused;
alternatively you can
# edit Makefile removing -M options
# basically turning the .c.o and .c.lo rules into
# $(COMPILE) -c -o $@ $<
# $(LTCOMPILE) -c -o $@ $<


You can use the file command to reveal the library's compatible machine
architectures, e.g.,

~ e$ file /usr/local/lib/libsqlite3.dylib
/usr/local/lib/libsqlite3.dylib: Mach-O universal binary with 2 architectures
/usr/local/lib/libsqlite3.dylib (for architecture i386): Mach-O
dynamically linked shared library i386
/usr/local/lib/libsqlite3.dylib (for architecture x86_64): Mach-O 64-bit
dynamically linked shared library x86_64
~ e$ file /usr/local/lib/libsqlite3.a
/usr/local/lib/libsqlite3.a: Mach-O universal binary with 2 architectures
/usr/local/lib/libsqlite3.a (for architecture i386): current ar archive
random library
/usr/local/lib/libsqlite3.a (for architecture x86_64): current ar archive
random library
~ e$


e

_______________________________________________
sqlite-users mailing list
sqlite-users@xxxxxxxxxx
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Thread at a glance:

Previous Message by Date:

[sqlite] Accessing SQLite from PHP5?

Hello I'd like to use SQLite from some PHP5 scripts, either on Linux or Linux. What is the right way to set things up so that I can use a recent release of SQLite (apparently, the SQLite that comes with PHP by default is a 2.x release)? Thank you. _______________________________________________ sqlite-users mailing list sqlite-users@xxxxxxxxxx http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Next Message by Date:

Re: [sqlite] Accessing SQLite from PHP5?

Hello GG> I'd like to use SQLite from some PHP5 scripts, either on Linux or GG> Linux. A wise choice either way! GG> What is the right way to set things up so that I can use a recent GG> release of SQLite (apparently, the SQLite that comes with PHP by GG> default is a 2.x release)? If you use PDO, then you get access to Sqlite 3.x databases: http://www.php.net/manual/en/ref.pdo-sqlite.php Swithun. _______________________________________________ sqlite-users mailing list sqlite-users@xxxxxxxxxx http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Previous Message by Thread:

[sqlite] sqlite on mac os x 64 bits

hello, I am generally doing: ./configure make sudo make install for having sqlite in my /usr/local/ directory. but is it 64 bits? or do I have to add a special option? Best regards, Sylvain _______________________________________________ sqlite-users mailing list sqlite-users@xxxxxxxxxx http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Next Message by Thread:

Re: [sqlite] sqlite on mac os x 64 bits

Hello, many thanks for your answer, I tried the command "file" on the current lib that I just built (by ./configure CFLAGS="-DSQLITE_ENABLE_ICU `icu-config --cppflags`" LDFLAGS="`icu-config --ldflags`") it gives: $ file /usr/local/lib/libsqlite3.dylib /usr/local/lib/libsqlite3.dylib: Mach-O 64-bit dynamically linked shared library x86_64 so it is 64 bits by default... this is what I mean, in my opinion. Best regards, Sylvain On Tue, May 18, 2010 at 2:51 PM, Doug Currie <doug.currie@xxxxxxxxx> wrote: > > On May 18, 2010, at 4:14 AM, Sylvain Pointeau wrote: > > but is it 64 bits? or do I have to add a special option? > > Last time I built a Universal Binary sqlite3 on OS X (March 2010 3.6.22) I > had to > > CFLAGS='-arch i686 -arch x86_64' LDFLAGS='-arch i686 -arch x86_64' > ./configure --disable-dependency-tracking > > Without the --disable-dependency-tracking configure gets confused; > alternatively you can > # edit Makefile removing -M options > # basically turning the .c.o and .c.lo rules into > # $(COMPILE) -c -o $@ $< > # $(LTCOMPILE) -c -o $@ $< > > > You can use the file command to reveal the library's compatible machine > architectures, e.g., > > ~ e$ file /usr/local/lib/libsqlite3.dylib > /usr/local/lib/libsqlite3.dylib: Mach-O universal binary with 2 > architectures > /usr/local/lib/libsqlite3.dylib (for architecture i386): Mach-O > dynamically linked shared library i386 > /usr/local/lib/libsqlite3.dylib (for architecture x86_64): Mach-O > 64-bit dynamically linked shared library x86_64 > ~ e$ file /usr/local/lib/libsqlite3.a > /usr/local/lib/libsqlite3.a: Mach-O universal binary with 2 architectures > /usr/local/lib/libsqlite3.a (for architecture i386): current ar archive > random library > /usr/local/lib/libsqlite3.a (for architecture x86_64): current ar archive > random library > ~ e$ > > > e > > _______________________________________________ > sqlite-users mailing list > sqlite-users@xxxxxxxxxx > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@xxxxxxxxxx http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!