2

簡単な Qt プログラムを作成しています。実行するとmake、次のようになります。

make -f Makefile.Debug
make[1]: Entering directory `/c/Users/Ola/Desktop/gotocell'
Makefile.Debug:59: *** missing separator.  Stop.
make[1]: Leaving directory `/c/Users/Ola/Desktop/gotocell'
make: *** [debug] Error 2

これらのエラーはどういう意味ですか? そして、make正しく進行した場合、どのような出力が期待できますか (つまり.exe)?

ファイルの内容は次の.proとおりです。

編集が追加されましたtarget

######################################################################
# Automatically generated by qmake (2.01a) Sun Sep 9 08:26:50 2012
######################################################################

TEMPLATE = app
TARGET = gotocell.exe
DEPENDPATH += .
INCLUDEPATH += .

# Input
FORMS += gotocelldialog.ui

編集

でターゲットを変更すると.pro、次のようになります。

c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\bin\qmake.exe -o Makefile gotocell.pro
make -f Makefile.Debug
make[1]: Entering directory `/c/Users/Ola/Desktop/gotocell'
Makefile.Debug:59: *** missing separator.  Stop.
make[1]: Leaving directory `/c/Users/Ola/Desktop/gotocell'
make: *** [debug] Error 2
4

2 に答える 2

1

プロジェクトが適切に構成されていない場合、セパレーターが見つからないというエラーが発生します。

.pro ファイルを確認して、qmake の出力を確認してください。

適切な Makefile を生成する必要がある .pro ファイルの例を次に示します。

######################################################################
# Automatically generated by qmake (2.01a) Sun Sep 9 08:26:50 2012
######################################################################

TEMPLATE = app
TARGET = myapp # I think that .exe is not neccessary
DEPENDPATH += .
INCLUDEPATH += .

SOURCES = main.cpp mainWindow.cpp
HEADERS = mainWindow.hpp

# Input
FORMS += gotocelldialog.ui
于 2012-09-09T12:41:25.497 に答える