chipKIT® Development Platform

Inspired by Arduino™

Ubuntu 14.04LTS 64-bit Installation

Created Tue, 23 Sep 2014 01:31:19 +0000 by jmlynesjr


jmlynesjr

Tue, 23 Sep 2014 01:31:19 +0000

Good Evening:

The old 32-bit IBM Thinkpad finally died and has been replaced by a shiny new 64-bit HP 15 with Intel Quad Core 2.6 Ghz processor.

Windows 8 has been replaced by Ubuntu 14.04LTS.

mpide-0023-linux64-20140821 was downloaded and extracted.

./mpide errors with java not being found.

Installed java- sudo apt-get install openjdk-7-jdk sudo apt-get install librxtx-java sudo apt-get install gcc-avr

./mpide now opens

Set up a SKETCHES directory and loaded the "blink" example.

Verify fails:

error=2, No such file or directory Cannot run program "/home/pete/MPIDE/mpide-0023-linux64-20140821/hardware/pic32/compiler/pic32-tools/bin/pic32-g++"

pic32-g++ exists in the above directory and has execute permissions.

What else needs to be setup/installed?

Thanks, James

Update: Last debug messages:

20628 [Thread-1] DEBUG processing.app.Base - getSketchFlderPath: /home/pete/MPIDE/mpide-0023-linux64-20140821/examples/1.Basics/Blink 20628 [Thread-1] DEBUG processing.app.Base - 1. compileSketch 20628 [Thread-1] DEBUG processing.app.Base - compileSketch: start 20 20629 [Thread-1] DEBUG processing.app.Base - Source: /tmp/build6155606919596935879.tmp/Blink.cpp 20630 [Thread-1] DEBUG processing.app.Base - execAsynchronously: start


majenko

Tue, 23 Sep 2014 09:12:51 +0000

I believe the compiler is compiled for 32-bit, not 64-bit. You will need to have the 32-bit support libraries installed.

For UECIDE's 64-bit .deb package this is the list of dependencies I have:

default-jre extra-xdg-menus libftdi1 libjna-java libc6-i386 zlib1g:i386

Of course, you may need the 32-bit rxtx libraries installed too (which UECIDE did away with ages ago).

You can run "ldd" on the compiler executable to see what libraries it needs to run:

$ ldd ./pic32-gcc
	linux-gate.so.1 =>  (0xf776a000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7582000)
	/lib/ld-linux.so.2 (0xf776b000)

jmlynesjr

Tue, 23 Sep 2014 20:56:35 +0000

Now have it compiling!

Found a good post by Samuel Toepke from which this is shamelessly "borrowed".

This worked for him under 12.04:

sudo apt-get install
      openjdk-7-jdk
      librxtx-java
      ia32-libs
      libreadline6:i386
      libelf1:i386
      gcc-avr
sudo usermod -aG dialout your-user-name

When I tried this ia32-libs and libelf1:i386 were not found. I tried libelfg0 which was already installed and up to date. libreadline6:i386 did install. openjdk-7-jdk, librxtx-java and gcc-avr had been previously installed.

./mpide runs and now compiles the blink example.

So it appears that Ubuntu 14.04LTS 64-bit installation requires the following:

sudo apt-get install
      openjdk-7-jdk
      librxtx-java
      libreadline6:i386
      gcc-avr
sudo usermod -aG dialout pete

Disclaimer*** Haven't tried the download yet***

James


jmlynesjr

Wed, 24 Sep 2014 20:01:09 +0000

Ok, I now have an mipide icon on the launcher.

Create a file named mpide.desktop containing:

[Desktop Entry]
Type=Application
Terminal=false
Name=mpide
Icon=/home/your-user-name/mpide/mpide-0023-linux64-20140821/lib/theme/mpide-icon.png
Exec=/home/your-user-name/mpide/mpide-0023-linux64-20140821/mpide

Move this file to:

/home/your-user-name/.local/share/applications

Set this file to executable, icon will change to the mpide icon. Drag and drop this file onto the launcher. Launch mpide.

(This stuff should be in the wiki! Can you even buy a 32bit machine anymore?)

James


majenko

Wed, 24 Sep 2014 21:37:58 +0000

... or just use UECIDE with its .deb package ;)


jmlynesjr

Thu, 25 Sep 2014 18:00:12 +0000

You are good at marketing! :D

Seriously.... all of your help on this forum is appreciated.

James