Sunday, July 6th 2008, 10:42pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

narcis_agh

Beginner

Posts: 16

Location: Iran

1

Wednesday, April 30th 2008, 12:12pm

running Qt program in Windows Vista

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 ?
  • Go to the top of the page

stinos

Intermediate

2

Wednesday, April 30th 2008, 1:35pm

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
  • Go to the top of the page

narcis_agh

Beginner

Posts: 16

Location: Iran

3

Saturday, May 3rd 2008, 3:11pm

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 ?
  • Go to the top of the page

Messenger

Intermediate

Posts: 325

Location: Lt

4

Saturday, May 3rd 2008, 3:20pm

>>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 times, last edit by "Messenger" (May 3rd 2008, 3:22pm)

  • Go to the top of the page

narcis_agh

Beginner

Posts: 16

Location: Iran

5

Sunday, May 4th 2008, 9:07am

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
  • Go to the top of the page

Rate this thread