Qt Creator 마법사에서 생성 한 QML 확장 스크립트가 있습니다.Android 용 확장 플러그인 컴파일이 실패했습니다. qmldir을 찾을 수 없습니다.
mingw32-확인 [1] : 입력 디렉토리 'F :/일/응용 프로그램 - 프로젝트/빌드 앱 Android_for_armeabi_GCC_4_8_Qt_5_3_1 - 디버그/확장자를'
을 나는 안드로이드를 컴파일 할 때 컴파일 메시지와 함께 실패 mingw32-make [1] : *** 'libextention.so'에 필요한 'F : \ work \ app-project \ build-app-Android_for_armeabi_GCC_4_8_Qt_5_3_1-Debug \ extention \ qmldir'타겟을 만드는 규칙이 없습니다. 중지.
.pro
확장 파일의 문제점은 무엇입니까? 윈도우 7, Qt는 - - 호스트 OS 5.3.1
TEMPLATE = lib
TARGET = extention
QT += qml quick declarative
CONFIG += qt plugin
TARGET = $$qtLibraryTarget($$TARGET)
uri = com.example.extention
# Input
SOURCES += \
Plugin.cpp \
extention.cpp
HEADERS += \
Plugin.h \
extention.h
OTHER_FILES = qmldir
!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
copy_qmldir.target = $$OUT_PWD/qmldir
copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir
copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\"
QMAKE_EXTRA_TARGETS += copy_qmldir
PRE_TARGETDEPS += $$copy_qmldir.target
}
qmldir.files = qmldir
unix {
installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
}
안녕하세요. 나는 똑같은 문제를 가지고 있지만 아무도이 질문에 대답하지 않는 것 같다. 당신이 해결책을 가지고 있다면 대답을 게시 할 수 있습니까? –
다른 dir이 아닌 소스 디렉토리에 바이너리를 빌드하는 솔루션이 있습니다. 죄송합니다, 정확한 용어를 잊어 버렸습니다. –