Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » running Qt program in Windows Vista » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page running Qt program in Windows Vista
Author
Post « Previous Thread | Next Thread »
narcis_agh narcis_agh is a male
Coder


Registration Date: 15.01.2008
Posts: 16
Location: Iran

Level: 11 [?]
Experience: 1,948
Next Level: 2,074

126 points of experience needed for next level

running Qt program in Windows Vista Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi,
I have installed QT 4.3 software on Windows Vista. Now I have two problems.
1. When I type qmake in command Promt, it says :
"qmake is not recognized as an internal or external command, operable program or batch file"
2. And in Qt 4.3.4 Command Prompt when I type qmake -project it makes hello.pro file, then I type qmake hello.pro and it makes debug and release folders and Makefile, Makefile.Debug and Makefile.Release files. Then I type make and it makes hello.exe and hello.o files in release folder. When I run hello.exe file it says:
This apllication has failed to start because mingwm10.dll was not found. Re-installing the application may fix this problem.
Can anyone help me please ?
30.04.2008 13:12 narcis_agh is offline Send an Email to narcis_agh Search for Posts by narcis_agh Add narcis_agh to your Buddy List YIM Account Name of narcis_agh: narcis_agh
stinos
CTO


Registration Date: 15.01.2006
Posts: 199

Level: 28 [?]
Experience: 169,537
Next Level: 195,661

26,124 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

both are path related:
1. define QTDIR as environment variable and append %QTDIR%\bin to PATH
2. append the directory where that dll is to your path

btw using the search function or google would have worked as well

__________________
madinsjamania
30.04.2008 14:35 stinos is offline Send an Email to stinos Search for Posts by stinos Add stinos to your Buddy List
narcis_agh narcis_agh is a male
Coder


Registration Date: 15.01.2008
Posts: 16
Location: Iran

Level: 11 [?]
Experience: 1,948
Next Level: 2,074

126 points of experience needed for next level

Thread Starter Thread Started by narcis_agh
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

In Environment Variable tab there are two parts. Users Variables and System Variables. In System variables I added a new variable with QTDIR variable and c:\Qt\4.3.4\bin value but still I have problems with compiling my Qt files. Any more help ? Can you tell me about configure command ?
configure -platform win32-msvc
What must I type instead of platform and whats win32-msvc ?
03.05.2008 16:11 narcis_agh is offline Send an Email to narcis_agh Search for Posts by narcis_agh Add narcis_agh to your Buddy List YIM Account Name of narcis_agh: narcis_agh
Messenger Messenger is a male
Expert


Registration Date: 20.04.2007
Posts: 298
Location: Lt

Level: 26 [?]
Experience: 116,864
Next Level: 125,609

8,745 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

>>This apllication has failed to start because mingwm10.dll was not found

mingwm10.dll must be in one of %PATH% environment variable directories.

Just copy mingwm10.dll beside the application (or beside qt library dlls [qt base]\bin).

Or just modify "Qt 4.3.4 Command Prompt" (qtvars.bat) to include mingw32 bin directory and rerun Command Promt. Then run application.

>>still I have problems with compiling my Qt files
What errors are exactly?

__________________
Fighting fire with fire.

This post has been edited 1 time(s), it was last edited by Messenger: 03.05.2008 16:22.

03.05.2008 16:20 Messenger is offline Search for Posts by Messenger Add Messenger to your Buddy List
narcis_agh narcis_agh is a male
Coder


Registration Date: 15.01.2008
Posts: 16
Location: Iran

Level: 11 [?]
Experience: 1,948
Next Level: 2,074

126 points of experience needed for next level

Thread Starter Thread Started by narcis_agh
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

I copied mingwm10.dll, QtCore4.dll and QtGui.dll files to the release folder in project folder. Now it works. But I want compile my project without doing these copy/paste actions. You said me to set environment variable. But I am not familiar with this expression and I dunno how to do it in Windows Vista. And I have another question. Whats this Qt 4.3.4(Build Debug Libraries) file ? And another question. When I compile my file the .exe file just appear in release folder. Doesn't the file get compiled in debug mode ?

thanks
04.05.2008 10:07 narcis_agh is offline Send an Email to narcis_agh Search for Posts by narcis_agh Add narcis_agh to your Buddy List YIM Account Name of narcis_agh: narcis_agh
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » running Qt program in Windows Vista

views today: 9.247 | views yesterday: 17.520 | total views: 10.242.616


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich