当前位置:网站首页>qmlplugindump executable not found.It is required to generate the qmltypes file for VTK Qml
qmlplugindump executable not found.It is required to generate the qmltypes file for VTK Qml
2022-06-30 09:32:00 【v俊逸】
首先查看此报错信息位置:
/.../VTKSource/GUISupport/QtQuick/qml/CMakeLists.txt
打开文件,查看关联代码段:
# First, find the qmlplugindump executable
get_target_property(qt_qmake_location "Qt${vtk_qt_major_version}::qmake" LOCATION)
get_filename_component(qt_bin_dir "${qt_qmake_location}" PATH)
if (APPLE)
get_filename_component(qt_bin_dir "${qt_bin_dir}" PATH)
endif ()
find_program(QMLPLUGINDUMP_EXECUTABLE
NAMES "qmlplugindump-qt${vtk_qt_major_version}" qmlplugindump
HINTS "${qt_bin_dir}"
DOC "QmlPlugindump executable location")
mark_as_advanced(QMLPLUGINDUMP_EXECUTABLE)
if (NOT QMLPLUGINDUMP_EXECUTABLE)
message(FATAL_ERROR
"qmlplugindump executable not found.\nIt is required to generate the "
"qmltypes file for VTK Qml plugin.")
endif ()
从这里看执行的流程,就是通过 qt_qmake_location 找到 qt_bin_dir ,再从qt_bin_dir 中找 qmlplugindump 这个可执行文件 。
打开Qt的安装目录,搜索qmlplugindump的可执行文件,找到文件在这里
/Users/.../Qt/5.15.2/clang_64/bin
直接在CMakeList.txt中添加一句,完成之后的代码段:
# First, find the qmlplugindump executable
get_target_property(qt_qmake_location "Qt${vtk_qt_major_version}::qmake" LOCATION)
get_filename_component(qt_bin_dir "${qt_qmake_location}" PATH)
if (APPLE)
get_filename_component(qt_bin_dir "${qt_bin_dir}" PATH)
endif ()
set( qt_bin_dir "/Users/allen/Soft/Qt/5.15.2/clang_64/bin/" )
find_program(QMLPLUGINDUMP_EXECUTABLE
NAMES "qmlplugindump-qt${vtk_qt_major_version}" qmlplugindump
HINTS "${qt_bin_dir}"
DOC "QmlPlugindump executable location")
mark_as_advanced(QMLPLUGINDUMP_EXECUTABLE)
if (NOT QMLPLUGINDUMP_EXECUTABLE)
message(FATAL_ERROR
"qmlplugindump executable not found.\nIt is required to generate the "
"qmltypes file for VTK Qml plugin.")
endif ()
然后继续configure -- generate -- make 即可。
遇到什么问题,直接找到问题相关的代码,然后从源头进行解决即可。
边栏推荐
- About MySQL Boolean and tinyint (1)
- [protobuf] protobuf generates cc/h file through proto file
- 9.JNI_ Necessary optimization design
- 7. know JNI and NDK
- What kind of experience is it to develop a "grandson" who will call himself "Grandpa"?
- Electron, which can wrap web page programs into desktop applications
- 12. problem set: process, thread and JNI architecture
- Metasploit practice - SSH brute force cracking process
- Solution to the sixth training competition of 2020 provincial competition
- Niuke rearrangement rule taking method
猜你喜欢

Idea shortcut key settings
![[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.](/img/77/eb66ec83b34c251e732d495fbaa951.jpg)
[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.

Esp32 (4): overview of the overall code architecture

Abstract factory pattern

Mmdet line by line deltaxywhbboxcoder

Agp7.0|kts makes a reinforced plug-in

asdsadadsad

Electron, which can wrap web page programs into desktop applications

Handwriting sorter component

Maxiouassigner of mmdet line by line interpretation
随机推荐
Rew acoustic test (VI): signal and measurement
Splice and slice functions of JS
Talk about how the kotlin collaboration process establishes structured concurrency
Enum demo
Torchvision loads the weight of RESNET except the full connection layer
Esp32 (IX): OTA function of function development
Opencv learning notes-day14 drawing of image geometry (rect class rotatedrect class, rectangle drawing rectangle circle drawing circular function line drawing line function ellipse drawing elliptic fu
Find the number that appears only once in the array
Harmonyos actual combat - ten thousand words long article understanding service card development process
Express file download
Idea setting automatic package Guide
Numpy (data type)
Deep Learning with Pytorch-Train A Classifier
Talk about writing
8.8 heap insertion and deletion
Set, map and modularity
Cronexpression expression explanation and cases
Get to know handler again
Opencv learning notes -day10 logical operation of image pixels (usage of rectangle function and rect function and bit related operation in openCV)
Guilin robust medical acquired 100% equity of Guilin Latex to fill the blank of latex product line