Release Arduino IDE pnd


hdonk

Active Member
Joined
Sep 12, 2008
Messages
572
Is in the repo. Can someone please test it. You'll probably need the java pnd installed first.
 
didn't work for me... downloaded the .pnd from repo. copied to SD2 (in right-hand slot, does that make a difference?).


I have 2 OPs, I tested on both. Both have Java .pnd installed. I selected 'Development | Arduino', green HDD flashed for a bit and nowt happened. I've attached the .out files from both machines if that's any help? If you wanna try again, I'm happy to retry another build and /o r any suggestion - well, you did say it was beta :)


=======================================================================================


PND : /media/EMPTY_SD2/arduino.pnd


PND_FSTYPE : Squashfs


APPDATADIR : /media/EMPTY_SD2/pandora/appdata/hdonk_arduino


APPDD_FSTYPE : vfat


PND_CPUSPEED : <unset>


EXENAME : arduino.sh


ARGUMENTS : <unset>


=======================================================================================


[ START ]--- Mount the PND ----------


Mounting : mount -t squashfs -o ro "/dev/loop0" "/mnt/utmp/hdonk_arduino"


Mounting the Union FS : mount -t aufs -o exec,noplink,dirs="/media/EMPTY_SD2/pandora/appdata/hdonk_arduino=rw+nolwh":"/mnt/pnd/hdonk_arduino=rr" none "/mnt/utmp/hdonk_arduino"


[sUCCESS]--- Mount the PND ----------


[ START ]--- Starting the application (arduino.sh ) ----------


gksudo: invalid option -- 'G'


GKsu version 2.0.2


Usage: gksudo [-u <user>] [options] <command>


--debug, -d


Print information on the screen that might be


useful for diagnosing and/or solving problems.


--user <user>, -u <user>


Call <command> as the specified user.


--disable-grab, -g


Disable the "locking" of the keyboard, mouse,


and focus done by the program when asking for


password.


--prompt, -P


Ask the user if they want to have their keyboard


and mouse grabbed before doing so.


--preserve-env, -k


Preserve the current environments, does not set $HOME


nor $PATH, for example.


--login, -l


Make this a login shell. Beware this may cause


problems with the Xauthority magic. Run xhost


to allow the target user to open windows on your


display!


--description <description|file>, -D <description|file>


Provide a descriptive name for the command to


be used in the default message, making it nicer.


You can also provide the absolute path for a


.desktop file. The Name key for will be used in


this case.


--message <message>, -m <message>


Replace the standard message shown to ask for


password for the argument passed to the option.


Only use this if --description does not suffice.


--print-pass, -p


Ask gksu to print the password to stdout, just


like ssh-askpass. Useful to use in scripts with


programs that accept receiving the password on


stdin.


[sUCCESS]--- Starting the application (arduino.sh ) ----------


[ START ]--- Restoring the frame buffer status ----------


[sUCCESS]--- Restoring the frame buffer status ----------


[ START ]--- uMount the PND ----------


[ START ]--- Waiting the Union to be available ----------


[sUCCESS]--- Waiting the Union to be available ----------


auplink:plink.c:223: AUFS_CTL_PLINK_MAINT: Inappropriate ioctl for device


rmdir: failed to remove `/mnt/utmp/hdonk_arduino': Device or resource busy


[ START ]--- Waiting the PND mount dir to be free ----------


[sUCCESS]--- Waiting the PND mount dir to be free ----------


cleanup done


[sUCCESS]--- uMount the PND ----------


=======================================================================================


Return code is : 1
 
Last edited by a moderator:
That shouldn't take long to fix :)


Edit:


New pnd in repo.
 
Last edited by a moderator:
downloaded the updated version.


just to be sure, I used PNDManager and downloaded the java sdk again and installed it.


Now when I run, in the .out file I get:


[sUCCESS]--- Mount the PND


[ START ] --- Starting the application ( arduino.sh ) -----


arduino/arduino: line 21: java: not found


[FAILED] --- Starting the application ( arduino.sh ) -----


so what did I miss? is there some extra setting I need to set for java somewhere?
 
You did not remove the card with the javapnd on it after installation?
 
I clicked on the 'Java install' to make sure it was installed. That seemed to make sense.


Now the .out file contains the following:


=======================================================================================


PND : /media/EMPTY_SD2/arduino.pnd


PND_FSTYPE : Squashfs


APPDATADIR : /media/EMPTY_SD2/pandora/appdata/hdonk_arduino


APPDD_FSTYPE : vfat


PND_CPUSPEED : <unset>


EXENAME : arduino.sh


ARGUMENTS : <unset>


=======================================================================================


[ START ]--- Mount the PND ----------


Mounting : mount -t squashfs -o ro "/dev/loop0" "/mnt/utmp/hdonk_arduino"


Mounting the Union FS : mount -t aufs -o exec,noplink,dirs="/media/EMPTY_SD2/pandora/appdata/hdonk_arduino=rw+nolwh":"/mnt/pnd/hdonk_arduino=rr" none "/mnt/utmp/hdonk_arduino"


[sUCCESS]--- Mount the PND ----------


[ START ]--- Starting the application (arduino.sh ) ----------


Found java.pnd at /media/PAND1/pandora/menu/java.pnd


Attempting to execute jvm at /mnt/utmp/java/openjdk/usr/lib/jvm/java-6-openjdk/jre/bin/java


Args are: -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base


Exception in thread "main" java.lang.NoClassDefFoundError: processing/app/Base


Caused by: java.lang.ClassNotFoundException: processing.app.Base


at java.net.URLClassLoader$1.run(URLClassLoader.java:217)


at java.security.AccessController.doPrivileged(Native Method)


at java.net.URLClassLoader.findClass(URLClassLoader.java:205)


at java.lang.ClassLoader.loadClass(ClassLoader.java:321)


at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)


at java.lang.ClassLoader.loadClass(ClassLoader.java:266)


at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)


Could not find the main class: processing.app.Base. Program will exit.


auplink:plink.c:223: AUFS_CTL_PLINK_MAINT: Inappropriate ioctl for device


rmdir: failed to remove `/mnt/utmp/java': Device or resource busy


[sUCCESS]--- Starting the application (arduino.sh ) ----------


[ START ]--- Restoring the frame buffer status ----------


[sUCCESS]--- Restoring the frame buffer status ----------


[ START ]--- uMount the PND ----------


[ START ]--- Waiting the Union to be available ----------


[sUCCESS]--- Waiting the Union to be available ----------


auplink:plink.c:223: AUFS_CTL_PLINK_MAINT: Inappropriate ioctl for device


rmdir: failed to remove `/mnt/utmp/hdonk_arduino': Device or resource busy


[ START ]--- Waiting the PND mount dir to be free ----------


[sUCCESS]--- Waiting the PND mount dir to be free ----------


cleanup done


[sUCCESS]--- uMount the PND ----------


=======================================================================================


Return code is : 3
 
false alarm pandora#2 gives the same java error as above. At least it's reproducable :-/
 
Last edited by a moderator:
Dang. This must be down to me having the full OpenJDK installed... I'll have to create a clean Pandora image to try this out. *sigh*
 
btw - I previously downloaded the openJdk via pndManager (directly on the op) so I've got that version installed aswell. there's a file created called /usr/bin/java, is there any other config setting I need?
 
It's some classpath issue. It's either not being set up properly, or being interpreted differently by the java pnd...
 
You are THE MAN!


Yes, I can confirm that the Arduino IDE now runs okay. I can connect the Arduino to the USB (remembering to set USB Host first), then selecting the correct Serial Port from the IDE (/dev/ttyACM0) - I can download successfully a sketch to the Arduino, with no problems at all!


Absolutely superb stuff & I thank you very much for creating this PND. It's going to make my life so much easier :)


my only (last) question would be..... If I have custom libraries, where would I place them for the IDE compilation to pick them up?


[EDIT: Is it /mnt/utmp/hdonk_arduino/arduino/libraries ?]
 
Last edited by a moderator:
my only (last) question would be..... If I have custom libraries, where would I place them for the IDE compilation to pick them up?


[EDIT: Is it /mnt/utmp/hdonk_arduino/arduino/libraries ?]
In that case let's call it a release!


I think the place you are looking for is /pandora/appdata/arduino/libraries... At least that's where the overlay for the same location as the Servo libs etc...
 
Okay, I give up. I cannot find a way to add a custom library (or this one).


I've tried putting into:


/pandora/appdata/hdonk_arduino


and then making a /libraries folder and dropping the extracted folder&files into there


I've tried creating an arduino/libraries folder in: /pandora/appdata/


When I started up the IDE, I do not see the additional library when I select File | Examples.


Oddly, I can create a folder in /mnt/utmp/hdonk_arduino but not in /mnt/utmp/hdonk_arduino/arduino or in the sub-dir /libraries - in the normal IDE I would have dropped the extracted /LiquidCrystal_I2C/ folder into the /libraries/ folder and then when starting the IDE it would be picked up and visible when selecting Examples.


hmmm.. I even tried creating a custom folder on SDCard#2 and just changing the #include references to point to those .h files. Unfortunately, these reference arduino.h etc... and they cannot be located, so it seems the files need to be placed into the same location as /hdonk_arduino/libraries. Can that folder be made read/write? (I did attempt to change the permissions on that folder, but it still wouldn't let me create a new folder in that location).


so, we're 99% there.... if you could achieve that last 1%, that would be the ultimate (and I'll be able to code my easyVR and LCD screen from my OP!)


[EDIT: okay, so not wanting to give up, I checked out PNDTools and used the released arduino.pnd as a base. I then added the easyVR and LCD libraries directly to the PND /libraries/ folder. I then remade the .PND, copied it to the OP and voila, I can now successfully compile the .ino file that I was using from my desktop PC. My OP can now compile & download my Arduino project using custom libraries. yay! Again, thank you to hdonk for his time & effort in making this happen, it is very much appreciated!]
 
Last edited by a moderator:
I just did:


cd /pandora/appdata/hdonk_arduino


mkdir -p arduino/libraries


cd arduino/libraries


unrar x /path/to/rar_file.rar


Then ran the arduino pnd... Library was found, no problem....
 
hmmm... interesting. If I do it from the command line that works perfectly okay. Just didn't pick it up when I did it from the File Manager.


sweet! well, it's definitely 100% now.


I can achieve everything and hopefully so will everyone else!


Now, when I'm travelling to Europe / Middle East for work, all I have to take with me is my Pandora and my Arduino and I'll be able to make my projects without the need to take a 6kilo laptop!
 
hdonk, one question - to compile the arduino IDE software did you get to compile :


- QT


- PyQt


for Pandora ?


I believe this Arduino IDE is a Qt application created with Python and PyQt - could you confirm ?


If that is the case I would be very interested to get a PyQt working for other apps.
 
Last edited by a moderator:
Would it be possible to get an update for this PND? The new IDE has code folding and some other features I'd love.

Also I can't seem to get it to write to my arduino. COM1 is no longer listed and tty00 and tty01 don't work. Any advice?
 
Back
Top