MySQL Forums
Forum List  »  Connector/ODBC

Re: Correct way to compile myodbc connector 8.0.19
Posted by: Bogdan Degtyariov
Date: August 13, 2020 02:57AM

The current cmake string has a few duplicated options. They need to be removed.
Unless your MySQL Client lib has a non-standard name it does not need to be specified.
However, it is recommended to point to MySQL install directory where mysql_config can be found inside bin directory:

cmake -DCMAKE_INSTALL_PREFIX=/dir1 -DWITH_UNIXODBC=1 -DODBC_PATH=/usr/local/odbc -DODBC_LIB_DIR=/usr/local/odbc/lib -DODBC_INCLUDES=/usr/local/odbc/include -DDISABLE_GUI=1 -DMYSQL_LIB_DIR=/home/as/build-nosemantic/runtime_output_directory -DMYSQL_INCLUDE_DIR=/home/as/temp/tmp/usr/include/mysql -DMYSQLCLIENT_STATIC_LINKING:BOOL=false -DMYSQL_CXX_LINKAGE=1 -DMYSQL_DIR=<directory with MySQL>

Options: ReplyQuote


Subject
Written By
Posted
Re: Correct way to compile myodbc connector 8.0.19
August 13, 2020 02:57AM


Sorry, only registered users may post in this forum.

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.