[CMake] Weird linking error while cross compiling

Dan Kegel dank at kegel.com
Tue Oct 25 13:35:38 EDT 2011


On Tue, Oct 25, 2011 at 10:15 AM, Jose <jc.fernandez.navarro at gmail.com> wrote:
> /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld:
> cannot find -lsqlite3

The way I usually track down things like this is to find the broken commandline
(e.g. make VERBOSE=1), put it in a shell script with any needed cd,
and verify that it reproduces the problem.
You can then do things like add options to gcc to get it to
show what it's doing, or use strace -f -o slog on the script
to see where it's looking for the library in question.


More information about the CMake mailing list