In what directory did you place libmysql.a?
In what directory did you place libmysql.a?
I placed libmysql.a in C:\mysql\lib\opt
Searching this forum, I tried following direction on a thread that were slightly different that what I originaly posted and this is the output when it errored during make.
QtSql" -I"C:/Qt/4.1.1/include" -I"C:/Mysql/include" -I"C:/mysql/include" -I"C:/Q
t/4.1.1/include/ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"C:/Qt/4.1.1/mkspecs/
win32-g++" -o tmp\obj\debug_shared\qsql_mysql.o ..\..\..\sql\drivers\mysql\qsql_
mysql.cpp
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
ime-pseudo-reloc -shared -Wl,--out-implib,C:\Qt\4.1.1\plugins\sqldrivers\libqsql
mysqld.a -o "..\..\..\..\plugins\sqldrivers\qsqlmysqld.dll " tmp\obj\debug_shared
\main.o tmp\obj\debug_shared\qsql_mysql.o -L"C:\Qt\4.1.1\lib" -L"C:\Qt\4.1.1\li
b" C:\mysql\lib\opt -lmysql -lQtSqld4 -lQtCored4
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: C:\mysql\l
ib\opt: No such file: Permission denied
collect2: ld returned 1 exit status
mingw32-make[5]: *** [..\..\..\..\plugins\sqldrivers\qsqlmysqld.dll] Error 1
mingw32-make[5]: Leaving directory `C:/Qt/4.1.1/src/plugins/sqldrivers/mysql'
mingw32-make[4]: *** [debug-all] Error 2
mingw32-make[4]: Leaving directory `C:/Qt/4.1.1/src/plugins/sqldrivers/mysql'
mingw32-make[3]: *** [sub-mysql-make_default] Error 2
mingw32-make[3]: Leaving directory `C:/Qt/4.1.1/src/plugins/sqldrivers'
mingw32-make[2]: *** [sub-sqldrivers-make_default] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/4.1.1/src/plugins'
mingw32-make[1]: *** [sub-plugins-make_default-ordered] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.1.1/src'
mingw32-make: *** [sub-src-make_default-ordered] Error 2
I just needed the QMYSQL module built for Open Source Qt + mingw. This wiki post summarizes my experiences: http://wiki.qtcentre.org/index.php?t...ws_using_mingw .
Thank you, That seemed to have worked.
I have not created a program to access mysql but using the Qt SQL Browser that came in the demos directory, it does query the mysql database and shows the table contents.
Now I can get started learning.
Being new, I still am not sure what all of the directions did but I guess this will come in time.
Bookmarks