Page 1 of 1

Building BF-CPP

PostPosted: Mon Jan 13, 2014 3:21 pm
by i.munro
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

Re: Building BF-CPP

PostPosted: Mon Jan 13, 2014 3:51 pm
by mlinkert
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

Re: Building BF-CPP

PostPosted: Mon Jan 13, 2014 4:16 pm
by i.munro
Thanks Melissa