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

Reply via email to