QMYSQL и ошибки nmake а |
Здравствуйте, гость ( Вход | Регистрация )
QMYSQL и ошибки nmake а |
Ghost |
8.1.2008, 15:28
Сообщение
#1
|
Новичок Группа: Новичок Сообщений: 7 Регистрация: 8.1.2008 Пользователь №: 62 Спасибо сказали: 0 раз(а) Репутация: 0 |
Добрый день.
Проблема след. Есть VS2005,qt-win-opensource-src-4.3.0.zip.оs winxp qt установленно но но без плагина mysql.до сих пор было все нормально CODE INCLUDE C:\MySQL\include LIB C:\Qt\4.3.0-msvc2005\lib;C:\Program Files\Microsoft Visual Studio 8\VC\lib;C:\MySQL\lib; PATH C:\Program Files\Microsoft Visual Studio 8\VC\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32;C:\Qt\4.3.0-msvc2005\bin;C:\MinGW\bin;C:\MySQL\bin;%SystemRoot%;%SystemRoot%\System32;%SystemRoot%\System32\wbem; QMAKESPEC win32-msvc2005 QTDIR C:\Qt\4.3.0-msvc2005 надо сбрарть драйвер QMYSQL для qt переменные окружения след. Делаю сляд. CODE cd %QTDIR%\src\plugins\sqldrivers\mysql qmake -o Makefile "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MySQL\lib\opt\libmysql.lib" mysql.pro nmake но после nmakе а получаю след.ошибки Цитата link /LIBPATH:"c:\Qt\4.3.0-msvc2005\lib" /LIBPATH:"c:\Qt\4.3.0-msvc2005\lib" /NOLOGO /DEBUG /DLL /MANIFESTFILE:"tmp\obj\debug_shared\qsqlmysqld.intermediate.manifest" /incremental:no /OUT:"..\..\..\..\plugins\sqldrivers\qsqlmysqld4.dll" @C:\DOCUME~1\COMP\LOCALS~1\Temp\nm8B.tmp Creating library ..\..\..\..\plugins\sqldrivers\qsqlmysqld4.lib and object ..\..\..\..\plugins\sqldrivers\qsqlmysqld4.expqsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_field referenced in function "public: bool __thiscall QMYSQLResultPrivate::bindInValues(void)" (?bindInValues@QMYSQLResultPrivate@@QAE_NXZ)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_num_fields referenced in function "public: bool __thiscall QMYSQLResultPrivate::bindInValues(void)" (?bindInValues@QMYSQLResultPrivate@@QAE_NXZ)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_result_metadata referenced in function "public: bool __thiscall QMYSQLResultPrivate::bindInValues(void)" (?bindInValues@QMYSQLResultPrivate@@QAE_NXZ)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_close referenced in function "protected: void __thiscall QMYSQLResult::cleanup(void)" (?cleanup@QMYSQLResult@@IAEXXZ)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_store_result referenced in function "protected: void __thiscall QMYSQLResult::cleanup(void)" (?cleanup@QMYSQLResult@@IAEXXZ)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_next_result referenced in function "protected: void __thiscall QMYSQLResult::cleanup(void)" (?cleanup@QMYSQLResult@@IAEXXZ)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_free_result referenced in function "protected: void __thiscall QMYSQLResult::cleanup(void)" (?cleanup@QMYSQLResult@@IAEXXZ)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_fetch_row referenced in function "protected: virtual bool __thiscall QMYSQLResult::fetch(int)" (?fetch@QMYSQLResult@@MAE_NH@Z)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_data_seek referenced in function "protected: virtual bool __thiscall QMYSQLResult::fetch(int)" (?fetch@QMYSQLResult@@MAE_NH@Z)qsql_mysql.obj : error LNK2019: unresolved external symbol _mysql_stmt_fetch referenced in function "protected: virtual bool __thiscall QMYSQLResult::fetch p.s руководствовался Драйвера баз данных SQL Сообщение отредактировал Litkevich Yuriy - 9.3.2009, 0:16
Причина редактирования: актуализировал ссылку
|
|
|
kir |
9.3.2009, 17:38
Сообщение
#2
|
Студент Группа: Новичок Сообщений: 11 Регистрация: 21.2.2009 Пользователь №: 569 Спасибо сказали: 0 раз(а) Репутация: 0 |
собрал qt вручную с помощью mingw, конфигур c опциями -static -fast -qt-sql-mysql -I tomysql -L tomysql libmysql
драйвер Mysql Не появился, собрал его вручную, находит ,надо рядом с exe ложить libmysql. не смотря на -fast посабирались все exemples...какой опцией просить собирать без них, уж очень долго... поменял пути под mingw, компилятор поставил, теперь не компилит даже пустой проект... CODE Starting: G:/Qt/qt-win-commercial-src-4.5.0/bin/qmake.exe G:/Qt/project/ttt/ttt.pro -spec win32-g++ -r CONFIG+=debug_and_release Exited with code 0. Starting: G:/Qt/2009.01/mingw/bin/mingw32-make.exe debug -w mingw32-make: Entering directory `G:/Qt/project/ttt' G:/Qt/2009.01/mingw/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory `G:/Qt/project/ttt' g:\Qt\qt-win-commercial-src-4.5.0\bin\uic.exe mainwindow.ui -o ui_mainwindow.h g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\qt-win-commercial-src-4.5.0\include\QtCore" -I"..\..\qt-win-commercial-src-4.5.0\include\QtGui" -I"..\..\qt-win-commercial-src-4.5.0\include" -I"..\..\qt-win-commercial-src-4.5.0\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-win-commercial-src-4.5.0\mkspecs\win32-g++" -o debug\main.o main.cpp g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\qt-win-commercial-src-4.5.0\include\QtCore" -I"..\..\qt-win-commercial-src-4.5.0\include\QtGui" -I"..\..\qt-win-commercial-src-4.5.0\include" -I"..\..\qt-win-commercial-src-4.5.0\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-win-commercial-src-4.5.0\mkspecs\win32-g++" -o debug\mainwindow.o mainwindow.cpp G:/Qt/qt-win-commercial-src-4.5.0/bin\moc.exe -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\qt-win-commercial-src-4.5.0\include\QtCore" -I"..\..\qt-win-commercial-src-4.5.0\include\QtGui" -I"..\..\qt-win-commercial-src-4.5.0\include" -I"..\..\qt-win-commercial-src-4.5.0\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-win-commercial-src-4.5.0\mkspecs\win32-g++" -D__GNUC__ -DWIN32 mainwindow.h -o debug\moc_mainwindow.cpp g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\qt-win-commercial-src-4.5.0\include\QtCore" -I"..\..\qt-win-commercial-src-4.5.0\include\QtGui" -I"..\..\qt-win-commercial-src-4.5.0\include" -I"..\..\qt-win-commercial-src-4.5.0\include\ActiveQt" -I"debug" -I"." -I"..\..\qt-win-commercial-src-4.5.0\mkspecs\win32-g++" -o debug\moc_mainwindow.o debug\moc_mainwindow.cpp g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o debug\ttt.exe debug/main.o debug/mainwindow.o debug/moc_mainwindow.o -L"g:\Qt\qt-win-commercial-src-4.5.0\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4 debug/main.o: In function `Z5qMainiPPc': G:/Qt/project/ttt/main.cpp:6: undefined reference to `QApplication::QApplication(int&, char**, int)' G:/Qt/project/ttt/main.cpp:9: undefined reference to `QApplication::exec()' G:/Qt/project/ttt/main.cpp:9: undefined reference to `QApplication::~QApplication()' G:/Qt/project/ttt/main.cpp:9: undefined reference to `QApplication::~QApplication()' debug/mainwindow.o: In function `ZN10MainWindowC2EP7QWidget': G:/Qt/project/ttt/mainwindow.cpp:6: undefined reference to `QMainWindow::QMainWindow(QWidget*, QFlags<Qt::WindowType>)' G:/Qt/project/ttt/mainwindow.cpp:7: undefined reference to `QMainWindow::~QMainWindow()' debug/mainwindow.o: In function `ZN10MainWindowC1EP7QWidget': G:/Qt/project/ttt/mainwindow.cpp:6: undefined reference to `QMainWindow::QMainWindow(QWidget*, QFlags<Qt::WindowType>)' G:/Qt/project/ttt/mainwindow.cpp:7: undefined reference to `QMainWindow::~QMainWindow()' debug/mainwindow.o: In function `ZN10MainWindowD2Ev': G:/Qt/project/ttt/mainwindow.cpp:12: undefined reference to `QMainWindow::~QMainWindow()' debug/mainwindow.o: In function `ZN10MainWindowD1Ev': G:/Qt/project/ttt/mainwindow.cpp:12: undefined reference to `QMainWindow::~QMainWindow()' debug/mainwindow.o: In function `ZN10MainWindowD0Ev': G:/Qt/project/ttt/mainwindow.cpp:12: undefined reference to `QMainWindow::~QMainWindow()' debug/mainwindow.o: In function `ZThn8_N10MainWindowD1Ev': G:/Qt/project/ttt/mainwindow.cpp:(.text$_ZN18Ui_MainWindowClass7setupUiEP11QMainWindow[Ui_MainWindowClass::setupUi( QMainWindow*)]+0x4d): undefined reference to `QObject::objectName() const' G:/Qt/project/ttt/mainwindow.cpp:(.text$_ZN18Ui_MainWindowClass7setupUiEP11QMainWindow[Ui_MainWindowClass::setupUi( QMainWindow*)]+0x8a): undefined reference to `QString::fromUtf8(char const*, int)' G:/Qt/project/ttt/mainwindow.cpp:(.text$_ZN18Ui_MainWindowClass7setupUiEP11QMainWindow[Ui_MainWindowClass::setupUi( QMainWindow*)]+0xa6): undefined reference to `QObject::setObjectName(QString const&)' debug/mainwindow.o: In function `ZN10MainWindowC2EP7QWidget': G:/Qt/project/ttt/mainwindow.cpp:5: undefined reference to `QObject::setObjectName(QString const&)' G:/Qt/project/ttt/mainwindow.cpp:7: undefined reference to `QMenuBar::QMenuBar(QWidget*)' debug/mainwindow.o: In function `ZN10MainWindowC1EP7QWidget': G:/Qt/project/ttt/mainwindow.cpp:5: undefined reference to `QString::fromUtf8(char const*, int)' G:/Qt/project/ttt/mainwindow.cpp:5: undefined reference to `QObject::setObjectName(QString const&)' G:/Qt/project/ttt/mainwindow.cpp:6: undefined reference to `QMainWindow::setMenuBar(QMenuBar*)' G:/Qt/project/ttt/mainwindow.cpp:7: undefined reference to `QToolBar::QToolBar(QWidget*)' debug/mainwindow.o: In function `ZN10MainWindowD2Ev': и так далее...всего 96 undefined reference что не так сделал? |
|
|
Текстовая версия | Сейчас: 26.11.2024, 16:25 |