diff --git a/ml_lme_cvr/Properties/AssemblyInfo.cs b/ml_lme_cvr/Properties/AssemblyInfo.cs index 3264695..ccab244 100644 --- a/ml_lme_cvr/Properties/AssemblyInfo.cs +++ b/ml_lme_cvr/Properties/AssemblyInfo.cs @@ -1,10 +1,10 @@ using System.Reflection; [assembly: AssemblyTitle("LeapMotionExtension")] -[assembly: AssemblyVersion("1.0.5")] -[assembly: AssemblyFileVersion("1.0.5")] +[assembly: AssemblyVersion("1.0.6")] +[assembly: AssemblyFileVersion("1.0.6")] -[assembly: MelonLoader.MelonInfo(typeof(ml_lme_cvr.LeapMotionExtension), "LeapMotionExtension", "1.0.5", "SDraw", "https://github.com/SDraw/ml_mods_cvr")] +[assembly: MelonLoader.MelonInfo(typeof(ml_lme_cvr.LeapMotionExtension), "LeapMotionExtension", "1.0.6", "SDraw", "https://github.com/SDraw/ml_mods_cvr")] [assembly: MelonLoader.MelonGame(null, "ChilloutVR")] [assembly: MelonLoader.MelonPlatform(MelonLoader.MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64)] [assembly: MelonLoader.MelonPlatformDomain(MelonLoader.MelonPlatformDomainAttribute.CompatibleDomains.MONO)] diff --git a/ml_lme_cvr/vendor/LeapSDK/LICENSE.md b/ml_lme_cvr/vendor/LeapSDK/LICENSE.md index 7fed2b2..556bdac 100644 --- a/ml_lme_cvr/vendor/LeapSDK/LICENSE.md +++ b/ml_lme_cvr/vendor/LeapSDK/LICENSE.md @@ -1,13 +1,19 @@ ULTRALEAP TRACKING SDK AGREEMENT + Updated: 22 March 2022 + Permitted uses + This SDK Agreement (“Agreement”) covers use of the Ultraleap hand tracking SDK (the “SDK”) by individuals and businesses for the following purposes: + 1. Your personal, non-commercial use (for the avoidance of doubt, excluding use for the design or manufacture of a commercial or distributable product (e.g in design studios)); or + 2. Commercial use for the development and sale consumer facing games, made available for sale to be purchased by consumers for personal use either at retail or through app stores (excluding, without limitation, location-based entertainment and arcade applications); or + 3. Demonstration of your application to internal and external stakeholders and customers where there is no transaction, no sale of tickets specifically for the application, or any other form of compensation for you or your organisation, @@ -20,51 +26,72 @@ a separate license agreement. Please contact Ultraleap info@ultraleap.com for mo In each case, the SDK may only be used with Ultraleap Hardware and Ultraleap Software. 1. Parties + 1.1. This Agreement is made between the individual or entity (“you” or the “Developer”) that accepts it and Ultraleap Limited (“Ultraleap”). You accept this Agreement by (a) accepting it on download of the SDK, or (b) if you use or access the SDK or any part of the SDK. Your entry into this Agreement also binds your authorized users, and your company or organisation. + 1.2. If you do not agree to the terms of this Agreement you must not use the SDK. + 1.3. Capitalized terms bear the meanings given in the “Definitions” section of this Agreement. + 1.4. This Agreement incorporates the terms of the Ultraleap Hand Tracking End User License Agreement (“EULA”), which is available at https://developer.leapmotion.com/end-user-license- agreement or from Ultraleap on request. In the event of a conflict between these terms and the EULA, these terms will prevail. + 2. License + Development License + 2.1. Conditional on your compliance with the terms and conditions of this Agreement, Ultraleap hereby grants you a limited, non-exclusive, personal, revocable, non-sublicensable, and non- transferable license to: + 2.1.1. install and use a reasonable number of copies of the SDK on computers owned or controlled by you for the purpose of developing and testing applications that (a) are not Specialised Applications and (b) are intended for use solely in connection with Ultraleap Hardware and Ultraleap Software (each being an “Ultraleap Enabled Application”); and + 2.1.2. modify and incorporate into your Ultraleap Enabled Application any sample code provided in the SDK. + Distribution License + 2.2. Conditional on your compliance with the terms and conditions of this Agreement, Ultraleap hereby grants you a limited, non-exclusive, personal, revocable, non-transferrable license of Ultraleap’s intellectual property rights to the extent necessary to: + 2.2.1. copy and distribute (or have copied and distributed) the Ultraleap Redistributables, solely as compiled with, incorporated into, or packaged with, your Ultraleap Enabled Application; and + 2.2.2. to make (but not have made), use, sell, offer for sale, and import your Ultraleap Enabled Application. + 3. Restrictions + 3.1. The license granted to you in section 2.1 and section 2.2 is subject to the following restrictions, as well as others listed in this Agreement: + 3.1.1. Except as expressly permitted in section 2.1, (a) you may not publish, distribute, or copy the SDK, and (b) you may not modify or create derivative works of the SDK; + 3.1.2. Except as expressly permitted in section 2.2, you may not, and may not allow any third party, directly or indirectly, to publish, post, or otherwise make available, the Ultraleap Redistributables; + 3.1.3. You may not, and may not enable others to, distributed the Non-Redistributable Materials; + 3.1.4. You may use the SDK solely in connection with Ultraleap Hardware and/or Ultraleap Software; + 3.1.5. You may not use the SDK to create, or aid in the creation, directly or indirectly, of any software or hardware which provides hand tracking functionality or which is otherwise substantially similar to the features or functionality of Ultraleap products; + 3.1.6. You may not, and may not enable others to, directly or indirectly, reverse engineer, decompile, disassemble, or otherwise attempt to reconstruct, identify, or discover any source code, underlying ideas, techniques, or algorithms in the Ultraleap Software, the @@ -73,33 +100,43 @@ circumvent any related security measures (except as and only to the extent any foregoing restriction is prohibited by applicable law notwithstanding the foregoing restriction, or to the extent as may be permitted by licensing terms governing the use of any open source software components or sample code contained within the SDK; + 3.1.7. You may not remove, obscure, or alter any proprietary rights or confidentiality notices within the SDK or any software, documentation, or other materials in it or supplied with it; + 3.1.8. You must not allow the Ultraleap Software or SDK to fall under the terms of any license which would obligate you or Ultraleap to make available or publish any part of the Ultraleap Software or SDK. + 3.1.9. You may not create Ultraleap Enabled Applications or other software that prevent or degrade the interaction of applications developed by others with the Ultraleap Software; + 3.1.10. You may not represent functionality provided by any Ultraleap hardware or software as your technology or the technology of any third party. For example (without limitation) you may not describe any application, technology, or feature developed or distributed by you that incorporates Ultraleap technology as your gesture or touchless control technology without providing attribution to Ultraleap; and + 3.1.11. You may not allow your Ultraleap Enabled Application to be used for a High Risk Use. + 4. Updates + 4.1. The terms of this Agreement will apply to any Updates which Ultraleap (in its sole discretion) makes available to you. You agree that Updates may require you to change or update your Ultraleap Enabled Application, and may affect your ability to use, access, or interact with the Ultraleap Software, the Ultraleap Hardware, and/or the SDK. You are solely responsible for turning off any auto-update functionality of the Ultraleap Software. + 5. Trademarks and Marketing + 5.1. Conditioned upon compliance with the terms and conditions of this Agreement, Ultraleap grants you a limited, non-exclusive, personal, license to reproduce and use Ultraleap trademarks solely to (a) mark the Ultraleap Enabled Application, (b) produce and make available related collateral, and (c) to promote and market your Ultraleap Enabled Application, in each case solely in accordance with the Ultraleap trademark guidelines that Ultraleap may provide to you from time to time. + 5.2. For so long as Ultraleap technology is included with the Ultraleap Enabled Application, you must identify on the packaging of the Ultraleap Enabled Application, the loading screen and start-up messages for the Ultraleap Enabled Application, and list on your website and marketing collateral @@ -108,6 +145,7 @@ Ultraleap technology is included with the Ultraleap Enabled Application, in acco Ultraleap trademark guidelines that Ultraleap may provide to you from time to time. All references to Ultraleap or Ultraleap Technology will be subject to Ultraleap’s prior approval, which will not be unreasonably withheld. + 5.3. Ultraleap may at its option mention you and your products using Ultraleap technology in Ultraleap’s press releases, press briefings, social media accounts, and/or website, and may use your trademarks for such purpose. You grant to Ultraleap and its affiliates a non-exclusive, @@ -117,7 +155,9 @@ fragments of your Ultraleap Enabled Application in any medium or media, solely f promotion of your Ultraleap Enabled Application or of Ultraleap and its technology and business. The rights set out in this section 5.3 will survive termination of this Agreement in respect of materials already in existence as at the date of termination. + 6. EULA and Other Licenses + 6.1. Example code made publicly available by Ultraleap on its developer web site may be provided subject to the Apache 2.0 license, this Agreement, or other licenses, as specified in the notice or readme files distributed with the example or in related documentation. The SDK may otherwise @@ -126,10 +166,13 @@ that separate license will govern the use of such software or other materials in conflict with this Agreement. Any such separate license agreement may be indicated in the license, notice, or readme files distributed with the applicable software or other materials or in related documentation. + 6.2. You must either require end users of your Ultraleap Enabled Application to affirmatively agree to the Ultraleap EULA, or require its End Users to affirmatively agree to your own end user license agreement that protects Ultraleap at least as much as the Ultraleap EULA. + 7. High Risk Uses and Waiver + 7.1. Notwithstanding anything in this Agreement, you are not licensed to, and you agree not to, use, copy, sell, offer for sale, or distribute the SDK, Ultraleap Hardware, Ultraleap Software or Ultraleap Redistributables (whether compiled with, incorporated into, or packaged with your @@ -137,6 +180,7 @@ Ultraleap Enabled Application or otherwise), for or in connection with uses wher of the Ultraleap Hardware, Ultraleap Software, Ultraleap Redistributables or your Ultraleap Enabled Application could lead to death or serious bodily injury of any person, or to severe physical or environmental damage (“High Risk Use”). Any such use is strictly prohibited. + 7.2. You acknowledge the SDK may allow you to develop Ultraleap Enabled Applications that enable the control of motorized or mechanical equipment, or other systems, machines or devices. If you elect to use the SDK in such a way, you must take steps to design and test your Ultraleap Enabled @@ -152,7 +196,9 @@ Enabled Applications or to third parties, (ii) you hereby waive, on behalf of yo Authorized Users, all claims against Ultraleap and its affiliates related to such use, harm or loss (including, but not limited to, any claim that Ultraleap Technology or such other software is defective), and (iii) you agree to hold Ultraleap and its affiliates harmless from such claims. + 8. Confidentiality and Data Protection + 8.1. Beta Software etc. Obligations. You acknowledge and agree that Ultraleap may share alpha or beta software or hardware with you that it identifies as non-public. If so, you agree not to disclose such software or hardware to others without the prior written consent of Ultraleap @@ -160,6 +206,7 @@ until the time, if any, it is made public by Ultraleap, and to use such software as expressly permitted by Ultraleap. Without limitation to the foregoing, the distribution license set out in section 2.2 shall not apply to any alpha or beta software which may be shared with you. + 8.2. Your Information. Ultraleap may collect personal information provided by you or your Authorized Users to Ultraleap or any group company of Ultraleap in connection with the SDK, and may collect other information from you or your Authorized Users, including technical, non- @@ -181,35 +228,46 @@ Authorized Users’ information to Ultraleap for the Permitted Uses. You further Ultraleap may provide any information collected under this Section 8.2, including your or your Authorized Users’ user name, IP address or other identifying information to law enforcement authorities or as required by applicable law or regulation. + 9. Ownership and Feedback + 9.1. As between you and Ultraleap, Ultraleap owns all right, title, and interest, including all intellectual property rights, in and to the SDK, the Ultraleap Software, Ultraleap Hardware, the Ultraleap Redistributables, and all documentation associated with the foregoing, other than any third party software or materials incorporated into the SDK. You agree not to contest Ultraleap’s ownership of any of the foregoing. + 9.2. Subject to Section 9.1, Ultraleap agrees that it obtains no right, title, or interest from you (or your licensors) under this Agreement in or to your Ultraleap Enabled Applications, including any intellectual property rights which subsist in those Ultraleap Enabled Applications. + 9.3. Feedback. You may (but are not required to) provide feedback, comments, and suggestions (collectively “Feedback”) to Ultraleap. You hereby grant to Ultraleap a non-exclusive, perpetual, irrevocable, paid-up, transferrable, sub-licensable, worldwide license under all intellectual property rights covering such Feedback to use, disclose, and exploit all such Feedback for any purpose. + 10. Your Obligations and Warranties + In addition to your other obligations under this Agreement, you warrant and agree that: + 10.1. you are at least 18 years of age and have the right and authority to enter into this Agreement on your own behalf and that of your Authorized Users. If you are entering into this Agreement on behalf of your company or organization, you warrant that you have the right and authority to legally bind your company or organization and its Authorized Users; + 10.2. you will use the SDK only in accordance with all accompanying documentation, and in the manner expressly permitted by this Agreement; and + 10.3. your use of the SDK, and the marketing, sales and distribution of your Ultraleap Enabled Application, will be in compliance with all applicable laws and regulations and all UK, U.S. and local or foreign export and re-export restrictions applicable to the technology and documentation provided under this Agreement (including privacy and data security laws and regulations), and you will not develop any Ultraleap Enabled Application which would commit or facilitate the commission of a crime, or other tortious, unlawful, or illegal act. + 11. Agreement and Development Program + 11.1. We reserve the right to change this Agreement, the SDK or the Ultraleap development and licensing program at any time in our discretion. Ultraleap may require that you either accept and agree to the new terms of this Agreement, or, if you do not agree to the new terms, cease @@ -221,15 +279,20 @@ subject to your continued compliance with your obligations under this Agreement, to distribute versions of your Ultraleap Enabled Application created and first distributed before termination, and will not affect the right of your End Users to continue using such versions of your Ultraleap Enabled Application, both of which rights will survive termination. + 12. Term and Termination + 12.1. Term. This Agreement will continue to apply until terminated by either you or Ultraleap as set out below. + 12.2. Termination by You. If you want to terminate this Agreement, you may terminate it by uninstalling and destroying all copies of the SDK that are in the possession, custody or control of you, your Authorized Users and your organization. + 12.3. Termination by Ultraleap. Ultraleap may at any time, terminate this Agreement with you for any reason or for no reason in Ultraleap’s sole discretion, including as a result of non- compliance by you with the restrictions in in this Agreement, or for other reasons. + 12.4. Effect of Termination. Upon termination of this Agreement, all rights granted to you under this Agreement will immediately terminate and you must immediately cease all use and destroy all copies of the SDK in your and your Authorized Users’ possession, custody or control, and, except @@ -237,7 +300,9 @@ as specifically set out in Section 11, cease your distribution of Ultraleap Enab Sections 3, 8.1, 8.2, 9, 12.4, 14-16, and 17, will survive termination of this Agreement. Termination of this Agreement will not affect the right of your End Users who have downloaded your Ultraleap Enabled Application prior to termination to continue using it. + 13. Indemnification. + 13.1. You agree to indemnify, hold harmless and, at Ultraleap’s option, defend Ultraleap and its affiliates and their respective officers, directors, employees, agents, and representatives harmless from any and all judgments, awards, settlements, liabilities, damages, costs, penalties, @@ -248,7 +313,9 @@ Application, including products liability, privacy, or intellectual property inf representations, warranties, and covenants under this Agreement. In no event may you enter into any settlement or like agreement with a third party that affects Ultraleap’s rights or binds Ultraleap or its affiliates in any way, without the prior written consent of Ultraleap. + 14. Warranty Disclaimer. + 14.1. THE SDK, THE ULTRALEAP SOFTWARE AND THE ULTRALEAP REDISTRIBUTABLES ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ULTRALEAP, ON BEHALF OF ITSELF AND ITS SUPPLIERS, HEREBY DISCLAIMS ALL REPRESENTATIONS, PROMISES, OR WARRANTIES, WHETHER @@ -259,16 +326,25 @@ DISCLAIMS ALL IMPLIED WARRANTIES OF MERCHANTABILITY, TITLE, NONINFRINGEMENT, SUITABILITY, AND FITNESS FOR ANY PURPOSE. ULTRALEAP DOES NOT WARRANT THAT THE SDK, THE ULTRALEAP SOFTWARE OR THE ULTALEAP REDISTRIBUTABLES WILL BE ERROR-FREE OR THAT THEY WILL WORK WITHOUT INTERRUPTION. + 15. Limitation of Liability. + 15.1. ULTRALEAP SHALL NOT IN ANY CIRCUMSTANCES WHATEVER BE LIABLE TO YOU, WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE), BREACH OF STATUTORY DUTY, OR OTHERWISE, ARISING UNDER OR IN CONNECTION WITH THE AGREEMENT FOR: + 15.1.1. LOSS OF PROFITS, SALES, BUSINESS, OR REVENUE; + 15.1.2. BUSINESS INTERRUPTION; + 15.1.3. LOSS OF ANTICIPATED SAVINGS; + 15.1.4. LOSS OR CORRUPTION OF DATA OR INFORMATION; + 15.1.5. LOSS OF BUSINESS OPPORTUNITY, GOODWILL OR REPUTATION; OR + 15.1.6. ANY INDIRECT OR CONSEQUENTIAL LOSS OR DAMAGE. + 15.2. OTHER THAN THE LOSSES SET OUT ABOVE (FOR WHICH ULTRALEAP IS NOT LIABLE), ULTRALEAP’S MAXIMUM AGGREGATE LIABILITY UNDER OR IN CONNECTION WITH THE AGREEMENT WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE), BREACH OF STATUTORY @@ -276,6 +352,7 @@ DUTY, OR OTHERWISE, SHALL IN ALL CIRCUMSTANCES BE LIMITED TO $1,000 (ONE THOUSAN US DOLLARS). THIS MAXIMUM CAP DOES NOT APPLY TO DEATH OR PERSONAL INJURY RESULTING FROM ULTRALEAP'S NEGLIGENCE; FRAUD OR FRAUDULENT MISREPRESENTATION; OR ANY OTHER LIABILITY THAT CANNOT BE EXCLUDED OR LIMITED BY APPLICABLE LAW. + 15.3. THE AGREEMENT SETS OUT THE FULL EXTENT OF ULTRALEAP’S OBLIGATIONS AND LIABILITIES IN RESPECT OF THE SUPPLY OF THE ULTRALEAP DEVICES, DELIVERABLES AND SOFTWARE. EXCEPT AS EXPRESSLY STATED IN THE AGREEMENT, THERE ARE NO CONDITIONS, WARRANTIES, @@ -289,7 +366,9 @@ FOR A PARTICULAR PURPOSE, IS EXCLUDED TO THE FULLEST EXTENT PERMITTED BY LAW. TH LIMITATIONS WILL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY. THE PARTIES AGREE THAT THE FOREGOING LIMITATIONS REPRESENT A REASONABLE ALLOCATION OF RISK UNDER THIS AGREEMENT. + 16. Miscellaneous. + 16.1. Assignment. You may not assign this Agreement without the prior written consent of Ultraleap. Any assignment without such consent is void and of no effect. Ultraleap may assign this Agreement without your consent in connection with (a) a merger or consolidation of Ultraleap, @@ -297,28 +376,34 @@ Agreement without your consent in connection with (a) a merger or consolidation in another entity or person owning substantially all of the assets of Ultraleap, or (d) to any of its affiliates. In the event of a permitted assignment, this Agreement will inure to the benefit of and be binding upon the parties and their respective successors and permitted assigns. + 16.2. Waiver; Severability. The failure of the other party to enforce any rights under this Agreement will not be deemed a waiver of any rights. The rights and remedies of the parties in this Agreement are not exclusive and are in addition to any other rights and remedies provided by law. If any provision of this Agreement is held by a court of competent jurisdiction to be contrary to law, the remaining provisions of this Agreement will remain in full force and effect. + 16.3. Reservation. All licenses not expressly granted in this Agreement are reserved and no other licenses, immunity or rights, express or implied, are granted by Ultraleap, by implication, estoppel, or otherwise. The software in the SDK is licensed, not sold. + 16.4. Export Restrictions. The Ultraleap Software is subject to United States and UK export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the Ultraleap Software. These laws include restrictions on destinations, end users, and end use. + 16.5. Governing Law and Jurisdiction. This Agreement will be exclusively governed by and construed under the laws of the England and Wales, without reference to or application of rules governing choice of laws. All disputes arising out of or related to this Agreement will be subject to the exclusive jurisdiction of courts of England and you hereby consent to such jurisdiction. However, Ultraleap may apply to any court or tribunal worldwide, including but not limited to those having jurisdiction over you or your Authorized Users, to seek injunctive relief. + 16.6. Relationship of the Parties. This Agreement does not create any agency, partnership, or joint venture relationship between Ultraleap and you. This Agreement is for the sole benefit of Ultraleap and you (and indemnified parties), and no other persons will have any right or remedy under this Agreement. + 16.7. Notices. The address for notice to Ultraleap under this Agreement is: Ultraleap Limited The West Wing @@ -332,7 +417,9 @@ agree that any such notices by Ultraleap will satisfy any legal communication re 16.8. Entire Agreement. This Agreement is the entire understanding of the parties with respect to its subject matter and supersedes any previous or contemporaneous communications, whether oral or written with respect to such subject matter. + 17. Definitions + Whenever capitalized in this Agreement: “Authorized Users” means your employees and contractors, members of your organization or, if you are an educational institution, your faculty, staff and registered students, who (a) have a @@ -368,21 +455,28 @@ available to Ultraleap Enabled Applications, and includes any Updates thereto. versions to the SDK that Ultraleap may make available to you in connection with this Agreement. Other capitalized terms used in this Agreement have the meaning given them elsewhere in this Agreement. + 18. Supplemental Terms Applicable to the Use of Image API + 18.1. Purpose. You and/or your Ultraleap Enabled Application may access the Image API and use image data available through the Image API only for the purpose of developing and testing Ultraleap Enabled Applications, and only for use with Ultraleap Hardware. You may not use the Image API to develop or aid development of competing motion tracking hardware or software. Any use of the Image API is subject to the terms of the Agreement. + 18.2. Data Protection. + 18.2.1. If you or your Ultraleap Enabled Application collects, uploads, stores, transmits, or shares images, videos, or other personal information available through the Image API, either through or in connection with your Ultraleap Enabled Application, you must expressly provide users with your privacy policy and adhere to it. + 18.2.2. You must obtain specific, opt-in consent from the user for any use that is beyond the limited and express purpose of your Ultraleap Enabled Application. + 18.2.3. You and your Ultraleap Enabled Application must use and store information collected form users securely and only for as long as it is required. + 18.2.4. You agree that you will protect the privacy and legal rights of users, and will comply with all applicable criminal, civil, and statutory privacy and data protection laws and regulations. diff --git a/ml_lme_cvr/vendor/LeapSDK/README.md b/ml_lme_cvr/vendor/LeapSDK/README.md index c60d58e..e71255f 100644 --- a/ml_lme_cvr/vendor/LeapSDK/README.md +++ b/ml_lme_cvr/vendor/LeapSDK/README.md @@ -16,7 +16,7 @@ LeapSDK - LICENSE.md * Ultraleap Tracking SDK license. - Uninstall.exe - * Program to uninstall the LeapSDK application. + * Program to uninstall the LeapSDK application (Windows only). ## Requirements: @@ -25,15 +25,12 @@ LeapSDK 2. Building Samples requires * CMake 3.16.3+ (https://cmake.org/) - * Microsoft Visual Studio 15+ + * Microsoft Visual Studio 15+ (Windows) + * GCC (Linux - tested on v9.4.0) ## Installation: -1. Execute the LeapSDK installer. - -2. Choose a suitable destination location on your computer. - -3. Read and accept the Ultraleap Tracking SDK Agreement to use the Ultraleap SDK. +The LeapSDK is installed with Ultraleap Tracking. ## Usage: @@ -44,35 +41,60 @@ LeapSDK * Or : Pass the LeapSDK's path to find_package with the PATHS option. * call find_package(LeapSDK 5 [PATHS ...]). * call target_link_libraries( PUBLIC|PRIVATE LeapSDK::LeapC). - * Ensure LeapC.dll is in your dynamic library search path. + * Ensure LeapC.dll/LeapC.so is in your dynamic library search path. * A popular option is to add a post-build step that copies it to your project's output directory. 2. For non-CMake projects * Use a C/C++ compiler such as MSVC, Clang or GCC. * Add LeapSDK/include to the compiler include search paths. - * Either add a linker reference to LeapC.lib or dynamically load LeapC.dll. + * Either add a linker reference to LeapC.lib or dynamically load LeapC.dll/LeapC.so. ## Building Samples: +### Windows + 1. Open CMake using LeapSDK/samples as the source directory 2. Select a build directory (often LeapSDK/samples/build) to use 3. Configure & Generate CMake with the generator of your choice + +4. Open and build the CMake generated project files. For more help, see the CMake documentation. * An example script would be : ```powershell $env:BUILD_TYPE = 'Release' $env:REPOS_BUILD_ROOT = 'C:/build' $env:REPOS_INSTALL_ROOT = 'C:/Program Files' -cmake -j -S "C:/Program Files/Ultraleap/LeapSDK/samples" -B $env:REPOS_BUILD_ROOT/$env:BUILD_TYPE/LeapSDK/leapc_example ` +cmake -S "C:/Program Files/Ultraleap/LeapSDK/samples" -B $env:REPOS_BUILD_ROOT/$env:BUILD_TYPE/LeapSDK/leapc_example ` -DCMAKE_INSTALL_PREFIX="$env:REPOS_INSTALL_ROOT/leapc_example" ` -DCMAKE_BUILD_TYPE="$env:BUILD_TYPE" cmake --build $env:REPOS_BUILD_ROOT/$env:BUILD_TYPE/LeapSDK/leapc_example -j --config $env:BUILD_TYPE ``` +### x64 Linux + +1. Open CMake using /usr/share/doc/ultraleap-tracking/samples as the source directory + +2. Select a build directory (eg. ~/ultraleap-tracking-samples/build) to use + +3. Configure & Generate CMake with the generator of your choice + 4. Open and build the CMake generated project files. For more help, see the CMake documentation. + * An example script would be : +```bash +SRC_DIR=/usr/share/doc/ultraleap-tracking/samples +BUILD_TYPE='Release' +REPOS_BUILD_ROOT=~/ultraleap-tracking-samples/build +REPOS_INSTALL_ROOT=/usr/bin/ultraleap-tracking-samples + +cmake -S ${SRC_DIR} -B ${REPOS_BUILD_ROOT}/${BUILD_TYPE}/LeapSDK/leapc_example ` + -DCMAKE_INSTALL_PREFIX="${REPOS_INSTALL_ROOT}/leapc_example" ` + -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" + +cmake --build ${REPOS_BUILD_ROOT}/${BUILD_TYPE}/LeapSDK/leapc_example -j --config ${BUILD_TYPE} +``` ## Resources: diff --git a/ml_lme_cvr/vendor/LeapSDK/lib/x64/LeapC.dll b/ml_lme_cvr/vendor/LeapSDK/lib/x64/LeapC.dll index 808946e..c8b9f41 100644 Binary files a/ml_lme_cvr/vendor/LeapSDK/lib/x64/LeapC.dll and b/ml_lme_cvr/vendor/LeapSDK/lib/x64/LeapC.dll differ