Am 27.08.13 03:00, schrieb Gerry Snyder:
> This afternoon I compiled the SQLite 3.8 Tcl bindings for windows and
> 64-bit linux, and thought I would try a 32-bit compile on the linux box
> too. I already had the gcc multilib packages installed.
>
> First I did:
>
> ./configure --host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32"
> "LDFLAGS=-m32"
>
> (all on one line). That seemed to run okay, but
>
> make
>
> failed with:
>
> gcc -shared -m32 -pipe -O2 -fomit-frame-pointer -Wall -fPIC -m32
> -Wl,--export-dynamic -o
libsqlite3.8.0.so tclsqlite3.o -lpthread
> -L/home/gsnyder/ActiveTcl-8.6/lib -ltclstub8.6
>
> /usr/bin/ld: skipping incompatible
> /home/gsnyder/ActiveTcl-8.6/lib/libtclstub8.6.a when searching for
> -ltclstub8.6
>
> /usr/bin/ld: cannot find -ltclstub8.6
>
> Is it just that I need a 32-bit Tcl present?
Yes, the error means it is trying to link against a 64bit Tcl lib, which
cannot work, of course. You need to install Tcl frst and then set the
configure flags accordingly such that sqlite finds the 32bit-Tcl
(pesumably --with-tcl=/path/to/32bit/Tcl, check with --help)
BTW, when you have ActiveTcl, you can just pull in sqlite via teacup.
And compiling stuff can be automated via kbs.tcl
Christian