[packaging] libmysqlclient installation incomplete on Windows

Feiyun Wang feiyunw at yahoo.com
Tue Jun 5 04:42:25 UTC 2018


Hi,

The libmysqlclient installation on Windows VS2017 is incomplete.

My test version is:
Revision: 64c07bf5c3c8402c073a5f6e112c00250b040e12
Author: Karen Arutyunov <karen at codesynthesis.com>
Date: 2018/6/2 1:33:46
Message:
Remove target/scope irregularity workarounds

And b.exe version:
````
g:\prj\odb>c:\build2\bin\b.exe --version
build2 0.7.0
libbutl 0.7.0
host x86_64-microsoft-win32-msvc14.1
Copyright (c) 2014-2018 Code Synthesis Ltd
This is free software released under the MIT license.
````

My build script:
````
ECHO ===== Installing libmysqlclient-vs2017
mkdir libmysqlclient-vs2017
b config.cxx=cl config.cc.coptions="/O2 /wd4819" config.install.root="install/libmysqlclient-vs2017/" "configure(libmysqlclient/@libmysqlclient-vs2017/)"
cd libmysqlclient-vs2017
b install
cd ..
ECHO ===== Installing libmysqlclient-vs2017-debug
mkdir libmysqlclient-vs2017-debug
b config.cxx=cl config.cc.coptions="/Od /wd4819" config.cc.loptions=/DEBUG config.install.root="install/libmysqlclient-vs2017-debug/" "configure(libmysqlclient/@libmysqlclient-vs2017-debug/)"
cd libmysqlclient-vs2017-debug
b install
cd ..
````

The compile process looks good, while dll and lib are all in place.
But when I tried to compile the hello example with VS2017, it came out:
````
1>driver.cxx
1>g:\prj\odb\install\libmysqlclient-vs2017-debug\include\mysql\mysql.h(64): fatal error C1083: Cannot open include file: 'mysql/client_plugin.h': No such file or directory
1>person-odb.cxx
1>g:\prj\odb\install\libmysqlclient-vs2017-debug\include\mysql\mysql.h(64): fatal error C1083: Cannot open include file: 'mysql/client_plugin.h': No such file or directory
````

Check libmysqlclient installation:
````
g:\prj\odb>tree install\libmysqlclient-vs2017
卷 Data 的文件夹 PATH 列表
卷序列号为 2E31-CB03
G:\PRJ\ODB\INSTALL\LIBMYSQLCLIENT-VS2017
├─bin
├─include
│  └─mysql
├─lib
│  └─pkgconfig
└─share
    └─doc
        └─libmysqlclient

g:\prj\odb>dir install\libmysqlclient-vs2017\include\mysql
 驱动器 G 中的卷是 Data
 卷的序列号是 2E31-CB03

 g:\prj\odb\install\libmysqlclient-vs2017\include\mysql 的目录

2018/06/05  09:01    <DIR>          .
2018/06/05  09:01    <DIR>          ..
2018/06/05  09:01             2,037 binary_log_types.h
2018/06/05  09:01             4,463 errmsg.h
2018/06/05  09:01            29,900 mysql.h
2018/06/05  09:01            44,723 mysqld_error.h
2018/06/05  09:01            25,115 mysql_com.h
2018/06/05  09:01             2,227 mysql_time.h
2018/06/05  09:01               217 mysql_version.h
2018/06/05  09:01             2,390 my_alloc.h
2018/06/05  09:01             1,731 my_command.h
2018/06/05  09:01             1,551 my_list.h
2018/06/05  09:01             2,336 typelib.h
2018/06/05  09:01             1,616 version.h
              12 个文件        118,306 字节
               2 个目录 139,398,893,568 可用字节
````

Trace back to the installation log:
````
===== Installing libmysqlclient-vs2017
...
install ..\install\libmysqlclient-vs2017\
install ..\install\libmysqlclient-vs2017\include\
install ..\install\libmysqlclient-vs2017\include\mysql\
install ..\libmysqlclient\mysql\h{binary_log_types}@mysql\
install ..\libmysqlclient\mysql\h{errmsg}@mysql\
install ..\libmysqlclient\mysql\h{mysql}@mysql\
install ..\libmysqlclient\mysql\h{mysqld_error}@mysql\
install ..\libmysqlclient\mysql\h{mysql_com}@mysql\
install ..\libmysqlclient\mysql\h{mysql_time}@mysql\
install ..\libmysqlclient\mysql\h{mysql_version}@mysql\
install ..\libmysqlclient\mysql\h{my_alloc}@mysql\
install ..\libmysqlclient\mysql\h{my_command}@mysql\
install ..\libmysqlclient\mysql\h{my_list}@mysql\
install ..\libmysqlclient\mysql\h{typelib}@mysql\
install ..\install\libmysqlclient-vs2017\share\
install ..\install\libmysqlclient-vs2017\share\doc\
install ..\install\libmysqlclient-vs2017\share\doc\libmysqlclient\
install ..\libmysqlclient\manifest{manifest}
install mysql\h{version}
install mysql\liba{mysqlclient}
install ..\install\libmysqlclient-vs2017\bin\
install mysql\libs{mysqlclient}
install ..\libmysqlclient\doc{COPYING}
install ..\libmysqlclient\doc{GPLv2}
install ..\libmysqlclient\doc{README}
===== Installing libmysqlclient-vs2017-debug
...
install ..\install\libmysqlclient-vs2017-debug\
install ..\install\libmysqlclient-vs2017-debug\include\
install ..\install\libmysqlclient-vs2017-debug\include\mysql\
install ..\libmysqlclient\mysql\h{binary_log_types}@mysql\
install ..\libmysqlclient\mysql\h{errmsg}@mysql\
install ..\libmysqlclient\mysql\h{mysql}@mysql\
install ..\libmysqlclient\mysql\h{mysqld_error}@mysql\
install ..\libmysqlclient\mysql\h{mysql_com}@mysql\
install ..\libmysqlclient\mysql\h{mysql_time}@mysql\
install ..\libmysqlclient\mysql\h{mysql_version}@mysql\
install ..\libmysqlclient\mysql\h{my_alloc}@mysql\
install ..\libmysqlclient\mysql\h{my_command}@mysql\
install ..\libmysqlclient\mysql\h{my_list}@mysql\
install ..\libmysqlclient\mysql\h{typelib}@mysql\
install ..\install\libmysqlclient-vs2017-debug\share\
install ..\install\libmysqlclient-vs2017-debug\share\doc\
install ..\install\libmysqlclient-vs2017-debug\share\doc\libmysqlclient\
install ..\libmysqlclient\manifest{manifest}
install mysql\h{version}
install mysql\liba{mysqlclient}
install mysql\libs{mysqlclient}
install ..\libmysqlclient\doc{COPYING}
install ..\libmysqlclient\doc{GPLv2}
install ..\libmysqlclient\doc{README}
````

Sincerely,
Feiyun Wang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/packaging/attachments/20180605/d1ff7739/attachment.html>


More information about the packaging mailing list