Update: Just before submitting this issue, i tried to run arduino by double-clicking the executable and choosing "run" under "/build/linux/work/arduino". So it builds perfectly and this bug report is only valid for the failure of "ant run" command.
I have Ubuntu lucid installed on my laptop. When i try to compile arduino from source and try to run, i get error. Here are the outputs.
for "ant"
bugra@bugra-laptop:~/ard/arduino/build$ ant Buildfile: build.xml
build:
revision-check:
linux-checkos:
subprojects-build:
compile: [methods] No changes to PApplet API.
build:
compile:
build:
linux-build:
assemble: [unzip] Expanding: /home/bugra/ard/arduino/build/shared/reference.zip into /home/bugra/ard/arduino/build/linux/work
BUILD SUCCESSFUL Total time: 5 seconds
for "ant run"
bugra@bugra-laptop:~/ard/arduino/build$ ant run Buildfile: build.xml
run:
revision-check:
linux-checkos:
subprojects-build:
compile: [methods] No changes to PApplet API.
build:
compile:
build:
linux-build:
assemble: [unzip] Expanding: /home/bugra/ard/arduino/build/shared/reference.zip into /home/bugra/ard/arduino/build/linux/work
linux-run:
BUILD FAILED /home/bugra/ard/arduino/build/build.xml:33: The following error occurred while executing this line: /home/bugra/ard/arduino/build/build.xml:318: Execute failed: java.io.IOException: Cannot run program "linux/work/arduino" (in directory "/home/bugra/ard/arduino/build/linux/work"): java.io.IOException: error=2, No such file or directory
Total time: 1 second
I have lastest version - rev 1088 as well as "gcc-avr", "avr-libc" "sun java 6 sdk u20" and "sun java 6 jdk u20", "ant 1.7.1", "make 3.81"
Comment #1
Posted on Sep 16, 2010 by Happy RhinoI have the same problem, so I just run the generated arduino script manually. If anyone has a fix, I'd love to apply it.
Comment #2
Posted on Sep 16, 2010 by Happy Monkeyfixed it! Line 318 in build.xml should be,
I guess the problem was it couldn't find the executable 'arduino'
Comment #3
Posted on Oct 2, 2010 by Happy RhinoI applied your change, bugraokcu, but it didn't actually fix the problem for me, so I'm leaving this open. Anyone have any other ideas? Do we need to specify an absolute path somehow?
I'm using Apache Ant version 1.7.1 compiled on July 2 2010.
Comment #4
Posted on Nov 27, 2010 by Happy Rhinohttps://github.com/arduino/Arduino/commit/c6d1baa27514f9960159f7432cd64406f596a267
Status: Fixed
Labels:
Type-Defect
Priority-Medium
OpSys-Linux
Component-Build
Milestone-0022