We're Hiring!

Building cpp

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Re: Building cpp

Postby rleigh » Wed Mar 26, 2014 3:01 pm

Dear Javier,

Did any of the SCons log files give any indication as to what the cause of the failure was? These are typically located in components\tools\OmeroCpp. If the compiler failed for any reason, e.g. missing libraries or headers etc., it should be recorded here.

Had the omero_client.dll been built by this point?


Regards,
Roger
User avatar
rleigh
 
Posts: 217
Joined: Tue Mar 13, 2012 11:45 am

Re: Building cpp

Postby colmeirin » Thu Mar 27, 2014 4:48 pm

Hi Roger,

Maybe I didn't explain myself.Here is the case:

I've allready builded the omero-cpp tools via: build.py build-cpp and everything went ok.

Now I'm triying to execute the examples you offer via openmicroscopy/examples and that is the error I'm getting when I try to compile it
colmeirin
 
Posts: 16
Joined: Tue Mar 11, 2014 6:16 pm

Re: Building cpp

Postby rleigh » Fri Mar 28, 2014 11:41 pm

While I'm not too familiar with the Visual Studio side of things I've tracked down the specific string to being generated with the embedded scons-local-2.1.0/SCons/Tool/msvs.py. It's possible this is due to a bug in the scons version we provide, or there's some problem with the paths that prevent it being re-run here. It's a shame the error message isn't a bit more informative. If you run the command by hand from a Visual Studio command prompt, do you get any more detail? I.e. just run this bit:

Code: Select all
"C:\Python26\python.exe" -c "from os.path import join; import sys; sys.path = [ join(sys.prefix, 'Lib', 'site-packages', 'scons-2.1.0'), join(sys.prefix, 'scons-2.1.0'), join(sys.prefix, 'Lib', 'site-packages', 'scons'), join(sys.prefix, 'scons') ] + sys.path; import SCons.Script; SCons.Script.main()" -C "C:\openmicroscopy\components\tools\OmeroCpp" -f SConstruct "C:\openmicroscopy\components\tools\OmeroCpp\omero_client.dll"


I noticed a couple of other defects in the examples build script, and I opened a ticket for these here: http://trac.openmicroscopy.org.uk/ome/ticket/12141 But these are not related to your issue, and probably won't have any effect when building on Windows.


Regards,
Roger
User avatar
rleigh
 
Posts: 217
Joined: Tue Mar 13, 2012 11:45 am

Previous

Return to Developer Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest