PDA

View Full Version : deploying application with mysql



addu
1st October 2009, 14:57
Hi All

I have created mysql based application..

When i am trying to run my exe .. i am getting


The Procedure entry point? shared_null@QByteArray@@0UData@1@a could not be located in the dynamic link library QtCore.dll

But i have added following dll in my application folder..

1) myappplication.exe
2)mingw10.dll
3)Qtcore4.dll
4)QtGUi4.dll
5)QtXMl4.dll
6)QtNetwork.dll
7)libmysql.dll
8) QtSql4.dll
9)SqlDrivers folder(Qsqlmysql4.dll,qsqmysqld4.dll,qsqlite4.dll, qsqlited4.dll,qsqlodbc.dll,qsqlodbc.dll)

still i have to add any other dll to solve this issue ?


Thanks

Yuvaraj R

vcp
1st October 2009, 21:52
Hi

Perhaps this have nothing with the mysql, but yes if you compiled your
application in release or debug mode.

If you compile as debug mode you've use all qt dlls with 'd'. qtcore4d.dll

I think that this problem can be this.

I've problems similar problems when I compile application in release mode under window$

faldzip
2nd October 2009, 07:13
use Dependency Walker to check what dlls do you need

addu
2nd October 2009, 13:33
I used release mode..

I checked out with dependency walker.. I don't know what do solver the error..

I attached the screen shot image of dependency walker.


Thanks

Yuvaraj R

vcp
2nd October 2009, 16:50
Use debug mode! Do the test and see what happens.
I think that is not going to happen in this mode.

addu
3rd October 2009, 05:53
Hi All

Now it is working in release mode ..

Previously i used the dll from qt/2009.01/bin..

Now i am using dll from qt/2009.01/qt/bin..






Thanks

Yuvaraj R

addu
3rd October 2009, 10:13
I installed my application at Mysql uninstalled system

I got following error:

can't connect to mysqlserver on localhost(10060)

QMYSQL:Unable to connect..

I have libmysql.dll and qsqlmysql.dll in my application folder..

How do solve this issue?


Thanks

Yuvaraj R

faldzip
3rd October 2009, 10:42
man, where do you have that MySQL database you want to connect? If it is not on the same machine as application runs than "localhost" is not a valid host

addu
3rd October 2009, 11:05
How do i solve this issue ?
i tried with my system ip address instead of localhost ..

Please help me

Thanks

Yuvaraj R

soxs060389
3rd October 2009, 17:44
a) is your database at the same PC your application is supposed to run?
b) is your mysql daemon (or however that is called in win) up and running
c) recheck path to your database

Greets

pag
4th October 2009, 11:02
I think your database driver should be in a subdirectory:

sqldrivers/qsqlmysql4.dll

you should only require:

mingwm10.dll
QtCore4.dll
QtGui4.dll
QtSql4.dll

as well as the appropriate database driver already mentioned in the sqldrivers subdirectory for a standard sql gui program, all these should be placed in the same directory as the executable program.