Adding external box2d Library to qt
-
Hello, I wanted to add a physics simulation engine to qt. The external library is written in c++ and some people already implemented it but how can I include it to my project
UNfortunately, there is not much information about that
Thanks for your help
-
As can be seen on the github-repo you need to compile the library as described here: https://github.com/erincatto/box2d
After that you create your Qt project and add the libraries /include path to your project. Now you can implement your stuff using the classes from the lib and finally you need to link the lib in your qmake/CMake project file. So there isn't really any Qt involved here. -
Old but still valid: https://www.qt.io/blog/2010/02/26/qt-box2d-is-easy
-
Old but still valid: https://www.qt.io/blog/2010/02/26/qt-box2d-is-easy