[build2] Build libodb-sqlite using system libsqlite3 on macOS

Adnan RIHAN axel50397 at gmail.com
Tue Oct 5 01:04:24 UTC 2021


Le 04/10/2021 à 17:55, Boris Kolpackov a écrit :
> Try this:
> 
> bpkg build libodb-sqlite "?sys:libsqlite3/*"
  Thanks for your answer. This is what I got now:

> % 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" (containing libsqlite3.a and libsqlite3.dylib) during build, and got this:

> % 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.

And I also tried this during build: config.import.libsqlite3.sqlite3=/usr/local/opt/sqlite3", but got the first error shown in this message.

What should I do please?
-- 
Regards, Adnan RIHAN

GPG: D433-5C63 (https://keybase.io/max13/key.asc)
⇒ If you are not using GPG/PGP but want to send me an encrypted e-mail: https://encrypt.to/0xD4335C63.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xF3306402D4335C63.asc
Type: application/pgp-keys
Size: 35058 bytes
Desc: OpenPGP public key
URL: <https://lists.build2.org/archives/users/attachments/20211005/07a5719d/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.build2.org/archives/users/attachments/20211005/07a5719d/attachment-0001.sig>


More information about the users mailing list