Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

C++ Connector Cmake problems (no replies)

$
0
0
Hi, I want to connect to my MySQL database in my C++ program. I downloaded the C++ connector source and generic linux tar (x64):

mysql-connector-c++-1.1.3-linux-glibc2.3-x86-64bit.tar.gz
mysql-connector-c++-1.1.3.tar.gz

I untarred the source and ran cmake and got these issues:
CMake Warning (dev) in CMakeLists.txt:
A logical block opening on the line

/home/bert/Downloads/mysql-connector-c++-1.1.3/CMakeLists.txt:39 (if)

closes on the line

/home/bert/Downloads/mysql-connector-c++-1.1.3/CMakeLists.txt:41 (endif)

with mis-matching arguments.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Environment compile flags:
-- Environment link flags:
-- BOOST_INCLUDE_DIRS=/usr/include
-- ENV{MYSQL_DIR} =
CMake Error at FindMySQL.cm:218 (MESSAGE):
mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)


CMake Error at FindMySQL.cm:220 (MESSAGE):
Cannot find MySQL. Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
cxxflags:
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)


-- Configuring incomplete, errors occurred!


I can confirm i installed mysql server and client.
sudo apt-get install mysql-server mysql-client


What can I do to fix this? Thanks

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>