www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Loading assimp

reply Dlearner <daz20 msn.com> writes:
I'm trying to use assimp to load models in a program.  I see the 
Derelict binding is for version 3.3, but the assimp site has no 
binaries for this, just source.  So I try to use version 3.1.1 
and I get this error:

derelict.util.exception.SymbolLoadException ..\..\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\u
il\exception.d(35): Failed to load symbol aiReleaseExportFormatDescription from
shared library assimp.dll

Is this a version problem that I need 3.3 for?  If so, I don't 
know how to build the .dll since I'm still new to programming.  
Please send help!  :)
Jan 09
parent reply Mike Parker <aldacron gmail.com> writes:
On Monday, 9 January 2017 at 18:13:03 UTC, Dlearner wrote:
 I'm trying to use assimp to load models in a program.  I see 
 the Derelict binding is for version 3.3, but the assimp site 
 has no binaries for this, just source.  So I try to use version 
 3.1.1 and I get this error:

 derelict.util.exception.SymbolLoadException ..\..\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\u
il\exception.d(35): Failed to load symbol aiReleaseExportFormatDescription from
shared library assimp.dll
Use version 1.1.1 of DerelictASSIMP3. It's implemented against ASSIMP 3.1.
Jan 09
parent reply Dlearner <daz20 msn.com> writes:
On Tuesday, 10 January 2017 at 00:10:12 UTC, Mike Parker wrote:
 On Monday, 9 January 2017 at 18:13:03 UTC, Dlearner wrote:
 I'm trying to use assimp to load models in a program.  I see 
 the Derelict binding is for version 3.3, but the assimp site 
 has no binaries for this, just source.  So I try to use 
 version 3.1.1 and I get this error:

 derelict.util.exception.SymbolLoadException ..\..\AppData\Roaming\dub\packages\derelict-util-2.0.6\derelict-util\source\derelict\u
il\exception.d(35): Failed to load symbol aiReleaseExportFormatDescription from
shared library assimp.dll
Use version 1.1.1 of DerelictASSIMP3. It's implemented against ASSIMP 3.1.
A-haa, thank you!
Jan 10
parent Dlearner <daz20 msn.com> writes:
Need to rez this thread because I ran into a wall.  Two little 
things:

1) Can't seem to get the Importer class to work ("undefined 
identifier 'Importer' ", etc), and
2) GetTexture and GetTextureCount for aiMaterial don't seem to 
work
(source\model.d(105,28): Error: no property 'GetTextureCount' for 
type 'aiMaterial*'
source\model.d(107,6): Error: no property 'GetTexture' for type 
'aiMaterial*')

There are some const issues, too, but I can hack around them.  
Does anyone have any experience with these?
Jan 29