Showing posts with label IDE. Show all posts
Showing posts with label IDE. Show all posts

Tuesday, February 19, 2019

Install Arduino IDE on Raspberry Pi/Raspbian Stretch

This video show how to Install Arduino IDE 1.8.8 on Raspberry Pi 3 B+/Raspbian Stretch. Such that you can program Arduino board on Raspberry Pi.


Setup under test:
Board - Raspberry Pi 3 B+
OS - Raspbian Stretch with desktop and recommended software (Version:November 2018, Release date:2018-11-13)
IDE: Arduino IDE 1.8.8 (Linux ARM)
Arduino Board: Mega 2560

In order to capture the screen action, I remote control the Raspberry Pi from Windows 10 via VNC viewer.

The steps is very straightforward:

- Visit Arduino Download page, download Arduino IDE of Linux ARM.

- After download completed, extract the downloaded file.

- Run the install script:
$ sudo ./install.sh

- After finished, you can run the Arduino IDE in Raspbian desktop Menu -> Programming -> Arduino IDE.

In my case the following error reported when run install.sh:
touch: cannot touch '/root/.local/share/applications/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 803: /usr/bin/xdg-mime: cannot create /root/.local/share/applications/mimeapps.list.new: Directory nonexistent

It may be caused by mis-located of the file mimeapps.list. Actually the install.sh only add the desktop shortcut, menu item and file associations for Arduino IDE. This error should not affect the functionality. Alternatively, you can run the IDE by switch to the extracted directory, and run the arduino directly.


Add Arduino core for ESP8266 WiFi chip to Arduino IDE:

Arduino core for ESP8266 WiFi chip brings support for ESP8266 chip to the Arduino environment. It lets you write sketches using familiar Arduino functions and libraries, and run them directly on ESP8266, no external microcontroller required.

ESP8266 Arduino core comes with libraries to communicate over WiFi using TCP and UDP, set up HTTP, mDNS, SSDP, and DNS servers, do OTA updates, use a file system in flash memory, work with SD cards, servos, SPI and I2C peripherals.

Once Arduino IDE installed, you can follow the same steps in my old post to "Add Arduino core for ESP8266 to Arduino IDE (run on Raspberry Pi/Raspbian Jessie with PIXEL)".


reference:
Arduino core for ESP8266 WiFi chip project page: https://github.com/esp8266/arduino
Additional Board Manager URLs:
http://arduino.esp8266.com/stable/package_esp8266com_index.json


Arduino core for ESP32 WiFi chip is another similar project to bring support of ESP32 to Arduino IDE. It can be installed to Arduino IDE by following the same step on normal PC. But, I tried to install it to Arduino IDE on Raspberry Pi, it fail due to "Tool xtensa-esp32-elf-gcc is not available for your operating system"!


reference:
Arduino core for ESP32 WiFi chip project page: https://github.com/espressif/arduino-esp32
Additional Board Manager URLs:
https://dl.espressif.com/dl/package_esp32_index.json




Saturday, April 4, 2015

Install latest version of Mono and MonoDevelop on Raspberry Pi/Raspbian

My previous post show Install Mono/MonoDevelop on Raspberry Pi/Raspbian using the default package repository. The installed version will be mono 3.2.8 and monodevelop 3.0.3.2. Alternatively, we can update the package repository on the system to install with latest release: mono 3.12.1 and monodevelop 5.7.0 currently.




The page http://www.monodevelop.com/download/linux/ and http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives provide instructions to install MonoDevelop and Mono on Linux, include Debian. We can follow the steps to install on Raspberry Pi/Raspbian.

My steps is summrized here:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install mono-devel
sudo apt-get install mono-complete
sudo apt-get install referenceassemblies-pcl

sudo apt-get install monodevelop
sudo apt-get install monodevelop-nunit
sudo apt-get install monodevelop-versioncontrol
sudo apt-get install monodevelop-database

The videos show how to, on Raspberry Pi 2/Raspbian:



Here how it run remotely via ssh:



and via xrdp on Raspberry Pi and remmina on Ubuntu Linux:




Related:
- Solve MonoDevelop error: cannot execute "...". File name hase not been set.

Thursday, April 2, 2015

Create Gtk# application using C#/MonoDevelop on Raspberry Pi

This video show creating Gtk# GUI application of Hello World on Raspberry Pi 2 using C#/MonoDevelop.




Related:
- Install Mono/MonoDevelop on Raspberry Pi/Raspbian


What is Gtk#?
Gtk# is a Graphical User Interface Toolkit for mono and .Net. The project binds the gtk+ toolkit and assorted GNOME libraries, enabling fully native graphical Gnome application development using the Mono and .Net development frameworks.
~ reference: http://www.mono-project.com/docs/gui/gtksharp/

Install Mono/MonoDevelop on Raspberry Pi/Raspbian

MonoDevelop run on Raspberry Pi 2/Raspbian


Mono, sponsored by Xamarin, is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.

MonoDevelop enables developers to quickly write desktop and web applications on Linux, Windows and Mac OS X.


Always run this commands to update your apt before installation:
$ sudo apt-get update
$ sudo apt-get upgrade

To install Mono/MonoDevelop on Raspberry Pi running Raspbian:
$ sudo apt-get install mono-complete
$ sudo apt-get install monodevelop

This video show how to install on Raspberry Pi 2 running Raspbian version 2015-02-16.


The current installed version is mono-complete 3.2.8 and monodevelop 3.0.3.2.


Once installed, run it with Menu > Programming > MonoDevelop




THis video show a "Hello World" of C# console program build using MonoDevelop running on Raspberry Pi 2:


Next:
- Create Gtk# application using C#/MonoDevelop on Raspberry Pi 2

Related:
- Solve MonoDevelop error: cannot execute "...". File name hase not been set.


Updated: Install latest version of Mono and MonoDevelop on Raspberry Pi/Raspbian

Sunday, March 22, 2015

Install C/C++ plugins for NetBeans on Raspberry Pi 2/Raspbian

It is assumed you have NetBeans 8.0.2 installed on your Raspberry Pi 2/Raspbian. By installing C/C++ plugins to NetBeans IDE, you can develop in C/C++.


- Click Tools -> Plugins
- Select Available Plugins tab
- Search C/C++, and check it.
- Click Install


Install NetBeans IDE on Raspberry Pi 2/Raspbian, to program using Java

NetBeans IDE is the official IDE for Java 8. With quad-core ARM Cortex-A7 CPU on Raspberry Pi 2, pre-loaded Java 8 on Raspbian, it's easy to install NetBeans 8 on Raspberry Pi.


Visit NetBeans Download page (https://netbeans.org/downloads/), select Platform of OS Independent Zip, download and un-zip to any folder you want.

Switch to the unzipped /netbeans/bin folder, run the executable file netbeans:
$ ./netbeans

This video show how to download and install NetBeans IDE 8.0.2 on Raspberry Pi 2.



It is seem JavaFX not supported currently




x Error of failed request: BadMatch (invalid parameter attributes)

In the above demo video, I log-in Raspberry Pi 2 remotely with xrdp run on RPi 2, and remmina (Remote Desktop Client) on another PC running Ubuntu Linux.

Originally, I set Color depth of High color (15 bpp), it work once only. After then, I run netbeans next time, it fail with following error:

x Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 72 (x_PutImage)
  Serial number of failed request: 51
  Current serial number in output stream: 55

To fix it in my case, set Color depth of High color (16 bpp).



Next:
- Install C/C++ plugins for NetBeans on Raspberry Pi 2/Raspbian

Related:
- A example of Java to get CPU frequency, build with NetBeans on Raspberry Pi, the jar run on other Linux machine also.

Thursday, March 19, 2015

Install Eclipse JDT on Raspberry Pi 2/Raspbian


To install Eclipse with JDT (Java development tools) on Raspberry Pi 2/Raspbian, enter the commands:
$ sudo apt-get install eclipse
$ sudo apt-get install eclipse-jdt

This video show how to:


Please notice:
- The installed version of Eclipse 3.8.0
- After installed, the default java and javac will be changed to 1.6.0 of OpenJDK!


This video show example of "Hello World" using Eclipse JDT.

Wednesday, March 19, 2014

Install Code::Blocks on Raspberry Pi

Code::Blocks is a open source, cross platform, free C, C++ and Fortran IDE.

To install Code::Blocks on Raspberry Pi, enter the command:
sudo apt-get install codeblocks

Current installed version is 10.05.
Code::Blocks
Code::Blocks installed on Raspberry Pi
Once installed, Code::Blocks can be start by enter the command:
codeblocks

Or click Start in X-Window > Programming > Code::Blocks IDE


Friday, November 15, 2013

Geany - small and fast Editor/IDE

Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has some nice features. For more details see Here.

To install Geany on Raspberry Pi, enter the command:
$ sudo apt-get install geany

Once installed, you can run Geany in Start > Programming > Geany
or enter the command:
$ geany

install Geany on Raspberry Pi

Geany run on Raspberry Pi