Pages: [1]   Go Down
Author Topic: How do I use Arduino ide-1.5.x from github?  (Read 1618 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 1
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Before asking tons of questions about the IDE and the Due I want to make sure I use the newest version for my testing. I'm feeling quite dumb, as I did not find out how to start the thing yet.https://github.com/arduino/Arduino

* I got branch ide-1.5.x as a zip file from https://github.com/arduino/Arduino
   Is this the right branch to get?

* I cannot find an arduino executable in the extracted files, do I have to build it first?

Help appreciated.

* OutOfLine hoping for the "as-soon-as-I-hit-send-I-realized-the-answer" effect...
Logged

Offline Offline
Jr. Member
**
Karma: 1
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Before asking tons of questions about the IDE and the Due I want to make sure I use the newest version for my testing. I'm feeling quite dumb, as I did not find out how to start the thing yet.https://github.com/arduino/Arduino

Didn't come further with this one, still interested in hints...

I have found nightly builds on http://arduino.cc/en/Main/Software
(how could I have overlooked them before?)
and thought this would be an easy solution...
but no, not *that* easy  smiley-wink

On Debian/Wheezy 64bit I'm getting:
Code:
dada@i5:~$ ./arduino-nightly/arduino
java.lang.UnsatisfiedLinkError: /home/dada/arduino-nightly/lib/librxtxSerial.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /home/dada/arduino-nightly/lib/librxtxSerial.so) thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/dada/arduino-nightly/lib/librxtxSerial.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /home/dada/arduino-nightly/lib/librxtxSerial.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.app.Editor.populateSerialMenu(Editor.java:984)
at processing.app.Editor.buildToolsMenu(Editor.java:703)
at processing.app.Editor.buildMenuBar(Editor.java:484)
at processing.app.Editor.<init>(Editor.java:212)
at processing.app.Base.handleOpen(Base.java:809)
at processing.app.Base.handleOpen(Base.java:774)
at processing.app.Base.handleNew(Base.java:672)
at processing.app.Base.<init>(Base.java:391)
at processing.app.Base.main(Base.java:207)


Is that a library that is too old on updated Debian Wheezy?
Or what's wrong?
Logged

0
Offline Offline
God Member
*****
Karma: 39
Posts: 988
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's what works for me:

Code:
$ git clone git://github.com/arduino/Arduino.git
$ cd Arduino/build
$ ant clean; ant build; ant run

-br

Logged

Offline Offline
Jr. Member
**
Karma: 1
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's what works for me:

Thanks a lot, I did not know about ant.
So this is a huge step forward.

'ant build'  fails, why?
Code:
dada@i5:~$ git clone git://github.com/arduino/Arduino.git
Cloning into 'Arduino'...
remote: Counting objects: 39380, done.
remote: Compressing objects: 100% (12778/12778), done.
remote: Total 39380 (delta 23783), reused 37694 (delta 22893)
Receiving objects: 100% (39380/39380), 1.15 GiB | 477 KiB/s, done.
Resolving deltas: 100% (23783/23783), done.
dada@i5:~$
dada@i5:~$ cd Arduino/build/
dada@i5:~/Arduino/build$ ant clean
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
Buildfile: /home/dada/Arduino/build/build.xml

subprojects-clean:

clean:

clean:

linux-clean:

windows-clean:

macosx-clean:

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
dada@i5:~/Arduino/build$ ant build
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk-amd64/lib/tools.jar
Buildfile: /home/dada/Arduino/build/build.xml

build:

revision-check:

linux-checkos:

subprojects-build:

compile:
  [methods] No changes to PApplet API.
    [mkdir] Created dir: /home/dada/Arduino/core/bin

BUILD FAILED
/home/dada/Arduino/build/build.xml:35: The following error occurred while executing this line:
/home/dada/Arduino/build/build.xml:67: The following error occurred while executing this line:
/home/dada/Arduino/core/build.xml:19: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk-amd64/jre"

Total time: 0 seconds
dada@i5:~/Arduino/build$

Logged

Forum Administrator
Milano, Italy
Offline Offline
Sr. Member
*****
Karma: 23
Posts: 292
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk-amd64/jre"

you need to make the JAVA_HOME point to a JDK, currently it points to a JRE.
Logged

C.

Offline Offline
Jr. Member
**
Karma: 1
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you need to make the JAVA_HOME point to a JDK, currently it points to a JRE.

After tinkering a bit I have installed debian package 'default-jdk' and 'ant build' runs fine now.
But I still get the same error as from the nightly build, quoted in the second post of this thread.
Code:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /home/dada/arduino-nightly/lib/librxtxSerial.so)

Does this mean that the new Arduino ide depends on a newer glibc version than I have on Debian Wheezy?
Logged

Forum Administrator
Milano, Italy
Offline Offline
Sr. Member
*****
Karma: 23
Posts: 292
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

OutOfLine,

I see that the librxtxSerial.so in the 1.5.2 differs from the latest in github repository, maybe I messed up with git.
Now I've reverted that file back to the original found in 1.5.2, may you update your repository and retry?

(all this mess because we experimented an update to rxtx library and reverted back to the old version due to some incompatibility issues)
Logged

C.

Offline Offline
Jr. Member
**
Karma: 1
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

may you update your repository and retry?

I did a 'git pull' and retried, but still got an error.

Tried it a second time (that's why the local repo was up-to-date) and put the log here:
http://paste.debian.net/247200

edit: 'gitb' in the paste is a local alias for 'git branch'.
        so I'm on branch ide-1.5.x
Code:
dada@i5:~/Arduino$ gitb
* ide-1.5.x

edit2: as the above link was about to expire I replaced it by a new one,
         expires 90d
« Last Edit: April 04, 2013, 06:25:10 am by OutOfLine » Logged

Pages: [1]   Go Up
Jump to: