[ome-users] bf-cpp find for cmake projects

Curtis Rueden ctrueden at wisc.edu
Thu Jul 12 20:44:14 BST 2012


Hi Matthias,


> since I have some problems with the itk bio-formats reader I decided to
> compile the Bio-Formats C++ bindings to read in the huge ome.tif files by
> myself. Maybe I will get around the problem of java trying to load the
> whole file into a memory array (using the itk BioFormatIO).


So your plan is to load the data using calls through BF-CPP, then pass the
resultant array to a new ITK image yourself? This could certainly work, but
is a rather roundabout way of doing things. We were hoping such workarounds
would be unnecessary with the BF-ITK plugin working properly. It is more
involved to compile BF-CPP (which needs to link to Boost Thread and the
Java JVM) than it is to build BF-ITK (which has no compile-time
dependencies).

I will reply to your BF-ITK question in another thread, so hopefully we can
get that sorted, and then you won't need to use BF-CPP for this.


> Now that I completed the compilation I am wondering if there is already a
> cmake find file for cmake project inclusion out there. I think it would not
> be that difficult to write one, but I'm not sure which files I need to
> include, since for example in the dist folder, there are a lot of jar files.


Currently there is no CMake Find file. I am not an expert, but my
understanding is that typically, a CMake Find script looks in various
"install" locations across various platforms to find the necessary
libraries. However, we do not provide a working "install" target for BF-CPP
that puts the binaries into any specific location. So I am not sure how
such a Find script would work in this case. Any ideas or suggestions would
be welcome!

Regards,
Curtis


On Thu, Jul 12, 2012 at 11:22 AM, Matthias Noll <
matthias.noll at igd.fraunhofer.de> wrote:

> Dear all,
>
> since I have some problems with the itk bio-formats reader I decided to
> compile the Bio-Formats C++ bindings to read in the huge ome.tif files by
> myself. Maybe I will get around the problem of java trying to load the
> whole file into a memory array (using the itk BioFormatIO).
>
> Now that I completed the compilation I am wondering if there is already a
> cmake find file for cmake project inclusion out there. I think it would not
> be that difficult to write one, but I'm not sure which files I need to
> include, since for example in the dist folder, there are a lot of jar
> files. And I did not yet use a c++ library that is depending on jar's. If
> somebody already has a cmake find that I could use, I would be really glad
> to have it. If not, maybe someone can tell me what files are necessary to
> include in the project and what to do with the jar's and I will write a
> find file and post it here after it is finished.
>
> Hoping to receive some information on this.
>
> With best regards,
> Matthias
> ______________________________**_________________
> ome-users mailing list
> ome-users at lists.**openmicroscopy.org.uk<ome-users at lists.openmicroscopy.org.uk>
> http://lists.openmicroscopy.**org.uk/mailman/listinfo/ome-**users<http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20120712/e0f42e96/attachment.html>


More information about the ome-users mailing list