Building examples #3789
-
Hi, I would like to selectively choose which examples to compile. In particular, I would like to build only Kyber. But this runs into problems examples will try to build all the examples in the /src/examples folder. What should I do? I've tried renaming the example source files too, but that created other warnings with dependencies in the makefile. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I am sorry you experience issues with the build system. The examples are currently all-or-nothing, you can not selectively enable or disable single or multiple examples. Some require boost, so all currently require boost, as you noted that in #3790. With #3787 merged yesterday, What you could do instead, is do your minimized kyber-only build, and then compile the kyber example on your own, for example: $ ./configure.py --enable-modules=kyber ... [all your additional options]
$ g++ kyber.cpp -o kyber -L. -lbotan-3 -Ibuild/include -std=c++20 |
Beta Was this translation helpful? Give feedback.
I am sorry you experience issues with the build system. The examples are currently all-or-nothing, you can not selectively enable or disable single or multiple examples. Some require boost, so all currently require boost, as you noted that in #3790. With #3787 merged yesterday,
configure.py
checks that now and fails if boost isn't enabled with the examples.What you could do instead, is do your minimized kyber-only build, and then compile the kyber example on your own, for example: