Hello, thank you a lot. Yesterday, I finished first version of OpenCV build script. Barry, thanks for you remark, however OpenCV should be compiled without dependency on OpenCL as well as CUDA etc. First version of OpenCV viewer, I am going to implement without OpenCL dependency. I’ve decided to add OpenCL and CUDA support in next version.
Thank you for your help Marek > On 19 Sep 2018, at 19:48, Smith, Barry F. <[email protected]> wrote: > > > Note that since OpenCV has a dependency on OpenCL you will need to add that > dependency to the opencv.py that you create. Read the docs in package.py or > look at other packages/*.py for how to put in dependencies on other packages. > > > Barry > > > > >> On Sep 19, 2018, at 5:36 AM, Matthew Knepley <[email protected]> wrote: >> >> On Wed, Sep 19, 2018 at 6:22 AM Marek Pecha <[email protected]> wrote: >> Hello, >> >> 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? >> >> Yes. I recommend the following: >> >> 1) Determine how OpenCV builds, namely GNU or CMake. There is a lot of >> documentation of these classes, for example >> >> >> https://bitbucket.org/petsc/petsc/src/b55713d40e38bd17e2dd98e82adf6c653b648f33/config/BuildSystem/config/package.py#lines-960 >> >> 2) Find a package with similar checks in >> >> $PETSC_DIR/config/BuildSystem/config/packages >> >> 3) Copy that module to opencv.py, make your changes, and leave it in the >> directory >> >> 4) Configure should automatically pick it up >> >> 5) Once everything works, make a PR for that and we will incorporate it >> >> Thanks, >> >> Matt >> >> Thank you >> Marek >> >> >> -- >> What most experimenters take for granted before they begin their experiments >> is infinitely more interesting than any results to which their experiments >> lead. >> -- Norbert Wiener >> >> https://www.cse.buffalo.edu/~knepley/ >
