Sunday, September 15, 2013

Compiling the MUL controller on the RaspberryPi.... CodeChix ONF Driver Competition Team !!

So, four of us have been hunkered down for days for the final push towards the CodeChix ONF Driver Competition (will post more on that - don't have time to do a post right now).

Final run through and submission checklisting before submission after 14+ hours today !

Compiling the CC-ONF-Driver codebase went through like a breeze.

Not so for the MUL controller code.  I kept getting glib errors even after installing libglib2.0-dev etc.  So, the following hacks were needed to get "./configure" to work and for the source to compile.

  1. Get your local paths to the glib lib - "pkg-config --cflags glib-2.0"
  2. Symlink stuff to whatever "configure" expects - "sudo ln -s /usr/lib/arm-linux-gnueabihf/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glib/glibconfig.h"
  3. sudo mkdir -p /usr/include/glib-2.0/glib/.libs
  4. sudo ln -s /usr/lib/arm-linux-gnueabihf/ /usr/include/glib-2.0/glib/.libs/
  5. sudo ln -s /usr/include/glib-2.0/glib.h /usr/include/glib-2.0/glib/glib.h
  6. sudo make
  7. sudo make install
And you should be good to go!

Shout out to Dipjyoti Saikia (from Korea)!  Dipjyoti - hope you can use my Rpi hacks above for ARM porting, should you need to do so.  We couldn't have done this without your support and help with the MUL controller over the last several months!  The team high-fives you virtually!

Ramya/Deepa just found a fix for a bug thread locks!  

Onwards towards submission..... and more champagne!