MYSQL for MAC OS 10.7.4
-
I want to compile the driver for mysql mac, but after the execution of make.
I have this mistake.
@ake -f Makefile.Debug install
rm -f libqsqlmysql_debug.dylib
g++ -headerpad_max_install_names -arch x86_64 -single_module -dynamiclib -Xarch_x86_64 -mmacosx-version-min=10.5 -o libqsqlmysql_debug.dylib debug/main.o debug/qsql_mysql.o debug/moc_qsql_mysql.o -F/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/lib -L/Developer/QtSDK/Desktop/Qt/4.8.1/gcc/lib -L/usr/local/mysql-5.5.27-osx10.6-x86/lib -lmysqlclient_r -framework QtSql -L/usr/local/pgsql/lib -L/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib -F/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib -framework QtCore
ld: warning: directory not found for option '-L/usr/local/pgsql/lib'
ld: warning: directory not found for option '-L/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib'
ld: warning: directory not found for option '-F/tmp/qt-stuff-85167/source/qt-everywhere-opensource-src-4.8.1/Desktop/Qt/4.8.1/gcc/lib'
ld: warning: ignoring file /usr/local/mysql-5.5.27-osx10.6-x86/lib/libmysqlclient_r.dylib, file was built for unsupported file format ( 0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64): /usr/local/mysql-5.5.27-osx10.6-x86/lib/libmysqlclient_r.dylib
Undefined symbols for architecture x86_64:
"_mysql_affected_rows", referenced from:
QMYSQLResult::nextResult() in qsql_mysql.o
QMYSQLResult::reset(QString const&) in qsql_mysql.o
"_mysql_character_set_name", referenced from:
codec(st_mysql*) in qsql_mysql.o
"_mysql_close", referenced from:
QMYSQLDriver::close() in qsql_mysql.o
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
"_mysql_data_seek", referenced from:
QMYSQLDriver::tables(QSql::TableType) const in qsql_mysql.o
QMYSQLResult::fetch(int) in qsql_mysql.o
"_mysql_errno", referenced from:
qMakeError(QString const&, QSqlError::ErrorType, QMYSQLDriverPrivate const*)in qsql_mysql.o
QMYSQLResult::record() const in qsql_mysql.o
"_mysql_error", referenced from:
qMakeError(QString const&, QSqlError::ErrorType, QMYSQLDriverPrivate const*)in qsql_mysql.o
"_mysql_fetch_field", referenced from:
QMYSQLDriver::record(QString const&) constin qsql_mysql.o
QMYSQLResult::record() const in qsql_mysql.o
QMYSQLResultPrivate::bindInValues() in qsql_mysql.o
"_mysql_fetch_field_direct", referenced from:
QMYSQLResult::nextResult() in qsql_mysql.o
QMYSQLResult::reset(QString const&) in qsql_mysql.o
"_mysql_fetch_lengths", referenced from:
QMYSQLResult::data(int) in qsql_mysql.o@ -
@_mysql_fetch_row", referenced from:
QMYSQLDriver::tables(QSql::TableType) const in qsql_mysql.o
QMYSQLResult::fetchNext() in qsql_mysql.o
QMYSQLResult::fetch(int) in qsql_mysql.o
"_mysql_field_count", referenced from:
QMYSQLResult::nextResult() in qsql_mysql.o
QMYSQLResult::reset(QString const&) in qsql_mysql.o
"_mysql_field_seek", referenced from:
QMYSQLResult::record() const in qsql_mysql.o
"_mysql_free_result", referenced from:
QMYSQLDriver::record(QString const&) constin qsql_mysql.o
QMYSQLDriver::tables(QSql::TableType) const in qsql_mysql.o
QMYSQLResult::nextResult() in qsql_mysql.o
QMYSQLResult::cleanup() in qsql_mysql.o
"_mysql_get_client_version", referenced from:
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
"_mysql_get_server_version", referenced from:
QMYSQLDriver::tables(QSql::TableType) const in qsql_mysql.o
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
"_mysql_init", referenced from:
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
"_mysql_insert_id", referenced from:
QMYSQLResult::lastInsertId() const in qsql_mysql.o
"_mysql_list_fields", referenced from:
QMYSQLDriver::record(QString const&) constin qsql_mysql.o
"_mysql_list_tables", referenced from:
QMYSQLDriver::tables(QSql::TableType) const in qsql_mysql.o
"_mysql_next_result", referenced from:
QMYSQLResult::nextResult() in qsql_mysql.o
QMYSQLResult::cleanup() in qsql_mysql.o
"_mysql_num_fields", referenced from:
QMYSQLResultPrivate::bindInValues() in qsql_mysql.o
"_mysql_num_rows", referenced from:
QMYSQLResult::size() in qsql_mysql.o
QMYSQLResult::fetchLast() in qsql_mysql.o
"_mysql_options", referenced from:
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
"_mysql_query", referenced from:
QMYSQLDriver::rollbackTransaction() in qsql_mysql.o
QMYSQLDriver::commitTransaction() in qsql_mysql.o
QMYSQLDriver::beginTransaction() in qsql_mysql.o
"_mysql_real_connect", referenced from:
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
"_mysql_real_escape_string", referenced from:
QMYSQLDriver::formatValue(QSqlField const&, bool) constin qsql_mysql.o
"_mysql_real_query", referenced from:
QMYSQLResult::reset(QString const&) in qsql_mysql.o
"_mysql_select_db", referenced from:
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
"_mysql_server_end", referenced from:
qLibraryEnd() in qsql_mysql.o
"_mysql_server_init", referenced from:
qLibraryInit() in qsql_mysql.o
"_mysql_set_character_set", referenced from:
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
"_mysql_stmt_affected_rows", referenced from:
QMYSQLResult::exec() in qsql_mysql.o
"_mysql_stmt_attr_set", referenced from:
QMYSQLResult::exec() in qsql_mysql.o
"_mysql_stmt_bind_param", referenced from:
QMYSQLResult::exec() in qsql_mysql.o
"_mysql_stmt_bind_result", referenced from:
QMYSQLResult::exec() in qsql_mysql.o
"_mysql_stmt_close", referenced from:
QMYSQLResult::cleanup() in qsql_mysql.o
"_mysql_stmt_data_seek", referenced from:
QMYSQLResult::fetch(int) in qsql_mysql.o
"_mysql_stmt_errno", referenced from:
qMakeStmtError(QString const&, QSqlError::ErrorType, st_mysql_stmt*) in qsql_mysql.o
"_mysql_stmt_error", referenced from:
qMakeStmtError(QString const&, QSqlError::ErrorType, st_mysql_stmt*) in qsql_mysql.o
"_mysql_stmt_execute", referenced from:
QMYSQLResult::exec() in qsql_mysql.o
"_mysql_stmt_fetch", referenced from:
QMYSQLResult::fetchNext() in qsql_mysql.o
QMYSQLResult::fetch(int) in qsql_mysql.o
"_mysql_stmt_init", referenced from:
QMYSQLResult::prepare(QString const&) in qsql_mysql.o
"_mysql_stmt_insert_id", referenced from:
QMYSQLResult::lastInsertId() const in qsql_mysql.o
"_mysql_stmt_num_rows", referenced from:
QMYSQLResult::size() in qsql_mysql.o
QMYSQLResult::fetchLast() in qsql_mysql.o
"_mysql_stmt_param_count", referenced from:
QMYSQLResult::exec() in qsql_mysql.o
QMYSQLResult::prepare(QString const&) in qsql_mysql.o
"_mysql_stmt_prepare", referenced from:
QMYSQLResult::prepare(QString const&) in qsql_mysql.o
"_mysql_stmt_reset", referenced from:
QMYSQLResult::exec() in qsql_mysql.o
"_mysql_stmt_result_metadata", referenced from:
QMYSQLResultPrivate::bindInValues() in qsql_mysql.o
"_mysql_stmt_store_result", referenced from:
QMYSQLResult::exec() in qsql_mysql.o
"_mysql_store_result", referenced from:
QMYSQLResult::nextResult() in qsql_mysql.o
QMYSQLResult::cleanup() in qsql_mysql.o
QMYSQLResult::reset(QString const&) in qsql_mysql.o
"_mysql_thread_end", referenced from:
QMYSQLDriver::close() in qsql_mysql.o
"_mysql_thread_init", referenced from:
QMYSQLDriver::open(QString const&, QString const&, QString const&, QString const&, int, QString const&)in qsql_mysql.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [libqsqlmysql_debug.dylib] Error 1
make: *** [debug-install] Error 2
@