My arduino IDE is running in ubuntu 18 LTS. I have installed arduino using the ubuntu software center. It was installed by ubuntu using snap. The arduino software called 'arduino-mhall119' is locted in /home/user/snap. In order to use Ardublockly I need to know where the 'compiler location' of the arduino IDE is situated. Unfortunately, I can not find it. Any help appreciated.
Do this:
- File > Preferences
- Check the box next to "Show verbose output during: compilation".
- Click the "OK" button.
- Sketch > Verify/Compile
- After the compilation finishes, examine the contents of the black console window at the bottom of the Arduino IDE window. You need to scroll the window up to see it all. Somewhere in that output you will find the compiler path.
FYI, the last I heard that "arduino-mhall119" snap package was still providing Arduino IDE 1.8.5, while the latest version of the official Arduino IDE is 1.8.9. There have also been reports of uploading problems with the "arduino-mhall119" package, that were solved after switching to the official Arduino IDE. The "arduino-mhall119" version of the Arduino IDE has been modified in unknown ways. I recommend that you always use the official Arduino IDE, downloaded from:
Sorry, but when I execute ./install.sh in the downloaded folder (linux64 file from arduino website) , I get the following output:
Adding desktop shortcut, menu item and file associations for Arduino IDE...
rm: das Entfernen von '/usr/local/bin/arduino' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Removing symlink failed. Hope that's OK. If not then rerun as root with sudo.
rm: das Entfernen von '/usr/local/bin/arduino' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Removing symlink failed. Hope that's OK. If not then rerun as root with sudo.
ln: das angegebene Ziel '/usr/local/bin/arduino' ist kein Verzeichnis
Adding symlink failed. Hope that's OK. If not then rerun as root with sudo.
done!
Nothing seems to be installed. What to do?
The output in the black box of the bottom edge of the arduino IDE is as follows:
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_956890/core/core.a" "/tmp/arduino_build_956890/core/USBCore.cpp.o"
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_956890/core/core.a" "/tmp/arduino_build_956890/core/WMath.cpp.o"
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_956890/core/core.a" "/tmp/arduino_build_956890/core/WString.cpp.o"
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_956890/core/core.a" "/tmp/arduino_build_956890/core/abi.cpp.o"
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_956890/core/core.a" "/tmp/arduino_build_956890/core/main.cpp.o"
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-gcc-ar" rcs "/tmp/arduino_build_956890/core/core.a" "/tmp/arduino_build_956890/core/new.cpp.o"
Archiving built core (caching) in: /tmp/arduino_cache_379874/core/core_arduino_avr_uno_5ae566d2b74f299eedfb0fc6b9173d06.a
Linking everything together...
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "/tmp/arduino_build_956890/sketch_may17a.ino.elf" "/tmp/arduino_build_956890/sketch/sketch_may17a.ino.cpp.o" "/tmp/arduino_build_956890/core/core.a" "-L/tmp/arduino_build_956890" -lm
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "/tmp/arduino_build_956890/sketch_may17a.ino.elf" "/tmp/arduino_build_956890/sketch_may17a.ino.eep"
"/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-objcopy" -O ihex -R .eeprom "/tmp/arduino_build_956890/sketch_may17a.ino.elf" "/tmp/arduino_build_956890/sketch_may17a.ino.hex"
Where is here the compiler location in this output?
Compubarny:
Adding desktop shortcut, menu item and file associations for Arduino IDE...
rm: das Entfernen von '/usr/local/bin/arduino' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Removing symlink failed. Hope that's OK. If not then rerun as root with sudo.
rm: das Entfernen von '/usr/local/bin/arduino' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
Removing symlink failed. Hope that's OK. If not then rerun as root with sudo.
These warnings are expected on a first installation and don't indicate any problem so you can ignore them. Since they frequently cause confusion, the install script has been modified to avoid these warnings for the next release of the Arduino IDE:
Compubarny:
ln: das angegebene Ziel '/usr/local/bin/arduino' ist kein Verzeichnis
Adding symlink failed. Hope that's OK. If not then rerun as root with sudo.
done!
Use sudo to execute the install script so that it will have the appropriate permissions to create the symlink.
Compubarny:
Nothing seems to be installed. What to do?
There really isn't anything to install. It isn't even necessary to run the installation script. You can just run the file arduino that's in the Arduino IDE installation folder you downloaded and extracted and the Arduino IDE will start.
Compubarny:
Where is here the compiler location in this output?
I don't know exactly what Ardublockly means by 'compiler location'. The compiler is here:
/snap/arduino-mhall119/5/hardware/tools/avr/bin/avr-gcc
but it may be that they want some folder above that like /snap/arduino-mhall119/5/hardware/tools. I'd expect a program like Ardublockly to make the installation and configuration process very easy and well documented. The whole point of Ardublockly is to make it easy to program Arduino but that doesn't work well if it's extremely complicated to configure it.
Thank You for Your suggestions. I have done what You have recommended and it works.
Thank You very much! Have a nice weekend!
You're welcome. I'm glad to hear it's working now. Enjoy!
Per