From owner-freebsd-java Thu Sep 7 22:59: 7 2000 Delivered-To: freebsd-java@freebsd.org Received: from smtp1.jaring.my (smtp1.jaring.my [192.228.128.45]) by hub.freebsd.org (Postfix) with ESMTP id 764A537B422 for ; Thu, 7 Sep 2000 22:59:04 -0700 (PDT) Received: from yappology.pl.jaring.my (j30.sgw42.jaring.my [161.142.22.44]) by smtp1.jaring.my (8.10.0.Beta6/8.9.3) with ESMTP id e885wNJ18901; Fri, 8 Sep 2000 13:58:24 +0800 (MYT) Message-Id: <4.3.1.2.20000908141153.00a86300@pop2.jaring.my> X-Sender: yapbros@pop2.jaring.my X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 08 Sep 2000 14:16:51 +0800 To: Greg Lewis From: ych Subject: Re: Reading data feed from serial port Cc: freebsd-java@FreeBSD.ORG In-Reply-To: <20000908062629.A45011@ares.trc.adelaide.edu.au> References: <4.3.1.2.20000907193527.00b3d4a0@pop2.jaring.my> <4.3.1.2.20000907193527.00b3d4a0@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 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: 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 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 What is the cause? Thanks. ych At 06:26 AM 9/8/00 +0930, Greg Lewis wrote: >On Thu, Sep 07, 2000 at 07:39:38PM +0800, ych wrote: > > Hi, > > > > How can I read data feed that's coming in through the serial port? Can I > > open a stream to /dev/something and proceed to read from the stream? I'm > > new to FreeBSD. Any help is greatly appreciated. > > > > Thank you. > >Take a look through the list archives, specifically for the FreeBSD port >of the Java COMM API for talking to serial ports. It was even mentioned >recently I recall :). > >-- >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