Mobility
20th March 2013, 07:14
Hi,
My application is somewhat ready to be tested wider so I have build it with release target, and it seem to work fine in the PC I've used for developing it. However I'm not able to get it working in another PC.
I'm getting errors that not all DLLs are found. To be specific, SQL DLLs are not found. At first it did not find any SQL drivers (even though they were located under /sqldrivers folder in the app directory). Then I found out that it was trying to search then from plugins directory, which is C:\QtSDK\Desktop\Qt\4.8.0\mingw\plugins by default, hence it created that directory and placed the sqldrivers there - just like in the development PC.
Unfortunately even this did not work. All the other drivers were found but not the PSQL driver which is needed. Currently I've got all the DLLs (yes, the same DLLs in every folder) in the mentioned plugins directory, App directory and App/sqldrivers directory. The first problem is that it does not find any of those sql drivers if not located at the plugins directory, why? The second problem is that even if the plugins directory is created, still QPSQL driver is not working - any idea why is that? I would think I have all the DLLs created because it's working on the development PC.
Cheers!
UPDATE:
I tried to run dependency walker on target PC and it gives following:
LoadLibraryW("C:\QtSDK\Desktop\Qt\4.8.0\mingw\plugins\sqldrivers \qsqlpsql.dll") returned NULL. Error: %1 is not a valid Win32 application (193).
Both PCs (one used for developing and this target PC) are running 64 bit Windows7, but during the process I have used 32bit tools. Cannot understand the error message...
My application is somewhat ready to be tested wider so I have build it with release target, and it seem to work fine in the PC I've used for developing it. However I'm not able to get it working in another PC.
I'm getting errors that not all DLLs are found. To be specific, SQL DLLs are not found. At first it did not find any SQL drivers (even though they were located under /sqldrivers folder in the app directory). Then I found out that it was trying to search then from plugins directory, which is C:\QtSDK\Desktop\Qt\4.8.0\mingw\plugins by default, hence it created that directory and placed the sqldrivers there - just like in the development PC.
Unfortunately even this did not work. All the other drivers were found but not the PSQL driver which is needed. Currently I've got all the DLLs (yes, the same DLLs in every folder) in the mentioned plugins directory, App directory and App/sqldrivers directory. The first problem is that it does not find any of those sql drivers if not located at the plugins directory, why? The second problem is that even if the plugins directory is created, still QPSQL driver is not working - any idea why is that? I would think I have all the DLLs created because it's working on the development PC.
Cheers!
UPDATE:
I tried to run dependency walker on target PC and it gives following:
LoadLibraryW("C:\QtSDK\Desktop\Qt\4.8.0\mingw\plugins\sqldrivers \qsqlpsql.dll") returned NULL. Error: %1 is not a valid Win32 application (193).
Both PCs (one used for developing and this target PC) are running 64 bit Windows7, but during the process I have used 32bit tools. Cannot understand the error message...