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

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Fri, 15 Jul 2011 19:55:52 -0500

When I have my Mac set up I can look into compiler options. I'm not sure 
yet whether its 32 or 64 bits.

John

On Fri, Jul 15, 2011 at 04:55:14PM -0700, Alex Jurgensen wrote:
> Hi John,
> 
> The only issue leftt is to figure outt how to tell the configure script that 
> I want a 32-bit binary produced.
> 
> I am running on a 64-bit system , but I need 32-bit applications.
> 
> Can this be done. Some light Googgling isn't helping.
> 
> Regards,
> Alex,
> 
> 
> On 2011-07-15, at 3:20 PM, John J. Boyer wrote:
> 
> > What jdk do you have? I am using openjdk on both Windows and Linux. 
> > There is a version for the Mac. Do you have a full jdk or just a JRE? 
> > 
> > John
> > 
> > On Fri, Jul 15, 2011 at 02:13:10PM -0700, Alex Jurgensen wrote:
> >> Hi John,
> >> 
> >> No such "Include" folder exists inside my JDK.
> >> 
> >> Do you have any ideas?
> >> 
> >> Regards,
> >> Alex,
> >> 
> >> 
> >> On 2011-07-14, at 7:48 PM, John J. Boyer wrote:
> >> 
> >>> Alex,
> >>> 
> >>> Actually, all you need are the header files jni.h and jni_md.h jni.h is 
> >>> universal. jni_md.h (machine dependent) is for a particular platform. If 
> >>> you get them from an older version of gcj that will work with Intel 
> >>> Macs, you can just put them where gcc will find them. I don't think you 
> >>> need a recent gcj. If you find any that wil work with intel Macs and 
> >>> install it, gcc should be able to find the headers. That is what happens 
> >>> on Linux. 
> >>> 
> >>> Now if I had  Mac laptop ...
> >>> 
> >>> John
> >>> 
> >>> On Thu, Jul 14, 2011 at 06:14:10PM -0700, 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
> >>>>> 
> >>>>> 
> >>>> 
> >>> 
> >>> -- 
> >>> 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: