gpt4 book ai didi

mysql - 使用 cmake 构建 Poco : MySQL Support Disabled - no MySQL library

转载 作者:行者123 更新时间:2023-11-30 21:50:51 25 4
gpt4 key购买 nike

主要目标是为 Ubuntu 16.04 构建 Poco Complete Edition 库并工作。如果有人阅读手册 https://pocoproject.org/docs/00200-GettingStarted.html一切看起来都很简单。但一如既往,除了我之外,每个人都非常明显的东西被省略了,而且食谱不起作用。

我做了什么?当然,我已经安装了openssl、odbc、mysql-client和libmysqlclient-dev。之后我运行“cmake ..”,bash 告诉我

...
-- Couldn't find MySQL or MariaDB
-- MySQL Support Disabled - no MySQL library
...

好吧,让我们忽略那个……执行“make”和“make install”。成功。但是当我尝试用 Qt5 编写时

 #include <Poco/Data/MySQL/Connector.h>

它告诉我,没有这样的 header 。甚至 MySQL 文件夹。

请告诉我,我错过了什么?我该如何解决?

最佳答案

我自己找到了解决方案。应该执行mysql的二进制安装,即将tar-content复制到/usr/local/mysql,最后poco的cmake会告诉它找到了MySQL。

关于mysql - 使用 cmake 构建 Poco : MySQL Support Disabled - no MySQL library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47336817/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com