[brailleblaster] Re: GCJ Issues, was Re: Configure Issues With LibLouisUTDML

  • From: Alex Jurgensen <asquared21@xxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Thu, 14 Jul 2011 19:35:22 -0700

Hi,

I am just having trouble compiling liblouisutdml.

The reason I mentioned GCJ is that John suggested that I install GCJ and use it 
to compile liblouisutdml.

If I can avoid GCJ to compile liblouisutdml, please let me know.

Regards,
Alex,


On 2011-07-14, at 7:18 PM, Michael Whapples wrote:

> I would imagine that the intent would be to have BrailleBlaster working on 
> the standard JRE, then there should be no need for GCJ (personally I think we 
> would do well keeping clear of GCJ as I understand it doesn't really follow 
> any single version of the Java language). If my hopes are right, then the 
> header files would be in the JDK. What header files does this depend on?
> 
> Michael Whapples
> 
> On 07/15/11 02:14, Alex Jurgensen wrote:
>> Hi John and All,
>> 
>> I am having trouble finding a recent version of GCJ that will work on the 
>> Mac.
>> 
>> Is there no other way to compile liblouisutdml without GCJ?
>> 
>> Any help is greatly appreciated.
>> 
>> Regards,
>> Alex,
>> 
>> 
>> On 2011-07-14, at 4:08 AM, John J. Boyer wrote:
>> 
>>> gcj is the flavor of gcc which compiles Java into machine language. It
>>> contains the header files needed.
>>> 
>>> Note that liblouisutdml is all lowercase. So is liblouis. BrailleBlaster
>>> is a single word.
>>> 
>>> Do not use any method in the Java bindings except file2brl. The others
>>> all need work.
>>> 
>>> My Linux box also has a graphical interface, so I will start activating
>>> some of the items on the BrailleBlaster menus.
>>> 
>>> John
>>> 
>>> On Wed, Jul 13, 2011 at 10:38:54PM -0700, Alex Jurgensen wrote:
>>>> Hi John,
>>>> 
>>>> What is the purpose of installing GCJ on the Mac, when it is not listed as 
>>>> a dependency of LibLouisUTDML?
>>>> 
>>>> Regards,
>>>> Alex,
>>>> 
>>>> 
>>>> On 2011-07-13, at 10:16 PM, John J. Boyer wrote:
>>>> 
>>>>> Alex,
>>>>> 
>>>>> Try installing gcj. also, to get a concise listing of make errors type
>>>>> 
>>>>> make 2>errors
>>>>> 
>>>>> This will put any genuine error messages in the file called errors,
>>>>> which you can then look at with a text editor.
>>>>> 
>>>>> John
>>>>> 
>>>>> On Wed, Jul 13, 2011 at 08:42:56PM -0700, Alex Jurgensen wrote:
>>>>>> Hi John,
>>>>>> 
>>>>>> That seemed to do it, but I get the following errors when exicuting 
>>>>>> "Make".
>>>>>> 
>>>>>> 
>>>>>> Making all in gnulib
>>>>>> make  all-recursive
>>>>>> make[3]: Nothing to be done for `all-am'.
>>>>>> Making all in doc
>>>>>> make[1]: Nothing to be done for `all'.
>>>>>> Making all in lbu_files
>>>>>> make[1]: Nothing to be done for `all'.
>>>>>> Making all in liblouisutdml
>>>>>> make  all-am
>>>>>> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. 
>>>>>> -I. -I. -I.. -DLBU_PATH=\"/usr/local/share/liblouisutdml/lbu_files/\" 
>>>>>> -DLIBLOUIS_TABLES_PATH=\"/usr/local/share/liblouis/tables/\"   
>>>>>> -I/usr/local/include/liblouis -I/usr/include/libxml2   -g -O2 -MT 
>>>>>> liblouisutdml_la-Jliblouisutdml.lo -MD -MP -MF 
>>>>>> ".deps/liblouisutdml_la-Jliblouisutdml.Tpo" -c -o 
>>>>>> liblouisutdml_la-Jliblouisutdml.lo `test -f '../java/Jliblouisutdml.c' 
>>>>>> || echo './'`../java/Jliblouisutdml.c; \
>>>>>>  then mv -f ".deps/liblouisutdml_la-Jliblouisutdml.Tpo" 
>>>>>> ".deps/liblouisutdml_la-Jliblouisutdml.Plo"; else rm -f 
>>>>>> ".deps/liblouisutdml_la-Jliblouisutdml.Tpo"; exit 1; fi
>>>>>> gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. 
>>>>>> -DLBU_PATH=\"/usr/local/share/liblouisutdml/lbu_files/\" 
>>>>>> -DLIBLOUIS_TABLES_PATH=\"/usr/local/share/liblouis/tables/\" 
>>>>>> -I/usr/local/include/liblouis -I/usr/include/libxml2 -g -O2 -MT 
>>>>>> liblouisutdml_la-Jliblouisutdml.lo -MD -MP -MF 
>>>>>> .deps/liblouisutdml_la-Jliblouisutdml.Tpo -c ../java/Jliblouisutdml.c  
>>>>>> -fno-common -DPIC -o .libs/liblouisutdml_la-Jliblouisutdml.o
>>>>>> In file included from ../java/Jliblouisutdml.c:29:
>>>>>> ../java/Jliblouisutdml.h:2:17: error: jni.h: No such file or directory
>>>>>> In file included from ../java/Jliblouisutdml.c:29:
>>>>>> ../java/Jliblouisutdml.h:35: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jstring'
>>>>>> ../java/Jliblouisutdml.h:43: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:51: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:59: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:67: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:75: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:83: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:91: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:99: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:107: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:115: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'void'
>>>>>> ../java/Jliblouisutdml.h:123: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jint'
>>>>>> ../java/Jliblouisutdml.h:131: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.h:139: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'void'
>>>>>> ../java/Jliblouisutdml.h:147: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'void'
>>>>>> ../java/Jliblouisutdml.c:37: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jstring'
>>>>>> ../java/Jliblouisutdml.c:48: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:112: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:179: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:224: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:278: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:332: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:373: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:414: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:440: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> ../java/Jliblouisutdml.c:475: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'void'
>>>>>> ../java/Jliblouisutdml.c:493: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jint'
>>>>>> ../java/Jliblouisutdml.c:504: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'void'
>>>>>> ../java/Jliblouisutdml.c:522: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'void'
>>>>>> ../java/Jliblouisutdml.c:536: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before '*' token
>>>>>> ../java/Jliblouisutdml.c:560: error: expected '=', ',', ';', 'asm' or 
>>>>>> '__attribute__' before 'jboolean'
>>>>>> make[2]: *** [liblouisutdml_la-Jliblouisutdml.lo] Error 1
>>>>>> make[1]: *** [all] Error 2
>>>>>> make: *** [all-recursive] Error 1
>>>>>> 
>>>>>> 
>>>>>> Do you have any idea why this is happening?
>>>>>> 
>>>>>> Regards,
>>>>>> Alex,
>>>>>> 
>>>>>> 
>>>>>> On 2011-07-13, at 2:09 PM, John J. Boyer wrote:
>>>>>> 
>>>>>>> Alex,
>>>>>>> 
>>>>>>> I think your problem is caused by autoconf generating a bad configure
>>>>>>> script. I encountered this in a different context recently. It occurred
>>>>>>> because configure.ac contained dos line endings. I changed these to
>>>>>>> Unix. That solved the problem. Maybe autoconf on the Mac is looking for
>>>>>>> Mac line endings. You could try fixing that. A better bet might be to
>>>>>>> download the tarball for liblouisutdml from http://www.abilitiessoft.com
>>>>>>> That way you won't have to run autogen.sh
>>>>>>> 
>>>>>>> This whold business of different line endings is pretty silly. The
>>>>>>> autotools should work whatever the line endings are. But we have to put
>>>>>>> up with it for now.
>>>>>>> 
>>>>>>> John
>>>>>>> 
>>>>>>> On Wed, Jul 13, 2011 at 07:52:53AM -0700, Alex Jurgensen wrote:
>>>>>>>> Hi All,
>>>>>>>> 
>>>>>>>> I am trying to configure  LibLouisUTDML, but I get the following error.
>>>>>>>> 
>>>>>>>> checking for pkg-config... /usr/local/bin/pkg-config
>>>>>>>> ./configure: line 14441: syntax error near unexpected token 
>>>>>>>> `BASE_DEPENDENCIES,'
>>>>>>>> ./configure: line 14441: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, 
>>>>>>>> liblouis, libxml-2.0)'
>>>>>>>> 
>>>>>>>> Does anyone have any idea why this may be occuring?
>>>>>>>> 
>>>>>>>> Any help is appreicated.
>>>>>>>> 
>>>>>>>> Regards,
>>>>>>>> Alex,
>>>>>>>> 
>>>>>>>> 
>>>>>>> -- 
>>>>>>> John J. Boyer; President, Chief Software Developer
>>>>>>> Abilitiessoft, Inc.
>>>>>>> http://www.abilitiessoft.com
>>>>>>> Madison, Wisconsin USA
>>>>>>> Developing software for people with disabilities
>>>>>>> 
>>>>>>> 
>>>>> -- 
>>>>> John J. Boyer; President, Chief Software Developer
>>>>> Abilitiessoft, Inc.
>>>>> http://www.abilitiessoft.com
>>>>> Madison, Wisconsin USA
>>>>> Developing software for people with disabilities
>>>>> 
>>>>> 
>>> -- 
>>> John J. Boyer; President, Chief Software Developer
>>> Abilitiessoft, Inc.
>>> http://www.abilitiessoft.com
>>> Madison, Wisconsin USA
>>> Developing software for people with disabilities
>>> 
>>> 
>> 
> 
> 


Other related posts: