Wiki

Clone wiki

tpose / Home

How do I get set up?

Install GCC

Before grabbing the tpose source code, make sure you can compile it! If you don't have gcc or make installed do the following first.

GNU/Linux
#!bash

sudo apt-get install gcc make
or
#!bash

sudo yum install gcc make

OSX

Best done via homebrew (an OSX package manager).

#!bash

brew install gcc
Homebrew typically installs in /usr/local/bin/. The name will be something like 'gcc-5'. Check this using:
#!bash

ls /usr/local/bin/gcc*

Build issues

The most common issue happens when trying to build tpose on a Mac, when the version of gcc is different to the one referenced in the Makefile. To remedy this, if you installed gcc via homebrew, get the version of gcc by:

#!bash

$ brew list gcc
/usr/local/Cellar/gcc/5.2.0/bin/c++-5
/usr/local/Cellar/gcc/5.2.0/bin/cpp-5
/usr/local/Cellar/gcc/5.2.0/bin/g++-5
/usr/local/Cellar/gcc/5.2.0/bin/gcc-5
/usr/local/Cellar/gcc/5.2.0/bin/gcc-ar-5
/usr/local/Cellar/gcc/5.2.0/bin/gcc-nm-5
...
We are interested in the line '.../bin/gcc-5'. You might have another version of gcc, but it will always follow this pattern. So, now that we know the version, let's edit the Makefile so that it matches this. Open the file called Makefile, and locate this line:
#!make
ifeq ($(shell uname -s), Darwin)
    compiler = gcc-5
Now change gcc-5 to match your version of gcc. Try building tpose again... hopefully this time it will be installed without any problem!

Updated