[ome-users] C++ bindings

Josh Moore josh at glencoesoftware.com
Tue Oct 2 08:43:52 BST 2012


On Oct 1, 2012, at 10:38 PM, Guy Blanchard wrote:

> Hi, 

Hi Guy,

> I've been trying to compile the C++ bindings, following your instructions on https://github.com/openmicroscopy/bioformats/blob/develop/components/scifio/cppwrap/readme.txt
> and on the MacOS related page.

I reproduced the same (or a very similar) error on Mac OSX 10.6 installing cmake and boost from Homebrew. By upping the cppwrap version number:

$ git diff
diff --git a/components/scifio/pom.xml b/components/scifio/pom.xml
index 7f0ca3d..2e3c8a5 100644
--- a/components/scifio/pom.xml
+++ b/components/scifio/pom.xml
@@ -104,7 +104,7 @@
       <plugin>
         <groupId>loci.maven.plugins</groupId>
         <artifactId>cppwrap-maven-plugin</artifactId>
-        <version>1.1.0</version>
+        <version>1.1.2-SNAPSHOT</version>
         <configuration>
           <headerFile>cppwrap/header.txt</headerFile>
           <conflictsFile>cppwrap/conflicts.txt</conflictsFile>

I was able to continue compiling. I've filed a ticket to have this or a similar change applied to the develop branch (https://trac.openmicroscopy.org.uk/ome/ticket/9705)

Cheers,
~Josh

> I understand from some web discussions that it could be that gcc is being used instead of g++ but the cmake that you generate with your commands seems to know both these compilers and I don't know enough to chase down the error further. 
> Wondered if you'd been asked this before or have an obvious solution.
> 
> I'm on Mac OS 10.7.4 (Lion) with x86_64 architecture:
> Typing 'uname -a' gives:
> Darwin mallis.home 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
> 
> Thanks for your help,
> Guy
> 
> 
> ====================
> Dr Guy Blanchard
> Dept Physiology, Development and Neuroscience
> Downing Site
> Cambridge CB2 3DY
> 
> email: gb288 at cam.ac.uk
> m: 07930 988145
> 




More information about the ome-users mailing list