We're Hiring!

Building BF-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.

Building BF-CPP

Postby i.munro » Mon Jan 13, 2014 3:21 pm

Posted on behalf of Doug Kelly

Hi All,

I’m having problems building the C++ bindings in Windows (Windows 7, 64 bit machine). The process fails when using maven to generate the proxies, with error:

[ERROR] E:\bioformats src\components\scifio\target\generated-sources\loci\format
s\meta\AggregateMetadata.java:[602,0] error: illegal character: \92

which is associated with the presence of “\” at various lines in the automatically built *.java files in “..\generated-sources\loci\formats\meta”.

I’ve tried playing with the encoding maven uses, and tried reverting to Java 1.6 and maven 3.0.5, to no avail.

Does anybody have any ideas as to where I’m going wrong?

Cheers,

Doug.
-------------------

Douglas Kelly
Photonics Group
Imperial College London
i.munro
 
Posts: 50
Joined: Thu Apr 25, 2013 1:01 pm

Re: Building BF-CPP

Postby mlinkert » Mon Jan 13, 2014 3:51 pm

Hi Ian/Doug,

This is usually a problem with Windows changing the line endings upon 'git clone'. If you configure Git to respect the repository's line endings:

Code: Select all
git config --global --add core.autocrlf input


and then either remove and reclone the repository or re-normalize:

Code: Select all
git rm --cached -r .
git reset --hard


the build should then pass. This effectively works around this bug in Genshi (which is what we use to automatically generate some source code):

http://genshi.edgewall.org/ticket/569

-Melissa
User avatar
mlinkert
Team Member
 
Posts: 353
Joined: Fri May 29, 2009 2:12 pm
Location: Southwest Wisconsin

Re: Building BF-CPP

Postby i.munro » Mon Jan 13, 2014 4:16 pm

Thanks Melissa
i.munro
 
Posts: 50
Joined: Thu Apr 25, 2013 1:01 pm


Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 0 guests