MySQL Forums
Forum List  »  Connector/C++

Re: Connector/C++ Issues
Posted by: Andrey Hristov
Date: October 09, 2008 01:02PM

Hi,
regarding 1). cmake looks for _r, as can be seen here. The except is from 1_0_0 and trunk (current dev branch) contains it too.
IF (WIN32)
...
ELSE (WIN32)
IF (MYSQL_CONFIG_EXECUTABLE)
_MYSQL_CONFIG(MYSQL_LIBRARIES "(^| )-l" "--libs_r")
_MYSQL_CONFIG(MYSQL_LIB_DIR "(^| )-L" "--libs_r")

ELSE (MYSQL_CONFIG_EXECUTABLE)
FIND_LIBRARY(MYSQL_LIB NAMES mysqlclient_r
PATHS
$ENV{MYSQL_DIR}/libmysql_r/.libs
$ENV{MYSQL_DIR}/lib
$ENV{MYSQL_DIR}/lib/mysql
/usr/lib/mysql
/usr/local/lib/mysql
/usr/local/mysql/lib
/usr/local/mysql/lib/mysql
/opt/mysql/mysql/lib
/opt/mysql/mysql/lib/mysql)
SET(MYSQL_LIBRARIES mysqlclient_r )

Regarding 2. This is a bug and will be fixed.
Regarding 3. MySQL Connector/C++ uses cmake instead of the autotools. The GNU autotools doesn't work on Windows, but Windows is also a supported platform. cmake makes it easy to have build on Windows and *nixes. In addition, it's easier to "configure" the build with cmake. I can imagine that it looks strange, if you donwload sources that don't contain a configure script. The README however explains how to build it.

Thank you for trying the connector!

Andrey

Options: ReplyQuote


Subject
Views
Written By
Posted
4147
October 08, 2008 08:33PM
Re: Connector/C++ Issues
2706
October 09, 2008 01:02PM


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.