我有一个makefile.qt文件,每当我创建它时,都会生成未知文件夹。
Makefile.qt:
include buildconfig
%.mak : %.pro qtconfig
$(MAYA_LOCATION)/bin/$(QMAKE) -o - QMAKE_CC=$(CC) QMAKE_CXX=$(C++) $< | \
LC_CTYPE=C sed -e '/^TARGET.*=/s?=.*$$?= $$(QMAKE_TARGET).$(EXT)?' \
-e 's?-framework QtCore?$$(MAYA_LOCATION)/MacOS/QtCore?' \
-e 's?-framework QtGui?$$(MAYA_LOCATION)/MacOS/QtGui?' \
-e 's?-framework QtOpenGL?$$(MAYA_LOCATION)/MacOS/QtOpenGL?' \
-e 's?-framework QtTest?$$(MAYA_LOCATION)/MacOS/QtTest?' \
-e 's?-framework QtXml?$$(MAYA_LOCATION)/MacOS/QtXml?' \
-e 's?-framework Maya?$$(MAYA_LOCATION)/MacOS/Maya?' \
-e 's?-dynamiclib??' -e 's?-mtune=generic??' >$@
PLUGINS = helixQtCmd.$(EXT)
ifeq ($(QMAKE),)
all:
@echo "Qt not found. Qt-based plug-ins will not be built."
else
all: $(PLUGINS)
endif
# For each plugin, make sure that its individual Makefile is up-to-date then
# use that Makefile to build the plugin.
.PHONY: force
%.$(EXT): force
$(MAKE) -f Makefile.qt $(@:.$(EXT)=.mak)
$(MAKE) -f $(@:.$(EXT)=.mak) $@
cp $(@:.$(EXT)=.bundle) compiled_plugins/maya$(MAYA_VERSION)/plug-ins/Plurii.bundle
clean:
rm -f $(PLUGINS:.$(EXT)=.o) $(PLUGINS:.$(EXT)=.mak) \
moc_output/* ui_* qrc_* *.o
Clean: clean
rm -f $(PLUGINS)
为了构建我的插件,我使用以下命令:
make -f Makefile.qt <myplugin>.bundle
然而,这会生成一个.mak文件,其中有很多Include和Lib文件夹不正确,我找不到它们的来源:
-I/Users/caiwe/qt/qt-4.8.6/include/QtGui
-L/Users/caiwe/qt/qt-4.8.6/lib
/Users/caiwe/qt/qt-4.8.6/bin/moc
...
我不知道这些/ Users / caiwe来自哪里,因为这不是我。有什么提示我可以找到这个吗?
答案 0 :(得分:0)
问题来自我从maya2016下载的mkspecs文件夹。使用maya2015提供的mkspecs文件夹使其正常工作。