Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
6.9
-
None
-
CYGWIN Bash + MinGW-w64
Description
When building latest sources of Qt with MinGW-w64, I got this error:
qtbase/src/plugins/sqldrivers/mysql/qsql_mysql.cpp: In member function ‘virtual QSqlRecord QMYSQLDriver::record(const QString&) const’: qtbase/src/plugins/sqldrivers/mysql/qsql_mysql.cpp:1519:22: error: ‘mysql_real_escape_string_quote’ was not declared in this scope; did you mean ‘mysql_real_escape_string’? 1519 | const auto len = mysql_real_escape_string_quote(d->mysql, tableNameQuoted.data(), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | mysql_real_escape_string ninja: build stopped: subcommand failed.
Here there is already an #ifdef...#else...#endif, so I did a quick hack into the source for using mysql_real_escape_string() instead, then I executed again ninja and it completed the build.
I had installed on my sysroot:
SQLite3-3.34.0 mariadb-connector-c-2.3.3
After uninstalling mariadb-connector-c , the error disappeared.
See also QTBUG-133778 for additional details.