# Build with qt6 qmlplugindump executable not found.

**URL:** https://discourse.vtk.org/t/build-with-qt6-qmlplugindump-executable-not-found/8971
**Category:** Development
**Created:** [July 18, 2022, 11:07am UTC](https://discourse.vtk.org/t/build-with-qt6-qmlplugindump-executable-not-found/8971 "2022-07-18T11:07:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![edwardAllen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/edwardallen/32/4576_2.png) [@edwardAllen](https://discourse.vtk.org/u/edwardAllen)
#### Post date: [July 18, 2022, 11:07am UTC](https://discourse.vtk.org/t/build-with-qt6-qmlplugindump-executable-not-found/8971/1 "2022-07-18T11:07:24Z")

</div>

Bug report :

```auto
qmlplugindump executable not found.

```

Goto cmake file :  
VTK/GUISupport/QtQuick/qml/CMakeLists.txt  
Line : 68

```auto
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 ()
message(FATAL_ERROR "Qt_BIN_DIR " ${qt_bin_dir})
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)

```

output :

> CMake Error at GUISupport/QtQuick/qml/CMakeLists.txt:68 (message):  
> Qt\_BIN\_DIR Qt/6.3.1/macos  
> In fact ,qmlplugindump in under Qt/6.3.1/macos/bin  
> So this maybe is a bug on Qt or On Vtk part .

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [August 24, 2022, 12:21pm UTC](https://discourse.vtk.org/t/build-with-qt6-qmlplugindump-executable-not-found/8971/2 "2022-08-24T12:21:09Z")

</div>

Is that extra Apple-specific `get_filename_component` getting in the way?

---

<div class="post-metadata">

### Author: ![edwardAllen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/edwardallen/32/4576_2.png) [@edwardAllen](https://discourse.vtk.org/u/edwardAllen)
#### Post date: [August 25, 2022, 3:06am UTC](https://discourse.vtk.org/t/build-with-qt6-qmlplugindump-executable-not-found/8971/3 "2022-08-25T03:06:01Z")

</div>

As the result ,

> message(FATAL\_ERROR "Qt\_BIN\_DIR " ${qt\_bin\_dir})

output nothing .

---

<div class="post-metadata">

### Author: ![sankhesh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sankhesh/32/73_2.png) [@sankhesh](https://discourse.vtk.org/u/sankhesh)
#### Post date: [August 26, 2022, 2:43pm UTC](https://discourse.vtk.org/t/build-with-qt6-qmlplugindump-executable-not-found/8971/4 "2022-08-26T14:43:23Z")

</div>

Can you shift your `message` line over the `if(APPLE)` line and see what does it output?
