Compile Assimp with QtZlib
-
Hi!
I´m trying compile a library for load 3D models called Assimp.
The library (with full source code) are being compiled properly , but i´m facing a weird problem.This library uses zlib as dependency, so when i install the code i replace the references of external zlib library by the QtZlib ibrary:
// zlib is needed for compressed blend files #ifndef ASSIMP_BUILD_NO_COMPRESSED_BLEND # ifdef ASSIMP_BUILD_NO_OWN_ZLIB # include <zlib.h> # else # include "../QtZlib/zlib.h" # endif #endif
So, after this i start receive errors from other components of Qt informing:
C:\Qt\5.4\msvc2013_64_opengl\include\QtCore\qglobal.h(378) : error C2894: templates cannot be declared to have 'C' linkage
C:\Qt\5.4\msvc2013_64_opengl\include\QtCore\qglobal.h(388) : error C2894: templates cannot be declared to have 'C' linkageHow can i Use the QtZlib library withou have this errors?
Any help will be much appreciated.
Kind Regards.[edit: Added missing coding tags ``` before and after the code SGaist]
-
Hey!
Just looking at a new version of Qt , i see a new component called Qt3D!!!
And looking inside...with Assimp integrated to load models!!!Ho my god!
I´m installing the new Qt now...but if this is true i will remove all the work i made in the last months...kkkkk