I need your help to use examples.
I downloaded licensecc and finished installing it. I also completed the test without any problems. but i got a problem to follow the examples. I installed "open-license-manager" in the "C:\code-lock\open-license-manager" path. when I follow "simple-pc-identifier" in examples, an error occurred. "export LCC_INSTALLATION_DIR = ... #folder where you installed open-license-manager 1" in this process I set "set LCC_INSTALLATION_DIR=C:\code-lock\open-license-manager" and go build and start cmake when the cmake start, an error occured. The error is as follows.
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363. CMake Error at CMakeLists.txt:16 (find_package): By not providing "Findlicensecc.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "licensecc", but CMake did not find one. Could not find a package configuration file provided by "licensecc" (requested version 2.0.0) with any of the following names: licenseccConfig.cmake licensecc-config.cmake Add the installation prefix of "licensecc" to CMAKE_PREFIX_PATH or set "licensecc_DIR" to a directory containing one of the above files. If "licensecc" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "C:/code-lock/open-license-manager/examples/simple_pc_identifier/build/CMakeFiles/CMakeOutput.log".
i need your help to solve this error
The examples work but they are outdated, for example "open-license-manager" was the old project name ("licensecc" is the new) and the script that is missing "Findlicensecc.cmake" u can find it in the submodule example inside cmake dir. Follow the cmakelists file on that example and tweak what's needed to ur project.
Thanks to your help, I think I succeeded in executing the example file.
but when i run ./example it said "this product was not licensed". i want to see "ok" what should i do?
Hello, I know the post is quite old but I encountered the same problems though I managed to make one step beyond with the program_features. To answer the previous comment, you have to generate a licence file following the documentation (https://github.com/open-license-manager/examples/tree/develop/program_features). Once done, I run example.exe but it keeps telling me that "license file not found". My questions are the followings:
- Where the "example.lic" is supposed to be issued? (I don't find it even if lccgen.exe wrote "licence written")
- How can we specify the license file location in the code? (2nd parameter of "acquire_license" method?) I am using MCVS 2019. Thank you in advance for your help.
I downloaded licensecc and finished installing it. I also completed the test without any problems. but i got a problem to follow the examples. I installed "open-license-manager" in the "C:\code-lock\open-license-manager" path. when I follow "simple-pc-identifier" in examples, an error occurred. "export LCC_INSTALLATION_DIR = ... #folder where you installed open-license-manager 1" in this process I set "set LCC_INSTALLATION_DIR=C:\code-lock\open-license-manager" and go build and start cmake when the cmake start, an error occured. The error is as follows.
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363. CMake Error at CMakeLists.txt:16 (find_package): By not providing "Findlicensecc.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "licensecc", but CMake did not find one. Could not find a package configuration file provided by "licensecc" (requested version 2.0.0) with any of the following names: licenseccConfig.cmake licensecc-config.cmake Add the installation prefix of "licensecc" to CMAKE_PREFIX_PATH or set "licensecc_DIR" to a directory containing one of the above files. If "licensecc" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "C:/code-lock/open-license-manager/examples/simple_pc_identifier/build/CMakeFiles/CMakeOutput.log".
i need your help to solve this error
Hello buddy, I met the same problem with you when I was in cmake submoudule, how did you solve it at last