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

Cmake Error #32

Open
nilslukas opened this issue Jul 8, 2019 · 9 comments
Open

Cmake Error #32

nilslukas opened this issue Jul 8, 2019 · 9 comments

Comments

@nilslukas
Copy link

When running cmake .. in the build directory I get the following errors..

`CMake Error at CMakeLists.txt:26 (add_library):
Target "otextension" links to target "Boost::system" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

CMake Error at CMakeLists.txt:26 (add_library):
Target "otextension" links to target "Boost::thread" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

CMake Error at CMakeLists.txt:26 (add_library):
Target "otextension" links to target "RELIC::relic" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
`

@dd23
Copy link
Member

dd23 commented Aug 22, 2019

I cannot reproduce this issue, neither on Manjaro nor on Ubuntu 19.04.

Can you try to do a fresh clone of the repository? What system are you using? Is boost installed? If yes, is the version at least 1.66?

@Nina-9519
Copy link

I have this error, too

@dd23
Copy link
Member

dd23 commented Nov 10, 2019

Please provide info about your system.
Did you try this with a fresh, unmodified clone of the repository?

@WeiViming
Copy link

@dd23 I have this error, too. Ubuntu 20.04LTS, boost version is 1.71.

@dd23
Copy link
Member

dd23 commented Jul 4, 2020

Did you try this with a fresh, unmodified clone of the repository?

@WeiViming
Copy link

@dd23 Yes, It is fresh, unmodified clone of the repository. I have see another issue about this error. And add find_package(Boost 1.66.0 COMPONENTS system thread filesystem REQUIRED) into CMakeLists.txt. But it can not fix the last problem:

CMake Error at CMakeLists.txt:26 (add_library):
  Target "otextension" links to target "RELIC::relic" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?

@dd23
Copy link
Member

dd23 commented Jul 4, 2020

Maybe you have an old version of ENCRYPTO_utils installed?
Can you check if cmake finds ENCRYPTO_utils, i.e., if it prints ""Found ENCRYPTO_utils".
What's the content of the extern folder? If there is an ENCRYPTO_utils folder in there - which versionis it?

@WeiViming
Copy link

@dd23 Sorry, I don't know how to see the version of ENCRYPTO_utils. But it prints "Found ENCRYPTO_utils". It is ok. The problem is wrong about "relic" library.. :'< Maybe I should find the reason about "relic". Thank you for your kindness! :)

@WeiViming
Copy link

I have solved this problem. The key point is remove the ENCRYPTO_utils from your system, and rebuild this project again. We will get this error if we have install the ENCRYPTO_utils by ourselves.

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

4 participants