MySQL Forums
Forum List  »  Connector/C++

Re: mysqlcppconn-static.lib not being generated in CMake build
Posted by: Rafal Somla
Date: June 27, 2025 08:12AM

Hi,

I think what you are missing is the -DWITH_JDBC=ON option (together with -DBUILD_STATIC=ON). You want to build the classic connector (JDBC API) and that is built only when the WITH_JDBC option is enabled. Building the classic connector requires the MySQL client library which is normally installed as part of the MySQL server package. If you don't have the development bits for the MySQL client library installed on your system then you can use local installation and point to it using -DWITH_MYSQL=... config option.

As you guessed the include/jdbc/ folder is generated during install step (when WITH_JDBC build option is enabled).

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: mysqlcppconn-static.lib not being generated in CMake build
92
June 27, 2025 08:12AM


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.