[build2] Build libodb-sqlite using system libsqlite3 on macOS
Boris Kolpackov
boris at codesynthesis.com
Tue Oct 5 10:41:08 UTC 2021
Adnan RIHAN <axel50397 at gmail.com> writes:
> >% bpkg build libodb-sqlite "?sys:libodb/*" "?sys:libsqlite3/*"
> >configured sys:libsqlite3/*
> >configured sys:libodb/*
> >using libodb-sqlite/2.5.0-b.19 (external)
> >error: unable to import target libsqlite3%lib{sqlite3}
> > info: use config.import.libsqlite3 configuration variable to specify its project out_root
> > info: or use config.import.libsqlite3.sqlite3.lib configuration variable to specify its path
> >error: unable to import target libsqlite3%lib{sqlite3}
> > info: use config.import.libsqlite3 configuration variable to specify its project out_root
> > info: or use config.import.libsqlite3.sqlite3.lib configuration variable to specify its path
>
> So, as instructed, I added "config.import.libsqlite3.sqlite3.lib=/usr/local/opt/sqlite3/lib"
> [...]
That suggestion is a bit misleading in this situation (it is issued
by a general importation machinery that does not distinguish between
exe{}, lib{}, etc). Try something like this:
bpkg build libodb-sqlite "?sys:libodb/*" "?sys:libsqlite3/*" \
config.cc.poptions=-I/usr/local/opt/sqlite3/include \
config.cc.loptions=-I/usr/local/opt/sqlite3/lib
BTW, this is discussed in more detail in the toolchain introduction,
specifically:
https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml#guide-system-deps
https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml#guide-unpackaged-deps
> >% bpkg build libodb-sqlite "?sys:libodb/*" "?sys:libsqlite3/*"
> >Assertion failed: (!k.ext), function to_stream, file /private/tmp/build2-20210930-54042-1y6y00/build2-toolchain-0.13.0/build2/libbuild2/target.cxx, line 550.
Will look into the assert, thanks.
More information about the users
mailing list