examples icon indicating copy to clipboard operation
examples copied to clipboard

I need your help to use examples.

Open rkems1995 opened this issue 4 years ago • 5 comments

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

rkems1995 avatar Dec 31 '20 07:12 rkems1995

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.

Samega7Cattac avatar Jan 26 '21 12:01 Samega7Cattac

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?

rkems1995 avatar Feb 10 '21 04:02 rkems1995

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:

  1. Where the "example.lic" is supposed to be issued? (I don't find it even if lccgen.exe wrote "licence written")
  2. 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.

blaurent49 avatar May 31 '22 15:05 blaurent49

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

steven30currry avatar Mar 14 '24 09:03 steven30currry