I'm trying to use assimp(on linux) for loading 3D models into my project and building the library itself is very easy since it has a cMakeLists.txt file that automates the build process. But, once the library is built it provides the a folder assimp with the structure:
I think the three major folders to note here are the bin, the lib and the include
My project structure is basically like this:
The command I would use for compiling before assimp was in my project requirement was this:
> g++ -std=c++17 -I/home/user/lighting/mLib main7.cpp -o main.out -lGL -lglfw -lGLU
But, now I am confused with these things:
- Am I supposed to link to the binary in the
binor thelibfiles in theassimp/libfolder. - I have included the header files in my source code and specified the include path, but how am I supposed to link to the libraries of the assimp?
- There are 4
libfiles inside theassimp/libfolder, which ones am I supposed to link to? - Even though I'm using make to automate the build, but what would be the terminal command to build the project linking the assimp library?
I try to use the following but it throws an -lassimp not found error:
> g++ -std=c++17 -I/home/user/lighting/mLib -L/home/user/lighting/assimp/lib main7.cpp -o main.out -lGL -lglfw -lGLU -lassimp

