[ome-devel] Building OmeroCpp

James Perry jamesp at epcc.ed.ac.uk
Mon Sep 29 14:13:27 BST 2008


Hi Josh,

> If you've followed what's on both:
>
>   https://trac.openmicroscopy.org.uk/omero/wiki/BlitzBuild
>   https://trac.openmicroscopy.org.uk/omero/wiki/OmeroContributing
>
> then you can get started via the top level ant build:
>
>   cd OMERO_HOME
>   ant build-cpp

Many thanks. I got the C++ libraries to build successfully.

I'm now trying to compile the simple example from the OmeroCpp page on  
TRAC but running into a problem. I had to comment out the  
"omero.closeOnDestroy();" line as the compiler complained about it,  
and reverse the order of the common and client libraries in the  
makefile to get rid of hundreds of linker errors due to client  
depending on lots of things from common. I'm still getting one linker  
error:

g++ -o omerotest omerotest.o -L/home/digs/trunk/dist/lib  
-L/home/digs/Ice/lib -lIce -lIceUtil -lGlacier2 -lOMERO_client  
-lOMERO_common -lstdc++
/home/digs/trunk/dist/lib/libOMERO_client.a(ObjectFactoryRegistrar.o):  
In function `omero::ObjectFactory::create(std::basic_string<char,  
std::char_traits<char>, std::allocator<char> >  
const&)':ObjectFactoryRegistrar.cpp:(.text+0xd16f): undefined  
reference to `omero::model::CommentAnnotationI::CommentAnnotationI()'
collect2: ld returned 1 exit status
make: *** [omerotest] Error 1

Any ideas what might be causing it?

Thanks,
James


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




More information about the ome-devel mailing list