Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need your help to use examples. #5

Open
rkems1995 opened this issue Dec 31, 2020 · 5 comments
Open

I need your help to use examples. #5

rkems1995 opened this issue Dec 31, 2020 · 5 comments

Comments

@rkems1995
Copy link

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

@Samega7Cattac
Copy link

Samega7Cattac commented Jan 26, 2021

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.

@rkems1995
Copy link
Author

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?

@blaurent49
Copy link

blaurent49 commented May 31, 2022

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.

@steven30currry
Copy link

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

@bijwaard
Copy link

It appears to find the license-file when it is in the same directory as the executable, in ms-windows that would be build\Release, and in Linux the build directory itself.
The license generation works for me under ms-windows in the build directory with %LCC_INSTALLATION_DIR%\bin\lccgen license issue -o Release\example.lic --project-folder %LCC_INSTALLATION_DIR%..\projects\DEFAULT
Next challenge with openssl3, is that the licensecheck is not yet working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants