1

I need help about Qt files compiling with cmd. I chose the directory but I still have error about "qmake" and "make" commands.

I cant qmake or make . I am showing the cmd directories. but I cant compile it. which directory I need to use???


C:\Users\foo>dir
 Volume in drive C has no label.
 Volume Serial Number is F224-008C

 Directory of C:\Users\foo

18.07.2013  09:42    <DIR>          .
18.07.2013  09:42    <DIR>          ..
17.07.2013  12:27    <DIR>          ipch
17.07.2013  16:41    <DIR>          QtTab
18.07.2013  09:42        21.450.752 QtTab.sdf
11.07.2013  11:17               882 QtTab.sln
11.07.2013  11:22    <DIR>          Win32
               2 File(s)     21.451.634 bytes
               5 Dir(s)  103.678.271.488 bytes free

C:\Users\foo>qmake
'qmake' is not recognized as an internal or external command,
operable program or batch file.


C:\Users\foo>make
'make' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\foo>cd qttab

C:\Users\foo>dir
 Volume in drive C has no label.
 Volume Serial Number is F224-008C

 Directory of C:\Users\foo

17.07.2013  16:41    <DIR>          .
17.07.2013  16:41    <DIR>          ..
17.07.2013  16:42    <DIR>          Debug
17.07.2013  16:41    <DIR>          GeneratedFiles
17.07.2013  16:41               308 main.cpp
11.07.2013  11:17               130 qttab.cpp
11.07.2013  11:17               254 qttab.h
11.07.2013  11:17                65 qttab.qrc
17.07.2013  16:41             1.353 qttab.ui
11.07.2013  11:17            10.830 QtTab.vcxproj
11.07.2013  11:17             2.659 QtTab.vcxproj.filters
11.07.2013  11:22               609 QtTab.vcxproj.user
11.07.2013  11:17    <DIR>          Resources
17.07.2013  12:28             1.994 foo.ui
               9 File(s)         18.202 bytes
               5 Dir(s)  103.678.271.488 bytes free

C:\Users\foo>qmake
'qmake' is not recognized as an internal or external command,
operable program or batch file.
4

2 に答える 2

1

Windowsを使用しているため、makeではなくnmakeを使用する必要があるようです-参照

Windows でのコンパイルに関する qt ドキュメント

于 2013-07-18T07:42:53.557 に答える
0

System 変数を展開PATHして QT-InstallationDir/bin (ここに qmake がある場所) をvcvars.bat含め、コンパイルを開始する前に、コマンドで MSVC2010 インストール ディレクトリからファイルを実行します (代わりに、MSVC のフォルダーのスタート メニューにあるコマンド ショートカットを使用します)。 )

于 2013-07-18T10:27:16.513 に答える