当前位置:网站首页>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 即可。
遇到什么问题,直接找到问题相关的代码,然后从源头进行解决即可。
边栏推荐
- Common query and aggregation of ES
- Application of hongruan face recognition
- Esp32 things (V): analysis of common API of esp32 of Swiss Army knife
- Rew acoustic test (IV): test principle of rew
- Opencv learning notes -day1 (image reading display imread, imshow, namedwindow)
- 5. Messager framework and imessager interface
- Esp32 (6): Bluetooth and WiFi functions for function development
- What are the SQL add / delete / modify queries?
- Acquisition de 100% des actions de Guilin latex par Guilin Robust Medical pour combler le vide de la gamme de produits Latex
- Cronexpression expression explanation and cases
猜你喜欢

Small program learning path 1 - getting to know small programs

Baidu map JS browsing terminal

Talk about how the kotlin collaboration process establishes structured concurrency

Express の post request

Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())

Acquisition de 100% des actions de Guilin latex par Guilin Robust Medical pour combler le vide de la gamme de produits Latex

Use Huawei performance management service to configure the sampling rate on demand

Esp32 things (3): overview of the overall system design

Using appbarlayout to realize secondary ceiling function

Deep understanding of kotlin collaboration context coroutinecontext
随机推荐
Bottomsheetbehavior principle of realizing the home page effect of Gaode map
Handwriting sorter component
Code management related issues
[JPEG] how to compile JPEG turbo library files on different platforms
ACM intensive training graph theory exercise 3 in the summer vacation of 2020 [problem solving]
Abstract factory pattern
Opencv learning notes -day1 (image reading display imread, imshow, namedwindow)
2020-11-02
Niuke walks on the tree (ingenious application of parallel search)
Sort (simple description)
Raspberry pie 4B no screen installation system and networking using VNC wireless projection function
Startup of MySQL green edition in Windows system
Express の Hello World
Niuke IOI weekly competition 20 popularization group (problem solving)
Numpy (data type)
桂林 稳健医疗收购桂林乳胶100%股权 填补乳胶产品线空白
Couldn't load this key (openssh ssh-2 private key (old PEM format))
ES6 learning path (III) deconstruction assignment
So the toolbar can still be used like this? The toolbar uses the most complete parsing. Netizen: finally, you don't have to always customize the title bar!
Esp32 (4): overview of the overall code architecture