Hello,
Forwarding message from semsdev.
Also, my libraries are:
ii libmysql++-dev 3.0.9-1ubuntu2 MySQL
C++ library bindings (development)
ii libmysql++3 3.0.9-1ubuntu2 MySQL C++
library bindings (runtime)
ii libmysqlclient-dev 5.1.63-0ubuntu0.11.04.1
MySQL database development files
Cheers,
Marius
-------- Original Message --------
Subject: [Semsdev] Problem building db_reg_agent on Ubuntu 11.04
Date: Thu, 6 Sep 2012 11:51:28 +0200
From: Marius Zbihlei <[email protected]>
To: [email protected] <[email protected]>
Hello,
Somehow mysql++ development headers include a reference to
mysql_version.h which, on my system is in /usr/include/mysql/ . This
caused compilation to fail. Easy fix was to extend CMakeLists.txt with
the attached patch in the db_reg_agent directory so that the correct
include directory is added.
Please review and commit if necessary!
Thank you!
Marius
--
Zbihlei Marius
Head of
Linux Development Services Romania
1&1 Internet Development srl Tel KA: 754-9152
Str Mircea Eliade 18 Tel RO: +40-31-223-9152
Sect 1, Bucuresti mailto: [email protected]
71295, Romania
diff --git a/apps/db_reg_agent/CMakeLists.txt b/apps/db_reg_agent/CMakeLists.txt
index bef0779..e2d6aa4 100644
--- a/apps/db_reg_agent/CMakeLists.txt
+++ b/apps/db_reg_agent/CMakeLists.txt
@@ -8,3 +8,16 @@ SET(sems_module_libs ${sems_module_libs} mysqlpp)
SET(sems_module_name db_reg_agent)
INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
+
+find_path(MySQL_INCLUDE_DIRS mysql_version.h
+ /usr/include/mysql
+ /usr/local/mysql/include
+ /usr/local/include/mysql
+ /usr/local/include
+ /usr/include
+ /usr/mysql/include
+)
+
+INCLUDE_DIRECTORIES(${MySQL_INCLUDE_DIRS})
+
+
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems