Friday, January 25, 2013

PhysX linux linking

PhysX offers binary static libs for linux. Linking static libs under linux is tricky. Order matters.

I found -lPhysx3 must be the first one.

Tuesday, January 1, 2013

Parse error at "BOOST_JOIN"

When I compiled RGBDemo/nestk, I got Parse error at "BOOST_JOIN" error. It happened when using cmake, qt4, and boost>1.47 while Qt4 moc was trying to moc boost.

Neither qt or boost community will fix this problem. There are 2 kinds of workarounds I find.

#1(I never tested)
Add
#ifndef Q_MOC_RUN
#endif
to exclude boost head files for qt moc.

#2
change cmake file from
QT4_WRAP_CPP(...)
to
QT4_WRAP_CPP(... OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)

With #2, rgbdemo compiled.