Building MegaTunix On Debian/Ubuntu
Posted: Sun Mar 11, 2012 3:40 pm
If you don't have instructions to do this, then it's quite painful because you have to run the configure script repeatedly and install one package at a time. So, I present to you today, some instructions so that this may be easy for the next person. This thread will likely get superceded by the quick start script fairly soon, however it can be used to put content into that script, so it's not in vein.
Before you start, update your apt cache like this:
First you need to get git! If you already have git, obviously you should skip this step.
Note, if you have an old system you may need to use this command instead:
Then you need to clone the source, choose or make a directory, such as "~/workspaces/freeems/" and do this inside it:
You can get the git clone URL from the Recommended Versions Of All Software thread.
Then you need to get the prerequisite libraries of MTX, there are quite a few, I'll list them, then provide a single apt-get line:
At this point you're ready to build, do these steps one by one:
MegaTunix is now installed on your system, so all you need to do to run it is this:
However you'll likely find it convenient to do this instead:
The above build sequence assumes that the application will work flawlessly, which is sometimes not true. If you have trouble, make sure you can reproduce it, then rebuild like this:
Now run it a little differently by following these steps:
Record the actions required to generate the fault exactly, and any info about the application such as a screen shot of it when frozen, the git hash you were using, etc and file an issue report on the tracker using this guide.
If you've already cloned the MegaTunix git repository, to update it do this:
And then build it as per the instructions above.
Tested OK 11th Feb 2013 on hash 8991b6ee98ac4bddd4bd67396968e1989014f15e
I hope that gets you up and running with MegaTunix quickly and easily.
Fred.
Before you start, update your apt cache like this:
Code: Select all
sudo apt-get update
Code: Select all
sudo apt-get install git
Code: Select all
sudo apt-get install git-core
Code: Select all
mkdir -p ~/workspaces/freeems
cd ~/workspaces/freeems/
git clone <url from following thread>
Then you need to get the prerequisite libraries of MTX, there are quite a few, I'll list them, then provide a single apt-get line:
- autoconf
- libtool
- intltool
- flex
- bison
- libpango1.0-dev
- libglade2-dev
- libgtkglext1-dev
- g++
Code: Select all
sudo apt-get install autoconf libtool intltool flex bison libpango1.0-dev libglade2-dev libgtkglext1-dev g++
Code: Select all
cd ~/workspaces/freeems/MegaTunix/
./autogen.sh
make
sudo make install
sudo ldconfig
Code: Select all
megatunix
Code: Select all
megatunix -p FreeEMS -P /dev/ttyUSB0
Code: Select all
cd ~/workspaces/freeems/MegaTunix/
make clean
./autogen.sh --enable-debug
make
sudo make install
Code: Select all
cd ~/workspaces/freeems/MegaTunix/src/
gdb .libs/megatunix
run --g-fatal-warnings <options you use normally>
If you've already cloned the MegaTunix git repository, to update it do this:
Code: Select all
cd ~/workspaces/freeems/MegaTunix/
make clean
git pull
Tested OK 11th Feb 2013 on hash 8991b6ee98ac4bddd4bd67396968e1989014f15e
I hope that gets you up and running with MegaTunix quickly and easily.
Fred.