[brailleblaster] Re: compiling a windows version of brailleblaster under linux

  • From: Michael Whapples <mwhapples@xxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Mon, 07 Apr 2014 12:33:51 +0100

Try compiling now, I have made a commit to the repository which should fix this.


The reason is that obviously the system default encoding on your linux systems is not the same as on the other systems people are using.

Michael Whapples
On 05/04/2014 21:43, Simon Eigeldinger wrote:
hi michael,


i actually just wanted to show that it seems not to compile on 2 different versions of java.

what i wonder why it doesn't compile over here but on other boxes it seems to do fine?

greetings,
simon


Am 05.04.2014 19:37, schrieb Michael Whapples:
As I said in my other message, you probably can even compile the native
code on Linux by cross compiling with mingw32, but getting that set up
is something I am not familiar with. If there is mingw32 for raspberrypi
then you could even do compiling native code there.

As for the compilation errors, I think you may need to go into the
source files mentioned in the errors and change the character to use the
appropriate unicode escape sequence for the problematic character. If
you are not certain on what to do then I will get to this probably on
Monday.

Michael Whapples
On 05/04/2014 09:31, Simon Eigeldinger wrote:
hi Michael, Hi John,

NSIS is also available for linux.
i guess because of the case of many daily build servers running linux
so installers could be created.

i might try something different.
i guess i might try to compile brailleblaster on my raspberry pi. *smile*
though its a arm v6 processor it should get me the platform
independent code.
it also runs debian 7 and a real oracle java 7 jdk.

greetings,
simon


Am 05.04.2014 09:53, schrieb Michael Whapples:
I think I understand the errors you got. It looks like a source code
file encoding issue, basically javac expects one encoding but may be
someone used another encoding.

Normally it is easier for the source code file to be written in ASCII
using the \uxxxx notation for unicode characters in strings, admittedly
longer and may be a bit less readable but much safer for software
compatibility. You may wish to find those lines mentioned in the error
message and substitute the unicode character with the escape sequence.
In the first error reported by ant it means changing the content of the
first string to "\ufffd".

I don't think the fact you copied the DLLs caused this issue, actually
for compilation it should not need to access any native code.

You should be able to create full windows builds using Linux, including
binaries, if you use mingw32, but for that you are on your own as I
don't think anyone else has done that yet.

I am not sure whether you will be able to build an installer though on
Linux, is there a Linux version of NullSoft Installer which can build
for windows?

Michael Whapples
On 04/04/2014 23:55, Simon Eigeldinger wrote:
hi all,

just thought i might compile a brailleblaster version myself.
i did as the build.txt told me.
though i cheated a bit and copied the native and lib folders over to
the dist folder on my linux box and didn't compile the dlls by hand.


then i went into the base dir of the bb source code and executed:

$ ant

then i got the following:

------------------------


Buildfile: /root/bb/build.xml

init:

compile:
    [javac] Compiling 120 source files to /root/bb/classes
    [javac]
/root/bb/src/main/org/brailleblaster/perspectives/braille/spellcheck
/Tokenizer.java:12: unmappable character for encoding UTF8
    [javac]             this.text = text.replaceAll("�", "'");
    [javac]                                          ^
    [javac]
/root/bb/src/main/org/brailleblaster/perspectives/braille/spellcheck
/Tokenizer.java:19: unmappable character for encoding UTF8
    [javac]             this.text = text.replaceAll("�", "'");
    [javac]                                          ^
    [javac]
/root/bb/src/main/org/brailleblaster/perspectives/braille/spellcheck
/Tokenizer.java:41: unmappable character for encoding UTF8
    [javac]             this.text = text.replaceAll("�", "'");
    [javac]                                          ^
    [javac] 3 errors

BUILD FAILED
/root/bb/build.xml:24: Compile failed; see the compiler error output
for details
.

Total time: 2 seconds



------------------------

i have openJDK 6 over here and run debian squeeze (6).


maybe i got hit into the face for not manually building the c/c++ libs?

greetings,
simon













Other related posts: