无法在Mac上构建Qt

时间:2014-10-17 20:22:09

标签: macos qt qt-creator

我刚刚在Qt Creator 3.2.2上安装了OSX 10.9.5,将行QMAKE_MAC_SDK = macosx10.9放入.pro文件中,并将行QMAKE_MAC_SDK = macosx10.8更改为QMAKE_MAC_SDK = macosx10.9 device.pri23:11:21: Starting: "/usr/bin/make" clean rm -f main.o rm -f *~ core *.core 23:11:21: The process "/usr/bin/make" exited normally. 23:11:21: Configuration unchanged, skipping qmake step. 23:11:21: Starting: "/usr/bin/make" /Applications/Xcode 6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -g -isysroot /Applications/Xcode 6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mFile Doesn't Exist, Will Create: /Applications/Xcode Invalid Arguments -version-min=10.6 -Wall -W -fPIE -DQT_CORE_LIB -I/Applications/QT/5.3/clang_64/mkspecs/macx-clang -I../Test -I/Applications/QT/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I. -F/Applications/QT/5.3/clang_64/lib -o main.o ../Test/main.cpp /bin/sh: -c: line 0: unexpected EOF while looking for matching `'' /bin/sh: -c: line 1: syntax error: unexpected end of file make: *** [main.o] Error 2 23:11:22: The process "/usr/bin/make" exited with code 2. Error while building/deploying project Test (kit: Desktop Qt 5.3 clang 64bit) When executing step "Make" 23:11:22: Elapsed time: 00:00. 文件。现在我正在尝试编译一个非常简单的项目。它没有编译。它给了我以下输出:

####### Compiler, tools and options

CC            = /Applications/Xcode 6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CXX           = /Applications/Xcode 6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
DEFINES       = -DQT_CORE_LIB
CFLAGS        = -pipe -g -isysroot /Applications/Xcode 6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mFile Doesn't Exist, Will Create: /Applications/Xcode Invalid Arguments  -version-min=10.6 -Wall -W -fPIE $(DEFINES)
CXXFLAGS      = -pipe -g -isysroot /Applications/Xcode 6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mFile Doesn't Exist, Will Create: /Applications/Xcode Invalid Arguments  -version-min=10.6 -Wall -W -fPIE $(DEFINES)
INCPATH       = -I/Applications/QT/5.3/clang_64/mkspecs/macx-clang -I../Test -I/Applications/QT/5.3/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I. -F/Applications/QT/5.3/clang_64/lib
LINK          = /Applications/Xcode 6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
LFLAGS        = -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode 6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mFile Doesn't Exist, Will Create: /Applications/Xcode Invalid Arguments  -version-min=10.6
LIBS          = $(SUBLIBS) -F/Applications/QT/5.3/clang_64/lib -framework QtCore 
AR            = /Applications/Xcode 6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar cq
RANLIB        = /Applications/Xcode 6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib -s
QMAKE         = /Applications/QT/5.3/clang_64/bin/qmake
TAR           = tar -cf
COMPRESS      = gzip -9f
COPY          = cp -f
SED           = sed
COPY_FILE     = cp -f
COPY_DIR      = cp -f -R
STRIP         = 
INSTALL_FILE  = $(COPY_FILE)
INSTALL_DIR   = $(COPY_DIR)
INSTALL_PROGRAM = $(COPY_FILE)
DEL_FILE      = rm -f
SYMLINK       = ln -f -s
DEL_DIR       = rmdir
MOVE          = mv -f
CHK_DIR_EXISTS= test -d
MKDIR         = mkdir -p

这里有什么问题?我该如何解决?

EDIT。 Makefile的一部分:

  

MAKEFILE = Makefile

{{1}}

0 个答案:

没有答案