MySQL Forums
Forum List  »  Connector/C++

C++ Connector Cmake problems
Posted by: Bert Dewaele
Date: August 16, 2013 10:10AM

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


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
CMake Error at (MESSAGE):
mysql_config wasn't found, -DMYSQL_CONFIG_EXECUTABLE=...
Call Stack (most recent call first):
CMakeLists.txt:173 (INCLUDE)

CMake Error at (MESSAGE):
Cannot find MySQL. Include dir: MYSQL_INCLUDE_DIR-NOTFOUND library dir:
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

Options: ReplyQuote

Written By
C++ Connector Cmake problems
August 16, 2013 10:10AM
September 11, 2013 03:23AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.