MySQL Forums
Forum List  »  Connector/C++

Re: Connector/C++ 9.0.0 build failed with error
Posted by: G. Dinusha Sandaruwan
Date: August 29, 2024 08:23AM

FIXED IT:

Here's what I did:

-Open "C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_art_resultset.cpp" with text editor.
-Use the "Search/Find" feature to find "UL64(1)".
-Replace "UL64(1)" with "1uLL".
-Find the next occurrence of "UL64(1)" and replace it with "1uLL".
-Repeat this untill there are no "UL64(1)" in the file.
-Then search/find all occurrences of "UL64(0)" and replace them with "0uLL".
-Do this for "UL64(~1)" and "UL64(~0)" as well (if there are any) (replace them with "1uLL" and "0uLL" respectively.
-Save and exit the text editor.

-Open "C:/mysql-connector-c++-9.0.0-src/jdbc/driver/mysql_statement.cpp" with text editor.
-Use the "Search/Find" feature to find "UL64(1)".
-Replace "UL64(1)" with "1uLL".
-Find the next occurrence of "UL64(1)" and replace it with "1uLL".
-Repeat this untill there are no "UL64(1)" in the file.
-Then search/find all occurrences of "UL64(0)" and replace them with "0uLL".
-Do this for "UL64(~1)" and "UL64(~0)" as well (if there are any) (replace them with "1uLL" and "0uLL" respectively.
-Save and exit the text editor.

Now open MSYS2 MINGW64 Bash and cd to "C:/mysql-connector-c++-9.0.0-build"
(This directory is the mysql-connector-c++-9.0.0 build configuration will be placed into)
Configure with the following command:

cmake "C:/mysql-connector-c++-9.0.0-src" -DCMAKE_INSTALL_PREFIX="C:/mysql-connector-c++-9.0.0-install" -DWITH_JDBC=ON -DWITH_MYSQL="C:/mysql-9.0-client-libraries" -DWITH_SSL="C:/openssl-3.3.1-install"

(Assume your mysql-connector-c++-9.0.0 source code is in "C:/mysql-connector-c++-9.0.0-src" directory and,
"C:/mysql-connector-c++-9.0.0-install" will be where the mysql-connector-c++-9.0.0 is installed and,
"C:/mysql-9.0-client-libraries" directory is where mysql client libraries are located (inside here are include and lib directories) and,
"C:/openssl-3.3.1-install" directory is where the openssl install files are located (inside here are include and lib64 directories)

And build with the following command:

cmake --build . --config Debug

(assuming you want to build the Debug configuration)

And finally, install with the following command:

cmake --build . --target install --config Debug


NOTE:
All of above commands were executed inside MSYS2 MINGW64 Bash
GNU GCC version: 13.2.0

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Connector/C++ 9.0.0 build failed with error
90
August 29, 2024 08:23AM


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.