Win 10 - VS 2019 - QT 5.15 -

• Jul 1, 2020 - 16:43

First time compilation using VS2019 x 64 and QT 5.15 on W10 PC and get a Qt5QmlModels.dll not found error. Can anybody point me in the right direction on how to resolve this please
Many thanks
Dave

Attachment Size
QT5qmlmodels.PNG 6.11 KB
debug.txt 8.13 KB

Comments

Did you run the Install step?

Hmm, I don't think this dll is needed. Or is found in %Path%, in C:\Qt\5.15.0\msvc2019_64\bin\
If so we may need to add it to the install step, for Qt 5.15 (it doesn't seem to exist in earlier versions, not in 5.12.9 at least)

Seems it is part of Qt since 5.14.
Try this:

diff --git a/build/FindQt5.cmake b/build/FindQt5.cmake
index b6ac36501..817cdcdcd 100644
--- a/build/FindQt5.cmake
+++ b/build/FindQt5.cmake
@@ -28,6 +28,12 @@ if (USE_WEBENGINE)
     WebEngineWidgets
        )
 endif(USE_WEBENGINE)
+if (Qt5Widgets_VERSION VERSION_GREATER_EQUAL "5.14.0")
+  set(_components
+    ${_components}
+    QmlModels
+  )
+endif(Qt5Widgets_VERSION VERSION_GREATER_EQUAL "5.14.0")
 
 if (WIN32)
     set(_components

In reply to by Jojo-Schmitz

Hi Jojo,
No luck I'm afraid.
if (USE_WEBENGINE)
set(_components
${_components}
WebEngine ---- initially commented these out as well but needed in build
WebEngineCore --- ---- initially commented these out as well but needed in build
WebEngineWidgets
)
endif(USE_WEBENGINE)

QmlModels - DEHW

if (Qt5Widgets_VERSION VERSION_GREATER_EQUAL "5.14.0")
set(_components
${_components}
QmlModels
)
endif(Qt5Widgets_VERSION VERSION_GREATER_EQUAL "5.14.0")

End QmlModels - DEHW

  1. Removed both msvc.build_x64 and msvc.install_x64 folders
  2. Regenerated Cmake Cache
  3. mscore build
  4. install build
  5. Debug run within VS2019 16.6.3

Same error
Regards
Dave

Attachment Size
debug.txt 7.27 KB
install build.txt 187.44 KB
mscore build.txt 72.26 KB

In reply to by dehwall

Try this:

diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index 08d4ca13a..e784d2d3c 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -190,6 +190,11 @@ if (MINGW)
       ${QtInstallLibraries}
       ${PROJECT_SOURCE_DIR}/build/qt.conf
       DESTINATION bin)
+   if (Qt5Widgets_VERSION VERSION_GREATER_EQUAL "5.14.0")
+      install( FILES
+         ${QT_INSTALL_BINS}/Qt5QmlModels.dll
+         DESTINATION bin)
+   endif (Qt5Widgets_VERSION VERSION_GREATER_EQUAL "5.14.0")
    if (Qt5Widgets_VERSION VERSION_LESS "5.12.4")
       install( FILES
          ${MINGW_ROOT}/opt/bin/libeay32.dll
@@ -363,6 +368,9 @@ else (MINGW)
       if (USE_WEBENGINE)
          list(APPEND dlls_to_copy "${QT_INSTALL_BINS}/Qt5WebEngineWidgets.dll" "${QT_INSTALL_BINS}/Qt5WebEngineCore.dll")
       endif(USE_WEBENGINE)
+      if (Qt5Widgets_VERSION VERSION_GREATER_EQUAL "5.14.0")
+         list(APPEND dlls_to_copy "${QT_INSTALL_BINS}/Qt5QmlModels.dll")
+      endif (Qt5Widgets_VERSION VERSION_GREATER_EQUAL "5.14.0")
 
       set(CMAKE_FIND_LIBRARY_PREFIX "")
       set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll")

It does the copy for me (on the build already, no install step needed for this).

See also https://github.com/musescore/MuseScore/pull/6279

Do you still have an unanswered question? Please log in first to post your question.