从源

时间:2016-09-28 18:04:08

标签: c++ mysql cygwin

我一直在努力让MySQL C ++ Connector在Windows上编译几天。我安装了Cygwin。

我运行以下

set cc=gcc
set cxx=gcc

cmake -G "MinGW Makefiles" -DCMAKE_REQUIRED_FLAGS=-xO4 -DCMAKE_INSTALL_PREFIX=C:\\exports\\Connector -DMYSQL_CONFIG_EXECUTABLE="C:\\Program Files\\MySQL\\MySQL Server 5.7"

But I get the following output:

-- Boost version: 1.61.0
-- BOOST_INCLUDE_DIRS=C:/boost_1_61_0
-- You will link dynamically to the MySQL client library (set with -DMYSQLCLIENT_STATIC_LINKING=<bool>)
-- Searching for dynamic libraries with the base name(s) "libmysql"
CMake Error at FindMySQL.cmake:494 (message):
  Could not find the include dir from running "C:\\Program
  Files\\MySQL\\MySQL Server 5.7"
Call Stack (most recent call first):
  CMakeLists.txt:218 (INCLUDE)


-- Configuring incomplete, errors occurred!
See also "C:/Users/Chris/MySQLConnector/CMakeFiles/CMakeOutput.log".

我不明白为什么它说它无法找到包含目录,因为我可以在路径C:\Program Files\MySQL\MySQL Server 5.7\include

中看到它

0 个答案:

没有答案