当前位置:网站首页>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 即可。
遇到什么问题,直接找到问题相关的代码,然后从源头进行解决即可。
边栏推荐
- List set export excel table
- Rew acoustic test (V): equipment required for test
- Reading notes of "Introduction to deep learning: pytoch"
- Deep Learning with Pytorch- A 60 Minute Blitz
- Summary of Android knowledge points and common interview questions
- Rew acoustic test (IV): test principle of rew
- Use V-IF with V-for
- I once met a girl whom I most wanted to take care of all my life. Later... No later
- 4. use ibinder interface flexibly for short-range communication
- Design specification for smart speakers v1.0
猜你喜欢

Sort (simple description)

Talking about kotlin process exception handling mechanism

Opencv learning notes-day5 (arithmetic operation of image pixels, add() addition function, subtract() subtraction function, divide() division function, multiply() multiplication function

Maxiouassigner of mmdet line by line interpretation

Metasploit practice - SSH brute force cracking process

Opencv learning notes -day 11 (split() channel separation function and merge() channel merge function)

Baidu map JS browsing terminal

7. know JNI and NDK

Express file download

Set, map and modularity
随机推荐
Express file download
Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())
Numpy (constant)
Numpy (data type)
100 lines of code and a voice conversation assistant
Talk about how the kotlin process started?
Niuke IOI weekly competition 20 popularization group (problem solving)
Tclistener server and tcpclient client
Flutter theme (skin) changes
Idea setting automatic package Guide
Solution to the sixth training competition of 2020 provincial competition
Numpy (time date and time increment)
Opencv learning notes -day1 (image reading display imread, imshow, namedwindow)
Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)
Wechat development tool (applet)
AutoUpdater. Net client custom update file
Installation, use and explanation of vulnerability scanning tool OpenVAS
Rew acoustic test (V): equipment required for test
Deep Learning with Pytorch- A 60 Minute Blitz
Duplicate entry '2' for key 'primary appears in JPA‘