Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 08:07
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Getting Arduino run properly on Puppy 5.28 and 5.3 and 5.31
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
Semme

Joined: 07 Aug 2011
Posts: 3966
Location: World_Hub

PostPosted: Thu 10 Nov 2011, 07:50    Post subject:  

Five-three I won't be able to help with, so.. I'm out.
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Tue 20 Dec 2011, 06:41    Post subject:  

OK Still not running in 5.3 but I have discovered and removed one problem that messed with the arduino window as it opened . The ports and boards did not show up.

Now they do .

The answer was to chuck out the Java SFS and install JRE 1.6
The 5.3 Java SFS is missing something vital maybe
Maybe the java binary

Still won't compile though

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.

Last edited by tytower on Wed 21 Dec 2011, 05:57; edited 1 time in total
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Wed 21 Dec 2011, 05:55    Post subject:  

Nope that seems wrong too
When you click on Tools they all drop down but where the Boards should be is a line and where the Ports should be there is a line.

Moving the cursor to just below the lines reveals the missing titles but its intermittent so perhaps the Java SFS works and the fault is with the display of the Arduino window in both .0023 and Ver 1

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.
Back to top
View user's profile Send private message 
pabloA

Joined: 12 Feb 2009
Posts: 29

PostPosted: Tue 03 Jan 2012, 21:04    Post subject:  

Found this thread whilst trying to hack together an Arduino IDE onto three headed dog - went well.

As they both share the same kernel, I thought I'd try the installation in Slacko 531 using the same packages.

I believe the order in which they are loaded is important:

1) binutils-avr_2.20-2_i386.deb
2) gcc-avr_4.5.3-2_i386.deb
3) avr-libc_1.6.7-1ubuntu2_all.deb
4) gcc-g++-4.5.3.tar.gz

I have also made the switch to the Arduino-1.0 version

arduino-1.0-linux.tgz

I have left both the DevX.sfs and Kernel.sfs loaded as a consequence of some trial & error hacks - probably not needed, although I did receive some errors when compiling <missing libmdp2.so> when they weren't available after a unsuccessful hack Smile

Hope that helps you forward.
destop_arduino_files.png
Description 
png

 Download 
Filename  destop_arduino_files.png 
Filesize  234.66 KB 
Downloaded  143 Time(s) 
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Tue 03 Jan 2012, 22:56    Post subject:  

Thanks
Would have thought the three headed dog had enough problems

I'll sterilise and start again

Edit -Took out everything and started again

Had to d/l "libmpc-0.8.2" from the repository.,got a message
Didn't get a message on "libmdp2" yet but that will probably pop up when I can get the compilation running.

First 3 downloaded and installed seemingly OK via pet
Fourth gcc-g++-4.5.3.tar.gz is a bugger
82.5 Mb takes a while but the xarchiver takes 3/4 of an hour to open it with the processors running at full speed . Have tried and had this trouble many times before. So I'm still trying to get this to compile .
The problem seems to be with the uncompressing of the tar.gz file
The xarchiver takes 1/2 an hour pluss at least to list up the files before you can extract them . Then when you do extract them it tells you it finished with one error but does not tell you what the error is ! I did this about 20 times so far with various download and file size problems but have finally got a successful start to compiling . It took 2hrs 10 minutes to compile !!
I started at 6am and wanted to get away by 8 but had to be here until - well it will be 11.30 now 5 & 1/2 hours

There also seems a likelyhood that only part of gcc-g++-4.5.3.tar.gz being needed . On the repos there are core files and branch files etc so maybe someone in the know might tell us what smaller file to download and compile or remove the compile requirement altogether.

On other versions I have compiled this takes about an hour . There must be a better way to get this file onto my system! maybe someone will write a ".pet" for it or something?

Geez I've wasted months on this . If it does not come soon I will discard 5.3 altogether -a difficult distro.


May not have had enough room for the download initially so I gave it about 500Meg

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Fri 06 Jan 2012, 05:21    Post subject:  

Well now I ended up tinkering for another couple of hours and found that all versions of Arduino loaded up OK screenwise . That is 0022 , 0023 and the new Version 1.

However in all cases I got the message when I tried to compile a sketch "Cannot run program "avr-g++""No such file or Directory"

So that's the same problem I have had with all versions on Puppy 5.3
and I would bet it can't find the cross compiler. It is such a huge download and compilation that the "make install" installs it where it can't be found and that is the same with the last 4 releases of gcc.

Their install instructions are complicated in the extreme but I saw that it said unless you know what you are doing just use
./configure
make
make install

without options and it will get it right . Well it does not do so here!

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.
Back to top
View user's profile Send private message 
pabloA

Joined: 12 Feb 2009
Posts: 29

PostPosted: Fri 06 Jan 2012, 07:44    Post subject:  

Quote:


However in all cases I got the message when I tried to compile a sketch "Cannot run program "avr-g++""No such file or Directory"


That is the last error i would receive before the gcc-g++ went in.

Suprised by the amount of time your pc takes to unpack the package: yes it is large - but even so should'nt take too long.....
I guess the error could have been a lack of space.
You mentioned you incresed the size to 500mb - did you mean your save file?

Are you trying another process on the extracted files: configure/make etc..I didn't do anything apart from ->

Save the gcc-g++ package locally - outside of any save files. Xarchiver to unpack - "select/extract all" to /usr/bin - done Smile


gcc-g++ hash - f78e86e0c4bdb237ea8a7c6d3e90cbb4
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Sat 07 Jan 2012, 04:49    Post subject:  

Quote:
Are you trying another process on the extracted files: configure/make etc..I didn't do anything apart from ->

Save the gcc-g++ package locally - outside of any save files. Xarchiver to unpack - "select/extract all" to /usr/bin - done Smile


gcc-g++ hash - f78e86e0c4bdb237ea8a7c6d3e90cbb4


Ehh?
The package I downloaded was the source which required compiling hence the ./configure make make install process
I did not find it available in any other form. Did you?
From what you say you must have . Can you tell me what package you downloaded please and from where?

As I said it took 1/2 hour for the archiver to unpack and display the 82.5 Megabyte source file but that is all I found

however looking at the Arduino site I see this
Quote:
Requirements

You will need to install some programs to use Arduino under Linux (the way you do this depends on your distribution):

openjdk-6-jre (although sun's java runtime, the sun-java6-jre package, should work too)

avr-gcc (aka "gcc-avr"), version 4.3.2 or later 4.3.x version (4.4.x and 4.5.x seem to have various problems)
Version 4.3.0 has a major bug which affects multiplication of long int's. This is the default version in Ubuntu Intrepid (8.10). Check using "avr-gcc --version" and upgrade if necessary.
Versions prior to 4.3.0 do not support the ATmega328 (which comes on the Arduino Duemilanove). People running distributions like Hardy Heron (Ubuntu) or Etch (Debian) and previous will need to upgrade their version of avr-gcc.

avr-gcc-c++ (Else you will get this error: Cannot run program "avr-g++":j ava.io.IOException:Error=2: No such file or directory)
avr-libc


So I went looking for the avr-gcc-c++ download and found an rpm from Fedora ,/root/Downloads/avr-gcc-c++-4.6.2-1.fc16.i686.rpm, and tried installing this but it still did not fix the problem

I downloaded a cross compiler next
cross-avr-gcc-c++-4.4.3-7mnb2.i586.rpm which I installed as well and I moved past the avr-g++ problem to another one and I am pursuing that atm

Well what a can of worms that turned out to be went after libcloog.so.0 then
libppl-c.so.2 and then
stdlib.h at which point it is obviously very messed up and thats the last full day or full minute I will ever spend on that again

DOES NOT RUN ON 5.3

On to 5.31 ? maybe not Im going to dump it and go back to 5.28

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.
Back to top
View user's profile Send private message 
pabloA

Joined: 12 Feb 2009
Posts: 29

PostPosted: Sat 07 Jan 2012, 07:20    Post subject:  

Quote:
Ehh?

http://ftp.gnu.org/gnu/gcc/gcc-4.5.3/

[ X ] gcc-g++-4.5.3.tar.gz 28-Apr-2011 19:36 8.1M
Quote:
As I said it took 1/2 hour for the archiver to unpack and display the 82.5 Megabyte source file but that is all I found
Back to top
View user's profile Send private message 
pabloA

Joined: 12 Feb 2009
Posts: 29

PostPosted: Sat 07 Jan 2012, 10:09    Post subject:  

Ok, curiosity got the better of me.

Downloaded & installed slack530.
Made save file, reboot, load Java_jre-6u22-Lucid-sfs4..sfs in boot manager, reboot.
Installed files from my post above:
Arduino IDE up, compiles; No. Missing libmpc.so.2.0

Rebooted with devx_slack_530 (renamed from devx_531) in boot manager.
Arduino IDE up, compiles; Yes.

Opened devx - copied file(s) from /usr/lib and added to /lib folder on my pc. Rebooted without Devx loaded in boot manager.
Arduino up, compiles:Yes
desktop_slack530_addfiles.png
Description 
png

 Download 
Filename  desktop_slack530_addfiles.png 
Filesize  96.8 KB 
Downloaded  140 Time(s) 
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Sat 07 Jan 2012, 17:52    Post subject:  

At this point I think you are having a lend of me .
The file you downloaded and extracted to /usr/bin/ is a source file which needs compiling so what you get if you did not compile it is a directory in /usr/bin called "gcc-4.5.3"

Inside that the files are extracted but they are not binaries they are "C" source files , ie they will not be found by the "Path" and will not run until compiled .

No offence meant but I don't think that file is contributing at all. Somehow or other you have a cross compiler loaded .
What is the name of your SFS file?

Have you any other files loaded in respect to this?
Quote:
Rebooted with devx_slack_530 (renamed from devx_531) in boot manager.

Perhaps this is the answer?
But you say Arduino ran before you loaded this?

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.

Last edited by tytower on Tue 10 Jan 2012, 16:56; edited 1 time in total
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Mon 09 Jan 2012, 06:07    Post subject:  

Looks like he's done a runner now or at least gone to ground . Anybody else been able to get a successful install in 5.3 or 5.31?

Anybody else with any background knowledge ?
Was something missing in the devx_slack_5.3 SFS file? and fixed in 5.31 and nobody said anything?

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.
Back to top
View user's profile Send private message 
pabloA

Joined: 12 Feb 2009
Posts: 29

PostPosted: Sun 15 Jan 2012, 15:56    Post subject:  

Install to 64bit puppy- Lighthouse 64 (B4).

These are the four files I used, in conjuction with Java & Devx both mounted from within boot manager;

1) avr-binutils-2.21-x86_64-2sl.txz
2) avr-gcc-4.5.3-x86_64-1sl.txz
3) avr-libc-1.7.1-x86_64-2sl.txz
4) gcc-g++-4.5.2-x86_64-2.txz

I also had to change the arduino start script with absolute paths Wink

Code:
#!/bin/sh
 
APPDIR=/opt/arduino

cd $APPDIR
 
for LIB in \
    java/lib/rt.jar \
    java/lib/tools.jar \
    lib/*.jar \
    ;
do
    CLASSPATH="${CLASSPATH}:/opt/arduino/lib/pde.jar:/opt/arduino/lib/RXTXcomm.jar:/lib/*:/opt/arduino/lib/core.jar:${LIB}"
done
export CLASSPATH

LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH

export PATH="${APPDIR}/java/bin:${PATH}"

java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base
desktop_files_64bit.png
Description 
png

 Download 
Filename  desktop_files_64bit.png 
Filesize  198.93 KB 
Downloaded  123 Time(s) 
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Mon 16 Jan 2012, 04:52    Post subject:  

OK thats good info but I'm not running 64 bit.
I see you now choose binary self installing slackware files to do the above
I find it interesting that
2) avr-gcc-4.5.3-x86_64-1sl.txz and
4) gcc-g++-4.5.2-x86_64-2.txz run together but then thats where my problems above come from


What do you have to say about my previous post then ?

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.
Back to top
View user's profile Send private message 
pabloA

Joined: 12 Feb 2009
Posts: 29

PostPosted: Mon 16 Jan 2012, 09:48    Post subject:  

Ty: The info re 64bit is for any forum browsers - not you Smile
Quote:
What do you have to say about my previous post then?

Do you mean this?
Quote:
Looks like he's done a runner now or at least gone to ground . Anybody else been able to get a successful install in 5.3 or 5.31?

Anybody else with any background knowledge ?
Was something missing in the devx_slack_5.3 SFS file? and fixed in 5.31 and nobody said anything?


Not much Smile - Although I havn't compared them, I wouldn't think there are any differences - have you?

Perhaps you could advise on how are you running puppy - Full HDD install, frugal, other?
Do you start with a 'clean' OS on each attempt?
Are you still having errors whilst blindly following my instructions: Do you ever get the IDE up & compiling?

If you're looking for a concise explaination on how it works, then I do not have that level of experience - My primary goal was to have the Arduino IDE available - which I do Smile

Quote:
There also seems a likelyhood that only part of gcc-g++-4.5.3.tar.gz being needed . On the repos there
are core files and branch files etc so maybe someone in the know might tell us what smaller file to download and compile or remove the compile requirement altogether.


From my haphazzard approach to reasearching this I found that it would be more appropiate to build the AVR toolchain seperate from the system files - This toolchain could, I believe, be built more effectivly using the gcc core & gcc++ et-al as you mentioned.
The 'uncompiled' gcc-g++ files 'somehow' complete the avr toolchain and are picked up when the assembler is called???

The 'hows' & 'whys' are beyond me Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1011s ][ Queries: 12 (0.0045s) ][ GZIP on ]