Closed yogsothoth closed 2 years ago
I have a few questions:
-lpng
to the compilation command, only -ljpeg
would show. I ended up forcing it on the command line for the sake of checking the build with linkflags=-lpng
. Could someone point me to some docs or examples to help me with this?Hi, first thanks for your contribution, it's helpful.
Should we update the documentation to reference the missing examples?
I don't think we should care about describing the examples in the documentation.
In fact, I'd clear the examples from the documentation.
Instead, examples should be described in comment block at the top of .cpp
files (i.e. what an example is about, what feature it presents).
There also should be README.md
files which describe any particularities about the examples (i.e. build requirements, specific data required, etc.).
Then, the documentation should only link to the documentation folder (i.e. on GitHub).
Should we leave only the compilation targets (not the exe) in the final Jamfile?
I'm not sure I understand.
We certainly want to let users to build (compile+link) examples using the b2
and the Jamfile
-s we provide.
I've had issues with linking libpng that I'm not sure how to fix.
You'd have to be more specific what you are doing, what is the output, errors, etc. Feel free to open new issue for that problem.
Here is (new home of) B2 with its documentation: https://www.bfgroup.xyz/b2/manual/main/index.html
I don't think we should care about describing the examples in the documentation. In fact, I'd clear the examples from the documentation. Instead, examples should be described in comment block at the top of
.cpp
files (i.e. what an example is about, what feature it presents). There also should beREADME.md
files which describe any particularities about the examples (i.e. build requirements, specific data required, etc.). Then, the documentation should only link to the documentation folder (i.e. on GitHub).
Alright, I will include that in the tasklist then.
I'm not sure I understand. We certainly want to let users to build (compile+link) examples using the
b2
and theJamfile
-s we provide.
Apologies, I wasn't being super clear: should the default target in the top Jamfile also include producing the executable files for the examples now, or do we leave it as it is today (i.e. build-project test
)?
I've had issues with linking libpng that I'm not sure how to fix.
You'd have to be more specific what you are doing, what is the output, errors, etc. Feel free to open new issue for that problem.
Indeed, I just didn't want to turn this thread into a support ticket. I will open a separate ticket.
Here is (new home of) B2 with its documentation: https://www.bfgroup.xyz/b2/manual/main/index.html
I read it a few times and couldn't find the section that would help me with my problem so far... I'm clearly missing something.
Regarding the issue with linking: it was a problem with the project-cache.jam not being updated. Deleting this file and rebuilding fixed it.
Yes, the GIL's top-level Jamfile can also build the examples.
AFAICT, all Boost's CI services do b2 libs/<name>/test
so they won't spend any (unnecessary) time on building examples.
I just updated the PR with some explanations for the examples. I also remarked that some of them don't include any mention of any license. Shall I take the opportunity to ensure they all do?
Good catch, yes, all source files should have the licence/copyright header comment, like this:
Thank you for your remarks!
I've updated the attributions and the Jamfile indent. I have prepared Readme files with a synopsis, and some indications of what the examples require, in a different commit; I will update the PR.
I noticed example/convolve2d.cpp was a bit off compared to the other examples: one output file had a png
extension but a jpeg_tag{}
, it ended with a cin()
, contained redundant, commented out code, etc.
I cleaned it up.
This is the last of the changes I can see we can bring here: if you find all is well, then I think we can add the target example
to the root Jamfile.
Thank you for your time!
I just added the target example
to the root Jamfile; marking this as Ready for review.
Thank you for your contribution
Description
Add all examples to example/Jamfile Add necessary 'using' for libpng Bring small fixes to examples' source files (remove unused variables)
Environment:
References
See #436
Tasklist