Hi all,
I have a successful build of 2.0.1 for Android (after some hacking) but I got stuck needing to move "static" bodies about. This is solved in 2.1 with the introduction of kinematic bodies (beautiful!) however I am now stuck building 2.1 for Android due to the use of the std::sort function in b2BroadPhase.h:
Unfortunately Android does not have an implementation of STL. This is the only bit of code causing a problem for me, so if I can alter this to use some other custom sort function, or somehow remove the need to sort all my [box2d] problems would be solved.
Anyone got any ideas on the best approach to get this puppy building for Android?
Thanks,
Jason.
I have a successful build of 2.0.1 for Android (after some hacking) but I got stuck needing to move "static" bodies about. This is solved in 2.1 with the introduction of kinematic bodies (beautiful!) however I am now stuck building 2.1 for Android due to the use of the std::sort function in b2BroadPhase.h:
Code:
// Sort the pair buffer to expose duplicates.
std::sort(m_pairBuffer, m_pairBuffer + m_pairCount, b2PairLessThan);
std::sort(m_pairBuffer, m_pairBuffer + m_pairCount, b2PairLessThan);
Unfortunately Android does not have an implementation of STL. This is the only bit of code causing a problem for me, so if I can alter this to use some other custom sort function, or somehow remove the need to sort all my [box2d] problems would be solved.
Anyone got any ideas on the best approach to get this puppy building for Android?
Thanks,
Jason.