Ubuntu 16.04 Build

Sergey Nazarkin snazarkin at azul.com
Wed Jul 18 15:51:05 UTC 2018


Allen,

DIO dio doesn’t support USB since there are special libraries for this.


Sergey Nazarkin




> On 18 Jul 2018, at 18:05, Allen Myers <allen at aemyers.com> wrote:
> 
> Sergey: Thank you again.
> 
> So as I look deeper into this library, I'm starting to realize maybe it is not what I need. I'm running a Java application from an x86 Ubuntu computer that connects to an Arduino Zero via the USB port.
> 
> Is it possible to use this library for that USB connection?
> 
> 
> On Wed, Jul 18, 2018 at 2:30 AM, Sergey Nazarkin <snazarkin at azul.com> wrote:
> 
> > On 18 Jul 2018, at 02:10, Allen Myers <allen at aemyers.com> wrote:
> > 
> > Thank you, Sergey. I still have a problem if I don't define a CROSS_TOOL value.
> > 
> > If I comment out line 45: http://hg.openjdk.java.net/dio/dev/file/e9febb974bec/Makefile#l45
> > 
> > Will the build still produce as expected?
> 
> It depends on what are expecting to get. Without CROSS_TOOL the library is built with host GCC, so that x86 linux will produce library for the intel cpu. 
> 
> > 
> > Where does the libdio.so file need to exist? Classpath?
> 
> The path to the native library should be provided with -Djava.library.path=<path>
> 
> > 
> > On Fri, Jul 6, 2018 at 3:25 AM, Sergey Nazarkin <snazarkin at azul.com> wrote:
> > 
> > Hi Allan,
> > 
> > you can start from official page http://openjdk.java.net/projects/dio/.  The build is rather simple: just set JAVA_HOME=<path to jdk> and launch make. 
> > 
> > 
> > Sergey Nazarkin
> > 
> > 
> > 
> > 
> > > On 6 Jul 2018, at 00:07, Allen Myers <allen at aemyers.com> wrote:
> > > 
> > > I'd like to try and get this library working for a Ubuntu server that is
> > > connected to an Arduino Zero.
> > > 
> > > I'm having trouble finding documentation/examples on how to build the
> > > library. Are there binaries available somewhere?
> > > 
> > > Is there any document/guide that might walk a first time user through the
> > > process to use this library?
> > 
> > 
> 
> 



More information about the dio-dev mailing list