<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Sep 19, 2018 at 6:22 AM Marek Pecha <<a href="mailto:marek.pecha@vsb.cz">marek.pecha@vsb.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I work on clustering framework uses PETSc. Basically, I would like to use this framework for segmentation images. So, I had idea - implement viewer for loading images (JPEG,TIFF, etc) into PETSc. For this purpose, I would like to add OpenCV dependency to PETSc configure. But I have no idea, how can I do it. Can you help me?<br></blockquote><div><br></div><div>Yes. I recommend the following:</div><div><br></div><div> 1) Determine how OpenCV builds, namely GNU or CMake. There is a lot of documentation of these classes, for example</div><div><br></div><div> <a href="https://bitbucket.org/petsc/petsc/src/b55713d40e38bd17e2dd98e82adf6c653b648f33/config/BuildSystem/config/package.py#lines-960">https://bitbucket.org/petsc/petsc/src/b55713d40e38bd17e2dd98e82adf6c653b648f33/config/BuildSystem/config/package.py#lines-960</a></div><div><br></div><div> 2) Find a package with similar checks in</div><div><br></div><div> $PETSC_DIR/config/BuildSystem/config/packages</div><div><br></div><div> 3) Copy that module to opencv.py, make your changes, and leave it in the directory</div><div><br></div><div> 4) Configure should automatically pick it up</div><div><br></div><div> 5) Once everything works, make a PR for that and we will incorporate it</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thank you<br>
Marek</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div></div>