![]() If you are building against a Yocto SDK, it is sufficient to source the SDK’s environment setup file. How to set this up in the upstream CMake documentation. That, you need to make sure that your CMake setup is ready for cross-compilation. It is possible to cross-compile SixtyFPS to a different target architecture when building with CMake. This works when compiling SixtyFPS as a package, using cmake -build and cmake -install, or when including SixtyFPS For example on the command line using the -D parameter:Īlternatively, after the configure step you can use cmake-gui or ccmake on the build directory for a list of all features There areĭifferent ways of toggling CMake options. You can enable support for the Wayland windowing system on Linux by enabling the SIXTYFPS_FEATURE_WAYLAND feature. The CMake configure step offers CMake options for various feature that are all prefixed with SIXTYFPS_FEATURE_. Therefore reduce the size of the resulting library. Not enabled by default but that is revelant for you, or you may want to disable a feature that you know you do not need and You might want to enable a feature that is The SixtyFPS run-time library supports different features that can be toggled. If you prefer to treat SixtyFPS as an external CMake package, then you can also build SixtyFPS from source like a regularĬMake project, install it into a prefix directory of your choice and use find_package(SixtyFPS) in your CMakeLists.txt. Include ( FetchContent ) FetchContent_Declare ( SixtyFPS GIT_REPOSITORY GIT_TAG v0.1.4 SOURCE_SUBDIR api/sixtyfps-cpp ) FetchContent_MakeAvailable ( SixtyFPS ) ![]() Insert the following snippet into your CMakeLists.txt to make CMake download the latest release, compile it and make the CMake integration available: You can include SixtyFPS in your CMake project using CMake’s FetchContent feature. You should have the rustc compiler and the cargo build system installed in your path.Ī C++ compiler that supports C++17 (e.g., MSVC 2019 on Windows) Install Rust by following the Rust Getting Started Guide. The recommended and most flexible way to use the C++ API is to build SixtyFPS from sources.įirst you need to install the prerequisites: 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. SixtyFPS comes with a CMake integration that automates the compilation step of the. Function sixtyfps::testing::send_keyboard_string_sequence.Template Function sixtyfps::invoke_from_event_loop.Template Function sixtyfps::blocking_invoke_from_event_loop.This simple program is provided in tutorial-viewer. Let's start to write our first program to see how to read an image and open a window to display the image. Note also that all the material (source code and images) described in this tutorial is available in ViSP source code, in tutorial/image folder. If you are not familiar with CMake, you can check the tutorial. The easiest way of using ViSP in your project is to use CMake. In this tutorial you will learn how to use ViSP either on Unix-like systems (including OSX, Fedora, Ubuntu, Debian. ![]() Tutorial: Installation from prebuilt packages on Linux Ubuntu.Tutorial: Installation from source on OSX for iOS devices.Tutorial: Installation from source on Windows 8.1 with Mingw-w64.Tutorial: Installation from source on Windows 8.1 with Visual C++ 2013.Tutorial: Installation from source on Windows 7 with Visual C++ 2012.Tutorial: Installation from source on Raspberry Pi.Tutorial: Installation from source on Linux openSUSE.Tutorial: Installation from source on Linux Fedora.Tutorial: Installation from source on Linux Ubuntu.Information on ViSP installation is provided in: Note We assume in this tutorial that you have successfully installed ViSP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |