blackberry/GamePlay — pull request #1301 by asperous (2013-12-07 22:19:53+00:00)
Title: Fixes needed for FBX 2014.2

Platform: Linux/ xubuntu 12.04
Build-type: cmake
Build-type: debug

1. The FBX sdk seems to have upgraded from 2013.3 -> 2014.2 with api breaking changes. I wasn't able to find the 2013.3 sdk (your docs don't specify a version until I saw it in the encoder's cmake file) I wasn't able to use the pre-built executable in ``bin/linux`` due to

./gameplay-encoder: symbol lookup error: ./gameplay-encoder: undefined symbol:
_ZN13fbxsdk_2014_117FbxSurfaceLambert7ClassIdE

2. During rebuilding, I recieved 5 errors, 1) missing ``PATH_MAX``, 2) missing ``INT_MAX, 3) the ``GetLastErrorString`` api change 4) unable to link ``libfbxsdk-2013.3-static`` 5) unable to find ``ft2header.h``. I fixed 5 by just building in the super directory instead of in the encoder directory (your docs kinda specify that but it's unclear).

The changes listed here allow me to build and run the encoder.

The ``FBXSceneEncoder.cpp`` changes are probably the only changes needed for the new version and the rest are either linux-specific, or simply my machine-specific.