adm34 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

ant run fails on Linux #352

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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"

Original issue reported on code.google.com by bugrao...@gmail.com on 15 Sep 2010 at 11:00

GoogleCodeExporter commented 9 years ago
I have the same problem, so I just run the generated arduino script manually.  
If anyone has a fix, I'd love to apply it.

Original comment by dmel...@gmail.com on 16 Sep 2010 at 12:17

GoogleCodeExporter commented 9 years ago
fixed it!
Line 318 in build.xml should be,
    <exec executable="./arduino" dir="linux/work" spawn="false"/>

I guess the problem was it couldn't find the executable 'arduino'

Original comment by bugrao...@gmail.com on 16 Sep 2010 at 1:10

GoogleCodeExporter commented 9 years ago
I 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.

Original comment by dmel...@gmail.com on 2 Oct 2010 at 8:19

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/c6d1baa27514f9960159f7432cd64406f596a2
67

Original comment by dmel...@gmail.com on 27 Nov 2010 at 11:02