PDA

View Full Version : upgrading from 4.1.4 to 4.2.0



mandal
6th November 2006, 13:55
I have created a dll that uses qt 's database libraries to access and execute queries and stored procedures on ms sql server database. Development environment is Visual Studio 2003 C++.

dll works fine with qt 4.1.4. But although project is compiled properly, i have a runtime error with 4.2.0.

" Failed to start because qtcored4.dll was not found, reinstalling may fix problem"

I have installed

qt-win-commercial-4.2.0-vs2003
qt-vsintegration-1.2.0
qt-win-commercial-4.2.0-vs2003


qtcored4.dll exists on qt installation directory. But it is not registered i think.
do i have to configure something after installation?

Dou you have any idea how to solve this?

Thanx a lot for any help..

jacek
6th November 2006, 14:17
Does it work if you copy Qt 4.2 DLLs to the same directory where the executable is?

jpn
6th November 2006, 14:23
Make sure that

you have selected correct Qt build in VS (Tools->Options->Qt)
the path to Qt is correct in environment variables QTDIR and PATH
you have restarted VS after modifying environment variables

mandal
6th November 2006, 15:56
Does it work if you copy Qt 4.2 DLLs to the same directory where the executable is?

Yes, if i copy dlls for each library i use(qtcore, qtsql,qtgui...etc.) my project works properly with qt 4.2.0.

i checked environment variables here they are:
QMAKESPEC: win32-msvc.net
QTDIR: C:\Qt\4.2.0
PATH: C:\Qt\4.2.0;

How will that problem be solved?? :confused:
Thanx again ...

jacek
6th November 2006, 16:21
Yes, if i copy dlls for each library i use(qtcore, qtsql,qtgui...etc.) my project works properly with qt 4.2.0.
Then the problem lies in paths, just as jpn suggested.


PATH: C:\Qt\4.2.0;
Shouldn't it be: C:\Qt\4.2.0\bin?