PDA

View Full Version : Qt 4.5 Installation problems



FatTail
3rd March 2009, 23:12
Hi

previously i had Qt 4.4.3 installed (eclipse integration environment.) on my laptop which is running Vista on a dell.
i followed these instructions
http://labs.trolltech.com/blogs/2007/07/11/develop-qt-applications-in-eclipse/
nice set of instructions.

Today after hearing about Qt 4.5 i decided to install that.
i first uninstalled Qt 4.4.3, along with MingW.
i then downloaded the 4.5 from
http://www.qtsoftware.com/downloads

i chose the SDK for windows 194Mb. after downloading i then double click and it begins to install. after it installed i was able to load the Qt Creator.
i then tried to open some of the examples / demos. each time is would say could not locate a specific dll. i then modified my path to where that dll was located.
for example qt\demos\affine\release , double click the .exe file in here and i get weird errors such as :

_Z20qt_qFindChild_helperPK7QObjectRK7QStringRK11QM etaObject could not be located in the dynamic link library QtCore4.dll

i was assuming with this new 4.5 is would be simpler to install.:confused:

DragonLance156156
3rd March 2009, 23:34
I probably have no clue what I'm talking about... but if you didn't uninstall 4.4.3 then you should try doing that and then try to reinstall the sdk.

FatTail
4th March 2009, 08:04
Hi
yes that's what i did, i first uninstalled 4.4.3 which was working perfectly.

now i have only a non working 4.5.

AlphaWolf
4th March 2009, 18:33
would say could not locate a specific dll. i then modified my path to where that dll was located.
for example qt\demos\affine\release

All the dlls you need are located at: qt\bin

FatTail
4th March 2009, 20:14
yep i know where the dll's are but this does not help me.

i have just tried (in Qt Creator) to open a .pro file.

when i tried to build it i got the error message


No valid Qt version set. Set one in Tools/Options
Error while building project findfiles
When executing build step 'QMake'
Canceled build.

so nothing much at all works.

might just try deleting eveything and re-installing. failing that i might go back to to 4.4.3

FatTail
4th March 2009, 21:28
some success at last.
im now able to build projects from inside Creator.
i also installed to c:\Qt45 rather than the c:\Qt\2009.01

Still some strange things. when i open Creator i click on "Getting Started", all i get is a blank window pane (i wondering if this is a bug of Vista since i get this blank window pane sometimes from the download window).
Also the installed qtdemo which has an icon in my windows start menu, this always crashes when i try it.

other than that it seems quite nice

ComaWhite
5th March 2009, 06:40
did you add the bin directory to the environment variables and restarted the cmd prompt. Changes require a command prompt restart >.>

FatTail
6th March 2009, 11:18
i now have
c:\Qt45\qt\bin;
c:\Qt45\bin;
c:\Qt45\mingw\bin;

in my path.

clicking on the \demo\.exe's and \examples\.exe's from windows seems to work now.

so only probs i have now is the qt.demo app from windows start menu still does not work, and there is no help available in qt creator (just blank screens). these things are very minor.

Hiker Hauk
12th March 2009, 02:33
The dll in

$(INSTALL_DIR)\qt\bin;
$(INSTALL_DIR)\bin;

are different.

The ones in qt\bin are for general use.
The ones in the second dir are for QtCreator.
Make sure the first dir comes before the second dir in your PATH settings.
You might not need the second dir in your path at all.