From owner-freebsd-java Fri Sep 8 0:58:26 2000 Delivered-To: freebsd-java@freebsd.org Received: from smtp3.jaring.my (smtp3.jaring.my [192.228.128.46]) by hub.freebsd.org (Postfix) with ESMTP id 31DA537B422 for ; Fri, 8 Sep 2000 00:58:20 -0700 (PDT) Received: from yappology.pl.jaring.my (j233.sgw47.jaring.my [161.142.192.247]) by smtp3.jaring.my (8.10.1/8.10.1) with ESMTP id e887vSm27743; Fri, 8 Sep 2000 15:57:29 +0800 (MYT) Message-Id: <4.3.1.2.20000908161124.00b9fbc0@pop2.jaring.my> X-Sender: yapbros@pop2.jaring.my X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 08 Sep 2000 16:13:02 +0800 To: Greg Lewis From: ych Subject: Re: Reading data feed from serial port Cc: freebsd-java@FreeBSD.ORG In-Reply-To: <200009080607.PAA57198@ares.trc.adelaide.edu.au> References: <4.3.1.2.20000908141153.00a86300@pop2.jaring.my> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thanks Greg. Got it to compile after changing the make file and installing the FreeBSD source. ych At 03:37 PM 09/08/2000 +0930, Greg Lewis wrote: >ych wrote: > > Sorry, I didn't know there's a FreeBSD port of the comm API. I've > > downloaded the port but encountered the following error when trying to > > build the lib: > >Well, I've never built it myself, but here goes answering anyway :). > > > gcc -O2 -shared -I /usr/java/include -I /usr/java/include/freebsd -L > > /usr/java/lib/i386/green_threads/ -o lib/libParallel.so > > src/org/freebsd/io/comm/libParallel.c > > In file included from src/org/freebsd/io/comm/libParallel.c:32: > > src/org/freebsd/io/comm/org_freebsd_io_comm_FreebsdParallel.h:2: jni.h: > No such > >This is a standard java header. By the above it would appear that it >assumes your java installation is based in /usr/java. If thats not the >case then you need to adjust the include paths to point at where your >java installation lives. > > > file or directory > > src/org/freebsd/io/comm/libParallel.c:41: /sys/dev/ppbus/ppi.h: No such > file or > > directory > > src/org/freebsd/io/comm/libParallel.c:42: /sys/dev/ppbus/ppbconf.h: No > such > > file or directory > > gmake: *** [lib/libParallel.so] Error 1 > >Ewww. This is looking for include files that are part of the FreeBSD >source code. Specifically, part of the sys source. It looks like you need >this installed (or at least the relevant include files) to compile :(. > >-- >Greg Lewis glewis@trc.adelaide.edu.au >Computing Officer +61 8 8303 5083 >Teletraffic Research Centre > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message