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):

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

Options: ReplyQuote


Subject
Views
Written By
Posted
C++ Connector Cmake problems
6150
August 16, 2013 10:10AM
2401
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.