Arduino 0018 dispo en version française (Windows)

Bonjour,

j'ai mis en ligne une version francisée du logiciel Arduino 0018 à télécharger en ligne... Tout marche pareil sauf que c'est en français...

http://www.mon-club-elec.fr/pmwiki_reference_arduino/pmwiki.php?n=Main.TelechargerArduinoFrancais

Pas belle la vie ? :wink:

A+

Le même pour MAC ? ::slight_smile:

Salut,

la compilation au format Mac Os ne semble pas pouvoir se faire sous Windows. Je n'ai malheureusement pas de Mac sous la main...

La procédure pour Mac est comparable et est expliquée ici :
http://code.google.com/p/arduino/wiki/BuildingArduino

Je peux t'envoyer les sources modifiés en français si tu veux tenter la compil'...

A+

Envoie... et je tente un essai. :slight_smile:

J'ai un soucis... pour la compilation ça fonctionne, mais tout les caractères accentués deviennent bizarre. >:(

et je ne sais pas comment corriger cela lors de la compil.

ça vient d'un problème d'encodage du texte :wink:
Je n'ai pas le temps de tout traduire mais si tu m'envoies les sources je peux regarder :slight_smile:

Les sources sont ok, mais c'est quand je compile que ça foire....

Je viens de vérifier c'est bien un problème d'encodage.
Il faut préciser au compilateur quel est l'encodage du fichier avec l'argument "-encoding "
Remplace le fichier make.sh par ce qui suis. Si ça ne marche pas essaie de changer UTF-8 en ISO-8859-1

#!/bin/sh

# http://dev.processing.org/bugs/show_bug.cgi?id=1179
OSX_VERSION=`sw_vers | grep ProductVersion | awk '{print $2}' | awk '{print substr($0,1,4)}'`
if [ "$OSX_VERSION" = "10.4" ]
then
  echo "This script uses the -X option for cp (to disable resource forks),"
  echo "which is not supported on OS X 10.4. Please either upgrade to 10.5,"
  echo "or modify this script to remove use of the -X switch to continue."
  # and you will also need to remove this error message
  exit
fi


### -- SETUP WORK DIR -------------------------------------------

RESOURCES=`pwd`/work/Arduino.app/Contents/Resources/Java
#echo $RESOURCES
#exit

if test -d work
then
  BUILD_PREPROC=false
else
  echo Setting up directories to build under Mac OS X
  BUILD_PREPROC=true

  mkdir work

  # to have a copy of this guy around for messing with
  echo Copying Arduino.app...
  #cp -a dist/Arduino.app work/   # #@$(* bsd switches
  #/sw/bin/cp -a dist/Arduino.app work/
  cp -pRX dist/Arduino.app work/
  # cvs doesn't seem to want to honor the +x bit 
  chmod +x work/Arduino.app/Contents/MacOS/JavaApplicationStub

  cp -rX ../shared/lib "$RESOURCES/"
  cp -rX ../../libraries "$RESOURCES/"
  cp -rX ../shared/tools "$RESOURCES/"

  cp -rX ../../hardware "$RESOURCES/"

  cp -X ../../app/lib/antlr.jar "$RESOURCES/"
  cp -X ../../app/lib/ecj.jar "$RESOURCES/"
  cp -X ../../app/lib/jna.jar "$RESOURCES/"
  cp -X ../../app/lib/oro.jar "$RESOURCES/"
  cp -X ../../app/lib/RXTXcomm.jar "$RESOURCES/"

  echo Copying examples...
  cp -r ../shared/examples "$RESOURCES/"

  echo Extracting reference...
  unzip -q -d "$RESOURCES/" ../shared/reference.zip

  echo Extracting avr tools...
  unzip -q -d "$RESOURCES/hardware" dist/tools-universal.zip
fi


### -- START BUILDING -------------------------------------------

# move to root 'processing' directory
cd ../..


### -- BUILD CORE ----------------------------------------------

echo Building processing.core...

cd core

#CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Classes/ui.jar:/System/Library/Java/Extensions/QTJava.zip
#export CLASSPATH

perl preproc.pl

mkdir -p bin
javac -encoding UTF-8 -source 1.5 -target 1.5 -d bin \
  src/processing/core/*.java \
  src/processing/xml/*.java

rm -f "$RESOURCES/core.jar"

cd bin && \
  zip -rq "$RESOURCES/core.jar" \
  processing/core/*.class \
  processing/xml/*.class \
  && cd ..

# head back to "processing/app"
cd ../app



### -- BUILD PDE ------------------------------------------------

echo Building the PDE...

# For some reason, javac really wants this folder to exist beforehand.
rm -rf ../build/macosx/work/classes
mkdir ../build/macosx/work/classes
# Intentionally keeping this separate from the 'bin' folder
# used by eclipse so that they don't cause conflicts.

javac -encoding UTF-8 \
    -Xlint:deprecation \
    -source 1.5 -target 1.5 \
    -classpath "$RESOURCES/core.jar:$RESOURCES/antlr.jar:$RESOURCES/ecj.jar:$RESOURCES/jna.jar:$RESOURCES/oro.jar:$RESOURCES/RXTXcomm.jar" \
    -d ../build/macosx/work/classes \
    src/processing/app/*.java \
    src/processing/app/debug/*.java \
    src/processing/app/macosx/*.java \
    src/processing/app/preproc/*.java \
    src/processing/app/syntax/*.java \
    src/processing/app/tools/*.java

cd ../build/macosx/work/classes
rm -f "$RESOURCES/pde.jar"
zip -0rq "$RESOURCES/pde.jar" .
cd ../..

# get updated core.jar and pde.jar; also antlr.jar and others
#mkdir -p work/Arduino.app/Contents/Resources/Java/
#cp work/lib/*.jar work/Arduino.app/Contents/Resources/Java/


echo
echo Done.

La première solution n'a pas marché... environ 100 Warning :slight_smile:

et la deuxième est ok :wink: ça a fonctionné.

Merci.

J'envoie ça à Xavier qui le mettra en ligne.