Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile Assimp with QtZlib
Qt 6.11 is out! See what's new in the release blog

Compile Assimp with QtZlib

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wwolff
    wrote on last edited by SGaist
    #1

    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' linkage

    How 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]

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wwolff
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved