Skip to content

Ubuntu toolchain setup

mark97229 edited this page Aug 3, 2011 · 10 revisions

==The following are notes from setting up and using the development tools on a Ubuntu-11.04-i386 development host ==

There where some gotchas with getting the tools to work and the code to build. There is painful detail and screen casts at the bottom available on this blog Here I will include the important bits I think folks may find useful.

--MPLABx on ubuntu--

  • mplabx doesn't like oracle jdk7.
  • set JAVA_HOME, and PATH variables such that the JDK of your choosing is used.
  • installing mplabx needs to be one as root and also needs the JAVA_HOME set to work correctly.
  • using the MPLABx as UI to the PICkit3 by making a new project as a pre-built project and navigating to the hex file to use. Program device by right clicking on the project and selecting "program device"

--Android SDK + Eclipse + building ioio APK's--

  • use import... to import IOIOlib and whatever APK projects you are building.
  • be sure to set the android target to whatever you need to for your device.
  • under project properties Java Compiler make sure to deselect "Enable Project specific settings"
  • you may need to make a IOIOlib/res directory
  • go to the Project Menu (on the menu bar) and select clean...
  • then building the APK tends to work.