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_constants.h is not found #197

Open
qyuan97 opened this issue Dec 10, 2022 · 3 comments
Open

cmake_constants.h is not found #197

qyuan97 opened this issue Dec 10, 2022 · 3 comments

Comments

@qyuan97
Copy link

qyuan97 commented Dec 10, 2022

When i build my own application used target_link_libraries(my_application ABY::aby) and make, the program outputs error cmake_constants.h is not found. Is there some solution with my problem? Looking forward to your reply!

@Country-If
Copy link

Have you solved this problem? I have the same problem. Looking forward to your reply!

@Country-If
Copy link

I found a solution that might be helpful:

  1. copy the cmake_constants.h file to where the constants.h file is saved. The cmake_constraints.h is saved in ABY/build/extern/ENCRYPTO_utils/include/ and the constants.h file, for me, is saved in /usr/local/include/ENCRYPTO_utils/.
  2. Modify the file constrains.h: #include <cmake_constrains.h> -> #include "cmake_constrains.h"

I hope the solution above may help. If you have any better solutions, pls reply. Really appreciate it.

Refer to: https://blog.csdn.net/weixin_45993094/article/details/126417101

@maruker
Copy link

maruker commented Apr 28, 2023

There is a file called extern/ENCRYPTO_utils/src/ENCRYPTO_utils/cmake_constants.h.in, which cmake processes to produce ABY/build/extern/ENCRYPTO_utils/include/cmake_constants.h.

If you are using ABY to build your own application, I suspect you haven't executed:
mkdir build && cd build && cmake ..
Of course depending on what build tool you are using there might be a better solution than calling cmake manually.

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

3 participants