Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

errors building, installing & questions about docs #13

@phamductu

Description

@phamductu

Hi, thanks again for the library!

There are some errors that I encountered when trying to use the library, hope that you could help me! Thanks in advance!
Some information about my environment first:

  • Pop!_OS 22.04 LTS
  • g++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0
  • cmake version 3.22.1
  1. This error occured when I tried to build the library by instructions from your repo:
[ 81%] Built target ipcl
gmake[2]: *** No rule to make target 'ext_gbenchmark/lib64/libbenchmark.a', needed by 'benchmark/bench_ipcl'.  Stop.
gmake[2]: *** Waiting for unfinished jobs....
[ 83%] Building CXX object test/CMakeFiles/unittest_ipcl.dir/test_cryptography.cpp.o
[ 86%] Building CXX object test/CMakeFiles/unittest_ipcl.dir/main.cpp.o
[ 90%] Building CXX object benchmark/CMakeFiles/bench_ipcl.dir/bench_cryptography.cpp.o
[ 90%] Building CXX object benchmark/CMakeFiles/bench_ipcl.dir/main.cpp.o
[ 93%] Building CXX object benchmark/CMakeFiles/bench_ipcl.dir/bench_ops.cpp.o
[ 95%] Building CXX object test/CMakeFiles/unittest_ipcl.dir/test_ops.cpp.o
gmake[1]: *** [CMakeFiles/Makefile2:324: benchmark/CMakeFiles/bench_ipcl.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 97%] Linking CXX executable unittest_ipcl
[ 97%] Built target unittest_ipcl
gmake: *** [Makefile:136: all] Error 2

I turned off all the options in CMakeLists.txt (especially IPCL_BENCHMARK) and I built successfully.

  1. After turning off all the options, I tried to install the library with sudo cmake --install build.
    And this happened:
CMake Error at /usr/local/lib/cmake/ipcl-1.1.3/IPCLConfig.cmake:31 (include):
  include could not find requested file:

    /usr/local/lib/cmake/ipcl-1.1.3/ipclTargets.cmake
Call Stack (most recent call first):
  CMakeLists.txt:8 (find_package)

Apparently, this is caused by the following line:
include(${CMAKE_CURRENT_LIST_DIR}/ipclTargets.cmake)
and it should be changed to
include(${CMAKE_CURRENT_LIST_DIR}/IPCLTargets.cmake) (capitalized)
This practice successed and I can use the library.
3. Because I'm quite new to CMake stuffs, I only know one way to use the library for another repo is to install it like the above. Could you suggest to me how to use the library for another repo?
4. Is there a document for the library? I can only find how to use the library (encrypt/decrypt/operations) by reading the test.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions