upgrading from 4.1.4 to 4.2.0
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..
Re: upgrading from 4.1.4 to 4.2.0
Does it work if you copy Qt 4.2 DLLs to the same directory where the executable is?
Re: upgrading from 4.1.4 to 4.2.0
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
Re: upgrading from 4.1.4 to 4.2.0
Quote:
Originally Posted by
jacek
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 ...
Re: upgrading from 4.1.4 to 4.2.0
Quote:
Originally Posted by
mandal
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.
Quote:
Originally Posted by
mandal
PATH: C:\Qt\4.2.0;
Shouldn't it be: C:\Qt\4.2.0\bin?