Arduino IDE on Pine64
#11
For the IDE itself, you need to replace the arduino-1.6.9/java/bin/java with the one from /usr/bin/java.
You will need to replace also the ./arduino-1.6.9/lib/libastylej.so with the one installed by "apt-get install libastylej-jni" from /usr/lib/jni/aarch64-linux-gnu/libastylej.so.
Finally, you also need to replace the ./arduino-1.6.9/lib/liblistSerialsj.so with one compiled from sources, (I'm providing here a zip of my compile).
For the compiler, you need first to install "apt-get install libgcc1-armhf-cross".
Then, i've added the libs libz.so.1.2.8/libpthread-2.19.so/libtinfo.so.5.9 from a RaspberryPi into /usr/arm-linux-gnueabihf/lib/ and created proper symbolic links for them, libz.so.1/libpthread.so.0/libtinfo.so.5 accordingly.

Beware that if you install some other frameworks using Board Manager, maybe you will need to tweak some other stuff, since it will also install 32bits version.


Attached Files
.zip   liblistSerialsj.so.zip (Size: 21.04 KB / Downloads: 57)
.zip   some-32bits-libs.zip (Size: 151.16 KB / Downloads: 41)
  Reply
#12
Thank you martinayotte! I will definitely give it a try and report back the results. Smile
  Reply
#13
Hi
i have been trying to make this work
the version 1.6.10
needs java 8
and by replacing the java file with he on of the java jdk
make it work
but i still no able to make it compile
using a lower version of the board manager like 1.6.5
it says cant exec
and with the default says that cant locate the gnu-g++

i have installed libgcc1-armhf-cross
by downloading the files and dependencies from the debian depository manually and installed as well
but nope not working yet
also include the 32b library that u upload and nothing

any ideas please.>??
i really want to make this work Big Grin
thanks!
By. Zoidiano0!
Installed:
LAMP: Linux , Apache2.4 , Mariadb, phpMyadmin, PHP5 
Java 8 arm by oracle
Netbeans 8.1
chromium (uses way toooo much Ram)

Pine64 Head Unit Project.!
  Reply
#14
(08-01-2016, 07:31 PM)Zoidiano0 Wrote: Hi
i have been trying to make this work
the version 1.6.10
needs java 8
and by replacing the java file with he on of the java jdk
make it work
but i still no able to make it compile
using a lower version of the board manager like 1.6.5
it says cant exec
and with the default says that cant locate the gnu-g++

i have installed libgcc1-armhf-cross
by downloading the files and dependencies from the debian depository  manually and installed as well
but nope not working yet
also include the 32b library that u upload and nothing

any ideas please.>??
i really want to make this work Big Grin
thanks!
are you using open JDK or Oracle JDK?
  Reply
#15
Hello Is there step by step procedure to install it?
say from installing java, what ever version it is?
  Reply
#16
Big Grin 
Hi all!

This is an update although specifically for the Pinebook I just received, it might work on the Pine64+.
I just ran the update scripts on /usr/local/sbin/ (kernel,uboot and package) to update to version 0.5.5 on my Pinebook 14".

I gathered some information from other forums and this is my small list of instructions I followed to make Arduino IDE 1.8.3 work on the Pinebook (compiling and loading).

Info to install Arduino IDE in Pine64
https://forum.arduino.cc/index.php?topic=400808.0

1. Download the ARM version of Arduino IDE (1.8.3)
2. Run the ./install script in the folder arduino-1.X.X
3. Add armhf architecture support
    
Code:
sudo dpkg --add-architecture armhf

4. Install some 32 bit libraries (armhf)
   
Code:
sudo apt-get install libxtst6:armhf
 sudo apt-get install libxrender1:armhf
 sudo apt-get install libxi6:armhf
 sudo apt-get install openjdk-8-jre:armhf
 sudo apt-get install libxft2:armhf

5. Set permissions for accessing serial port:
  
Code:
 sudo usermod -a -G dialout pine64
 sudo chmod a+rw /dev/ttyACM0


It took a while to open the app, but once opened it was fast and compiled very fast.

Still have to try this on the Pine64+.
  Reply
#17
Thanks for that jrulian. 

You could also run this script which I wrote at the end of May to install the Arduino IDE (updated for 1.8.3 now that it's out). I had tested it working with the current release of the mate desktop for the pinebook at the time, and it was fully functional, and was hoping a few more people on the IRC chat would have tested it for me. As you pointed out, the Arduino IDE is very slow the first time it loads, but after then it starts reasonably fast... (probably just building cache files for future runs), and compiles are nice and fast.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Manjaro arm on pine64+ roel 2 169 10-19-2019, 05:13 AM
Last Post: roel
  Volumio for PINE64 Released mikelangeloz 11 6,495 03-22-2019, 09:25 AM
Last Post: llungster
  I2S Audio patches for Pine64+ uploaded to GitHub ramstadt 1 255 01-19-2019, 11:31 AM
Last Post: ramstadt
  Pine64: Minimal SDL config Max11 3 508 01-04-2019, 03:47 PM
Last Post: Max11
  Fedora 27 on Pine64 gregjo 18 7,126 01-02-2019, 10:42 PM
Last Post: heatfanjohn
  Official build procedure of ayufan pine64 r.tanaka 0 576 08-21-2018, 10:54 PM
Last Post: r.tanaka
  DKMS on kernel 3.10.107-pine64 obrienmd 5 697 06-21-2018, 05:45 PM
Last Post: evilbunny
  Programming languages support under PINE64 baryluk 5 3,105 03-09-2018, 01:52 AM
Last Post: kaokaobang
  Gentoo for pine64 - longsleep kernel incoherent 0 821 12-09-2017, 08:14 AM
Last Post: incoherent
  Fedora Running On Pine64! cztian 26 5,236 10-26-2017, 05:51 PM
Last Post: gregjo

Forum Jump:


Users browsing this thread: 1 Guest(s)