Thanks for writing this program, I hope that I can successfully use it :)
I got some problems when compiling it on Ubuntu, so issue them to ask for help :P
Firstly I tried the examples/submodule/ directly after the licensecc installed. I executed cmake .. -DCMAKE_INSTALL_PREFIX=. in path examples/submodule/build, which is descibed in README. Then I got this output.
-- The CXX compiler identification is GNU 9.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
/home/ubuntu/projects/license-demo/examples/submodule/extern/open-license-manager
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- LicenseCC found licensecc_DIR-NOTFOUND
-- Configuring done
CMake Error at CMakeLists.txt:20 (add_executable):
Target "example" links to target "licensecc::licensecc_static" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
It seemd that the program cannot located where the licensecc was. So I put the files of licensecc in exmaples/submodule/extern/open-license-manager/.
Then the output was
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found openssl version 1.1.1f -licensecc
-- openssl 1.1.1f zlib not required - licensecc
-- CXX compiler : /usr/bin/c++
-- CXX compiler flags :
-- CXX compiler flags debug : -g
-- CXX compiler flags release: -O3 -DNDEBUG
-- Install prefix : /home/ubuntu/projects/license-demo/examples/submodule/build
-- Project name : DEFAULT
-- Project base dir : /home/ubuntu/projects/license-demo/examples/submodule/projects/DEFAULT
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: unit_test_framework system filesystem
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE)
-- Doxygen or Sphynx not found, not generating docs.
-- LicenseCC found licensecc_DIR-NOTFOUND
-- Configuring incomplete, errors occurred!
So why does it cannot found the licensecc_DIR? How can I fix it?
Thanks for reading and looking forward to the reply :)
Thanks for writing this program, I hope that I can successfully use it :)
I got some problems when compiling it on Ubuntu, so issue them to ask for help :P
Firstly I tried the
examples/submodule/
directly after thelicensecc
installed. I executedcmake .. -DCMAKE_INSTALL_PREFIX=.
in pathexamples/submodule/build
, which is descibed inREADME
. Then I got this output.It seemd that the program cannot located where the
licensecc
was. So I put the files oflicensecc
inexmaples/submodule/extern/open-license-manager/
.Then the output was
So why does it cannot found the
licensecc_DIR
? How can I fix it?Thanks for reading and looking forward to the reply :)