Date: Wed, 24 Sep 2008 13:53:11 +0900 From: Takeshi MUTOH <mutoh@openedu.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: edwin@mavetju.org, mutoh@openedu.org Subject: ports/127600: graphics/processing : Serial cannot be used Message-ID: <86k5d216x4.wl%mutoh@openedu.org> Resent-Message-ID: <200809240520.m8O5K1RY044069@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 127600 >Category: ports >Synopsis: Serial cannot be used >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 24 05:20:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Takeshi MUTOH <mutoh@openedu.org> >Release: FreeBSD 6.3-RELEASE-p1 i386 >Organization: 610t >Environment: FreeBSD sacraya.610t.org 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Wed Feb 13 02:56:56 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP i386 >Description: The graphics/processing have their own serial library at libexec/processing/libraris/serial/library. But this serial library use linux version of shared library, so we cannot run this function. The processing serial library is same as comms/rxtx, so we must add RUN_DEPENDS. >How-To-Repeat: Run processing and attach some serial device. Then select [File]->[Examples]->[Libraries]->[Serial]->[SerialCallResponse]. If you don't install comms/rxtx before run, you see: {{{ java.lang.UnsatisfiedLinkError: /usr/local/libexec/processing/libraries/serial/library/librxtxSerial.so: Shared object "libpthread.so.0" not found, required by "librxtxSerial.so" thrown while loading gnu.io.RXTXCommDriver java.lang.UnsatisfiedLinkError: /usr/local/libexec/processing/libraries/serial/library/librxtxSerial.so: Shared object "libpthread.so.0" not found, required by "librxtxSerial.so" at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83) java.lang.RuntimeException: Error inside Serial.ports() at processing.serial.Serial.errorMessage(Serial.java:583) at processing.serial.Serial.list(Serial.java:564) at Temporary_7198_3090.setup(Temporary_7198_3090.java:31) at processing.core.PApplet.handleDisplay(PApplet.java:1390) at processing.core.PGraphics.requestDisplay(PGraphics.java:690) at processing.core.PApplet.run(PApplet.java:1562) at java.lang.Thread.run(Thread.java:619) }}} If you install comms/rxtx before run, you see: {{{ Stable Library ========================================= Native lib Version = RXTX-2.1-7 Java lib Version = RXTX-2.1-7 [0] "/dev/ttyU0" }}} >Fix: Please apply patch below. I think that graphics/processing-devel is needed same care. diff -ruN processing.org/Makefile processing/Makefile --- processing.org/Makefile 2008-09-24 12:39:28.000000000 +0900 +++ processing/Makefile 2008-09-24 12:40:11.000000000 +0900 @@ -14,7 +14,8 @@ MAINTAINER= edwin@mavetju.org COMMENT= Open source programming language and environment for people who want to program images, animation, and interactions -RUN_DEPENDS= jikes:${PORTSDIR}/java/jikes +RUN_DEPENDS= jikes:${PORTSDIR}/java/jikes \ + ${JAVA_HOME}/jre/RXTXcomm.jar:${PORTSDIR}/comms/rxtx USE_JAVA= 1.5+ NO_BUILD= yes -- Takeshi MUTOH <mutoh@openedu.org> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86k5d216x4.wl%mutoh>