You are not logged in.

#1 2016-06-21 16:45:55

thoth
Member
Registered: 2010-01-10
Posts: 79

XTST error with arduino

Okay after installing arduino through the AUR I get ' libXtst.so.6: cannot open shared object file: No such file or directory'.  Now the interesting thing is that this is in a docker image.  I don't get this problem on my arch laptop, but inside the docker container no go.  I can see the arduino bring up its splash screen, so I know the docker container is accessing X properly (I've done this in another docker projject as well.  Here is the meat of how I install arduino:

RUN pacman -Syu --noconfirm --needed base-devel wget lib32-libxt libxt jre7-openjdk mesa-libgl

RUN wget https://aur.archlinux.org/cgit/aur.git/snapshot/arduino.tar.gz; tar zxvf arduino.tar.gz;useradd arduino; mv arduino /home/;chown arduino. /home/arduino
RUN mkdir /tmp/yaourt
RUN chown -R yaourt:yaourt /tmp/yaourt
RUN pacman --noconfirm -Syyu
USER arduino
WORKDIR /home/arduino
RUN makepkg --noconfirm -sri

and the full error:

Picked up JAVA_TOOL_OPTIONS: 
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/share/arduino/java/lib/amd64/libawt_xawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821)
        at java.lang.Runtime.load0(Runtime.java:809)
        at java.lang.System.load(System.java:1086)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1842)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at java.awt.Toolkit$3.run(Toolkit.java:1636)
        at java.awt.Toolkit$3.run(Toolkit.java:1634)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.loadLibraries(Toolkit.java:1633)
        at java.awt.Toolkit.<clinit>(Toolkit.java:1668)
        at cc.arduino.view.SplashScreenHelper.<init>(SplashScreenHelper.java:54)
        at processing.app.Base.<clinit>(Base.java:91)
prompt_jnrowe_precmd:20: command not found: zsh_path  

you can see my full docker build here:

https://github.com/joshuacox/mkarduino/tree/arch-gui

`make run` in that branch should duplicate my error.

Offline

#2 2016-06-21 17:37:43

thoth
Member
Registered: 2010-01-10
Posts: 79

Re: XTST error with arduino

after rereading I realized I had installed libxt and not libxtst:

lib32-libxtst libxtst

now works fine, seems to be a dependency issue with the pkgbuild, taking up there

Offline

#3 2016-06-21 17:53:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,770

Re: XTST error with arduino

Great! Be sure to edit your first post and prepend [SOLVED] to the thread title.

Last edited by ewaller (2016-06-21 17:53:49)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB