Question

I'm using QT 5 with QGLWidget for opengl and need to import some 3ds models. Some people suggested me to use lib3ds, but i cant figure how to use it right.In my .pro file i wrote this: INCLUDEPATH += "C:\Chrome downloads\lib3ds-1.3.0" but when i'm including f.e. "lib3ds/file.h" and using method lib3ds_file_load() it says "error: undefined reference to `lib3ds_file_load'". Can you tell me how to include lib3ds to my qt project right?

Was it helpful?

Solution

Depending on how you want to include library in your project you should either include implementation of your library as c/c++ sources using SOURCES += ..< implementation files> OR add compiled library source, providing LIBS += -L -l

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top