How to add OpenGL Mathematics (GLM) in Xcode 4?

I can’t figure out how to add a framework to my project. I tried to add it, like any other framework, by clicking the plus button in the Linking Libraries section, then clicking the other button, and then selecting the GLM folder. But when I turn it on, autocomplete works, but it cannot be created because it says that the file was not found.

Website for library: http://glm.g-truc.net/

+4
source share
3 answers

According to the website, this is not a framework, these are just headers. You just need to add headers directly to your project.

+5
source

If you get a Match-O Link error, be sure to delete / delete the core / dummy.cpp file, this will not allow compilation.

+4
source

When I imported the headers in Xcode 5, it tried to link glm.cpp and dummy.cpp automatically in the build phase. I deleted them and now compile.

It was also necessary to rename all my files to * .mm for compilation using obj-C ++.

0
source

Source: https://habr.com/ru/post/1389918/


All Articles