Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qml minimal compile error 'Unknown CMake command "add_valgrind_test"' #686

Closed
KosmosPatX opened this issue Sep 12, 2023 · 4 comments
Closed
Assignees
Labels
📖 documentation Improvements or additions to documentation ❌ invalid This doesn't seem right

Comments

@KosmosPatX
Copy link

When compiling in the following environment, an error occurred. CMake add_valgrind_test is knowed.

Windows:
Windows 11 10.0.22621
CXX-Qt:
cxx-qt-0.5.3
Rust toolchain:
stable-x86_64-pc-windows-msvc (default)
rustc 1.72.0 (5680fa18f 2023-08-23)
Qt:
Qt6 6.5.2
Cmake:
provided by Qt

微信截图_20230912180517

THX~

@ahayzen-kdab
Copy link
Collaborator

Thanks for taking the time to report this issue.

The code in the repository you are supposed to build from the root CMakeLists, the examples themselves have CMake code that refers to functions outside (eg here the add_valgrind_test).

So your options are

Then it should build and work.

@ahayzen-kdab ahayzen-kdab added 📖 documentation Improvements or additions to documentation ❌ invalid This doesn't seem right labels Sep 12, 2023
@ahayzen-kdab
Copy link
Collaborator

Also note that the API has changed quite a bit since 0.5.3 in main and there have been some fixes that might improve building on Windows. We hope to do a 0.6 release soon which would include these changes.

@Montel Montel self-assigned this Oct 26, 2023
@Montel
Copy link
Contributor

Montel commented Oct 26, 2023

See #712

@ahayzen-kdab
Copy link
Collaborator

Fixed with #712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation ❌ invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants