[odb-users] Re: libodb-mysql: no rule to update odb\mysql\details\(c|i|h)xx{options}

Feiyun Wang feiyunw at yahoo.com
Sat Jun 2 00:08:37 EDT 2018

Hi Boris,
Thanks for your advice and it works!
Here is my build procedure:
set PATH=C:\build2\bin;%PATH%
mkdir libcutl-vs2017
b config.cxx=cl config.install.root=C:\build2 config.cc.coptions=/O2 "configure(libcutl/@libcutl-vs2017/)"
cd libcutl-vs2017/
b install
cd ..

mkdir cli-vs2017
b config.cxx=cl config.install.root=C:\build2 config.cc.coptions=/O2 config.import.libcutl=libcutl-vs2017/ "configure(cli/@cli-vs2017/)"
cd cli-vs2017
b install
cd ..

mkdir libodb-mysql-vs2017
cd libodb-mysql
git checkout -f master --
cd ..
b config.cxx=cl config.cli=C:\build2\bin\cli.exe config.cc.coptions=/O2 config.import.libmysqlclient=libmysqlclient-vs2017/ config.import.libodb=libodb-vs2017/ "configure(libodb-mysql/@libodb-mysql-vs2017/)"
b libodb-mysql-vs2017/

BTW, after changing libodb-mysql manifest and odb\mysql\buildfile like:

-depends: libmysqlclient ^5.0.3

+depends: libmariadb ^10.2.2


-client_lib = 'mysql'

-#client_lib = 'mariadb'

+#client_lib = 'mysql'

+client_lib = 'mariadb'


I managed to build libodb-mysql with libmariadb instead of libmysqlclient:
mkdir libmariadb-vs2017
b config.cxx=cl config.cc.coptions="/O2 /wd4819" "configure(libmariadb/@libmariadb-vs2017/)"
b libmariadb-vs2017/

mkdir libodb-mariadb-vs2017
b config.cxx=cl config.cli=C:\build2\bin\cli.exe config.cc.coptions=/O2 config.import.libmariadb=libmariadb-vs2017/ config.import.libodb=libodb-vs2017/ "configure(libodb-mysql/@libodb-mariadb-vs2017/)"
b libodb-mariadb-vs2017/

Thanks again!

Feiyun Wang

    On ‎Friday‎, ‎June‎ ‎01‎, ‎2018‎ ‎11‎:‎30‎:‎42‎ ‎PM, Boris Kolpackov <boris at codesynthesis.com> wrote:  
 Feiyun Wang <feiyunw at yahoo.com> writes:

> d:\prj\odb>b config.cxx=cl config.cc.coptions=/O2 "configure(libodb/@libodb-vs2017-release/)"
> [...]
> - libodb-mysql 
> Revision: dcd4b078c8da2ab68cb8fdadac52cae4499dd502 

If you are building form git, then you need to make sure you have all the
source code generators installed since the generated code is not (normally)
checked in into the repository. In this case you need CLI (you can get the
packaged version from cppget.org). Once you have it, either add it to
your PATH or specify its location during configuration:

b config.cli=C:\path\to\cli.exe ... configure ...


More information about the odb-users mailing list