[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rxtx
Subject:    Re: Installing Error
From:       Trent Jarvi <taj () hex ! linuxgrrls ! org>
Date:       2002-07-16 4:40:57
[Download RAW message or body]


On Mon, 15 Jul 2002, Gustavo Gonzalez Giron wrote:

> 
> Hello Trent.
> The error is getting me mad :(   The solution doesn't work...
> I will give up soon and even without test any example...
> 
> Yesterday i follow the same installation steps with Suse in
> the same machine. The result was the same.
> Today i will try with red hat :P
> 
> The error message is the same.  Please, check the files that
> comes within this email (log.txt and log2.txt)... i catch all the
> configure messages and put them in these files. The first is
> the output without options. The second is with:
> "--target=i386-pc-linux --host=i386-pc-linux "
> 
> My "Makefile" is in too :)
> 
> I have no started to use this package and i am already tired :(
> This is unfair :P
> I need to build a graphical interface to turn on/off 8 ligths on a
> board through the parallel port and as you know... i couldn't
> begin :(
> I expect send you the map of the board... i will like to know your
> ideas about this project :)
> 
> Any way, thank you for your help.
> 
> 

Hi Gustavo:

I'll set you up with a working environment off the list.  I'm not sure why
the auto tools are not setting target_alias.  Did you try the configure
options (--target --host)?



> > 
> > Hi Gustavo:
> > 
> > The problem appears to be that configure (autoconf package) was not able
> > to determine the 'target_alias.'  With some work you can compile binaries
> > for many OS's/archs from one host.  As an example, I compile rxtx for
> > win32 on Linux now.
> > 
> > Here is the line in question as suspected:
> > 
> > /usr/local/jdk/bin/javah
> > 	-classpath
> .:/usr/local/src/paralelo/rxtx-1.4-15:/usr/local/src/paralelo/rxtx-1.4-15/src:/usr/local/jdk/jre/lib/ext/comm.jar
> 
> > 	-d @target_alias@ -jni
> > 	`(for i in Configure LPRPort RXTXCommDriver RXTXPort RXTXVersion;do \
> > 		if grep > /dev/null native.*\( ./src/$i.java; then \
> > 			echo gnu.io.$i; \
> > fi; \
> > done)`
> > 
> > The problem is -d @target_alias@
> > 
> > The @blah@ has a different purpose than the @ we removed to display the
> > command executed.  When configure says "creating Makefile"  It is
> > replacing @target_alias@ with the target alias of the machine detected
> > unless its being told to do otherwise.
> > 
> > I'm not sure why this failed but you can force configure to know by doing
> > the following.
> > 
> > 	../configure  --target=i386-pc-linux --host=i386-pc-linux [any
> > other options you need]
> > 
> > This is assuming you are trying to build x86 linux binaries.
> > 
> > > 
> > > 
> > > 
> > > On Thursday 11 July 2002 18:54, you wrote:
> > > > On Thu, 11 Jul 2002, Gustavo Gonzalez Giron wrote:
> > > > 
> > > > > 
> > > > > Hi... i am trying to install the RxTx on my Linux (Slackware 8.0,
> jdk
> > > 1.4,
> > > > > sun commapi) ... but i get this message when i run "make".
> > > > > Any one can help me?
> > > > > 
> > > > > Note: ./src/RXTXPort.java uses or overrides a deprecated API.
> > > > > Note: Recompile with -deprecation for details.
> > > > > Error: Can't read command line arguments from file null.
> > > > > make: ***
> [/usr/local/src/paralelo/rxtx-1.4-15/gnu/io/Configure.class]
> > > > > Error 15
> > > > > 
> > > > > Thank you for any suggestion.
> > > > 
> > > > I suspect javah is failing for some reason.  The output will be a little
> > > > ugly but in the Makefile remove the "@" from the following:
> > > > 
> > > > $(CLASSES): $(javafiles) $(TOP)/Makefile
> > > > $(JAVAH_FIX)
> > > > $(JAVAC) $(javafiles)
> > > > =======>@$(JAVAH) `(for i in $(javahfiles);do \
> > > > if grep > /dev/null native.*\( $(SPATH)/$$i.java; then \
> > > > echo $(CLASSDIR).$$i; \
> > > > fi; \
> > > > done)`
> > > > $(JAR) cf $(JARTARGET) $(CLASSTOP)/*
> > > > 
> > > > assuming you created a build directory in rxtx-1.4-?/, ran ../configure
> > > > --options in the build directory and ran make in the build directory,
> > > > The output should look something like:
> > > > 
> > > > /usr/local/java/j2sdk1.3.1/bin/javac -classpath
> > > > 
> > > 
> .:/home/bob/rxtx-2.0-2/build2:/home/bob/rxtx-2.0-2/build2/src:/usr/local/java/j2sdk1.3.1/jre/lib/ext/comm.jar
> 
> > > > -d /home/bob/rxtx-2.0-2/build2/ -O ../src/Configure.java
> > > > ../src/LPRPort.java ../src/RXTXCommDriver.java ../src/RXTXPort.java
> > > > ../src/RXTXVersion.java
> > > > Note: ../src/RXTXPort.java uses or overrides a deprecated API.
> > > > Note: Recompile with -deprecation for details.
> > > > 
> > > > ======================= HERE IS THE INTERESTING PART ===================
> > > > 
> > > > /usr/local/java/j2sdk1.3.1/bin/javah -classpath
> > > > 
> > > 
> .:/home/bob/rxtx-2.0-2/build2:/home/bob/rxtx-2.0-2/build2/src:/usr/local/java/j2sdk1.3.1/jre/lib/ext/comm.jar
> 
> > > > -d i686-pc-linux -jni `(for i in Configure LPRPort RXTXCommDriver
> RXTXPort
> > > > RXTXVersion;do \
> > > > 	if grep > /dev/null native.*\( ../src/$i.java; then \
> > > > 		echo gnu.io.$i; \
> > > > 	fi; \
> > > > done)`
> > > > 
> > > > ======================= END INTERESTING PART ===========================
> > > > 
> > > > /usr/local/java/j2sdk1.3.1/bin/jar cf jcl.jar gnu/*
> > > > gcc -I/home/bob/rxtx-2.0-2/build2 -Ii686-pc-linux -I.
> > > > -I/usr/local/java/j2sdk1.3.1/include
> > > > -I/usr/local/java/j2sdk1.3.1/include/./linux/ -g -O2 -D_POSIX_SOURCE
> > > > -D_BSD_SOURCE -D__need_timespec -c ../../src/SerialImp.c  -fPIC -DPIC -o
> > > > /home/bob/rxtx-2.0-2/build2/i686-pc-linux/SerialImp.lo
> > > > rm -fr .libs/librxtxSerial.la .libs/librxtxSerial.*
> > > > .libs/librxtxSerial-2.0.2.*
> > > > gcc -shared  /home/bob/rxtx-2.0-2/build2/i686-pc-linux/SerialImp.lo
> > > > -lpthread -lc  -Wl,-soname -Wl,librxtxSerial-2.0.2.so -o
> > > > .libs/librxtxSerial-2.0.2.so
> > > > (cd .libs && rm -f librxtxSerial.so && ln -s librxtxSerial-2.0.2.so
> > > > librxtxSerial.so)
> > > > creating librxtxSerial.la
> > > > (cd .libs && rm -f librxtxSerial.la && ln -s ../librxtxSerial.la
> > > > librxtxSerial.la)
> > > > gcc -I/home/bob/rxtx-2.0-2/build2 -Ii686-pc-linux -I.
> > > > -I/usr/local/java/j2sdk1.3.1/include
> > > > -I/usr/local/java/j2sdk1.3.1/include/./linux/ -g -O2 -D_POSIX_SOURCE
> > > > -D_BSD_SOURCE -D__need_timespec -c ../../src/ParallelImp.c  -fPIC -DPIC
> -o
> > > > /home/bob/rxtx-2.0-2/build2/i686-pc-linux/ParallelImp.lo
> > > > rm -fr .libs/librxtxParallel.la .libs/librxtxParallel.*
> > > > .libs/librxtxParallel-2.0.2.*
> > > > gcc -shared  /home/bob/rxtx-2.0-2/build2/i686-pc-linux/ParallelImp.lo
> > > > -lpthread -lc  -Wl,-soname -Wl,librxtxParallel-2.0.2.so -o
> > > > .libs/librxtxParallel-2.0.2.so(cd .libs && rm -f librxtxParallel.so &&
> ln
> > > > -s librxtxParallel-2.0.2.so librxtxParallel.so)
> > > > creating librxtxParallel.la
> > > > (cd .libs && rm -f librxtxParallel.la && ln -s ../librxtxParallel.la
> > > > librxtxParallel.la)
> > > > 
> > > > 
> > > > One last note.  Sometimes the dependancies get messed up with partial
> > > > builds/fails.  You may want to clean out the build directory before
> trying
> > > > everything so that everything gets built.
> > > > 
> > > > 
> > > > 
> > > 
> > > --
> > > +-----------------------------------------------------xtingray--+
> > > Gustavo Gonzalez
> > > Director Area de Redes
> > > 
> > > Linux User: #239480 - ICQ: 95848099
> > > 
> > > Soluciones KAZAK Limitada
> > > Grupo de Investigacion y Desarrollo
> > > en Tecnologias de Software Libre
> > > www.kazak.ws - A.A. 25180 Cali, Colombia
> > > +---------------------------------------------------------------+
> > > 
> > 
> > 
> > 
> 
> --
> +-----------------------------------------------------xtingray--+
> Gustavo Gonzalez
> Director Area de Redes
> 
> Linux User: #239480 - ICQ: 95848099
> 
> Soluciones KAZAK Limitada
> Grupo de Investigacion y Desarrollo
> en Tecnologias de Software Libre
> www.kazak.ws - A.A. 25180 Cali, Colombia
> +---------------------------------------------------------------+
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic