![]() Once this is done, you should have the rustc compiler and the cargo build system installed in your path.Ī C++ compiler that supports C++20 (e.g., MSVC 2019 16.6 on Windows) You can check which version you have installedīy running rustc -version. Have Rust installed, make sure that it’s at least version 1.56 or newer. Install Rust by following the Rust Getting Started Guide. The recommended and most flexible way to use the C++ API is to build Slint from sources.įirst you need to install the prerequisites: In the next section you will learn how to use the installed library in your applicationĪnd load. Uncompress the downloaded archive or run the installer.Īfter extracting the artifact or running the installer, you can place the lib sub-directory into your CMAKE_PREFIX_PATH and find_package(Slint) should succeed in locating the package. (“XXX” refers to the version of the latest release) Or slint-cpp-XXX-win64.exe for a Windows installer. You can download one of our pre-built binaries for Linux or Windows on x86-64 architectures:įrom “Assets” download either slint-cpp-XXX-Linux-x86_64.tar.gz for a Linux archive We also provide binary packages of Slint for use with C++, which eliminates the need to have Rust installed in your development environment. You can select the CMake Ninja backend by passing -GNinja or setting the CMAKE_GENERATOR environment variable to Ninja. Note: We recommend using the Ninja generator of CMake for the most efficient build and. Offers a CMake target for convenient linkage. Slint comes with a CMake integration that automates the compilation step of the. Function slint::testing::send_keyboard_string_sequence.Template Function slint::invoke_from_event_loop.Template Function slint::blocking_invoke_from_event_loop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |