qt-mvvm icon indicating copy to clipboard operation
qt-mvvm copied to clipboard

Dear Author, How could I install you library?

Open williamXDB opened this issue 4 years ago • 3 comments

Dear Author, My QtCreator version is V4.3.1

williamXDB avatar Jan 27 '21 11:01 williamXDB

Hi,

it's a CMake C++ project, it is distributed as a source code. It can be compiled in Qt-creator as any other CMake-based project. Details vary slightly depending on the compiler used, and the operation system. There are quite a number of tutorials about CMake and Qt. See some discussion here.

gpospelov avatar Jan 27 '21 14:01 gpospelov

Thank you ,I have tried ,the error below: Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19041. CMake version 3.19.3 CMake Error at cmake/modules/configuration.cmake:46 (find_package): Could not find a configuration file for package "Qt5" that is compatible with requested version "5.12".

The following configuration files were considered but not accepted:

E:/Qt/Qt5.9.0/5.9/mingw53_32/lib/cmake/Qt5/Qt5Config.cmake, version: 5.9.0
E:/Qt/Qt5.9.0/5.9/winrt_x86_msvc2017/lib/cmake/Qt5/Qt5Config.cmake, version: 5.9.0

Call Stack (most recent call first): CMakeLists.txt:12 (include)

williamXDB avatar Jan 28 '21 01:01 williamXDB

So, from the log, it is clear that you are on Windows. The log says that Qt 5.12 is required, but you have Qt 5.9.0 installed. Your local Qt installation is too old. Also, the log mentions mingw 32bit compiler and I do not have experience with mingw. My recommendation would be to go to the latest long-term-support Qt 5.15.2 + msvc2019 compiler (which you get for free when you install the latest Microsoft Visual Studio Community Edition). And then compile the whole thing from Qt-creator. At some point, I will provide a step-by-step tutorial. But this will take time.

gpospelov avatar Jan 28 '21 09:01 gpospelov