September 28, 2021 Re: Loading assimp | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dlearner | I am trying to use a newer version of Assimp. I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll When running my executable it throws a derelict.util.exception.SharedLibLoadException: "Failed to load one or more shared libraries: assimp.dll - %1 is not a valid Win32 application. Assimp64.dll - The specified module could not be found" Any idea what's going on? Are 64bit dlls not supported? |
September 28, 2021 Re: Loading assimp | ||||
---|---|---|---|---|
| ||||
Posted in reply to Eric_DD | On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote:
> I am trying to use a newer version of Assimp.
> I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll
>
> When running my executable it throws a derelict.util.exception.SharedLibLoadException:
>
> "Failed to load one or more shared libraries:
> assimp.dll - %1 is not a valid Win32 application.
> Assimp64.dll - The specified module could not be found"
>
> Any idea what's going on? Are 64bit dlls not supported?
try to rename it to Assimp64.dll
|
September 28, 2021 Re: Loading assimp | ||||
---|---|---|---|---|
| ||||
Posted in reply to russhy | On Tuesday, 28 September 2021 at 19:59:09 UTC, russhy wrote:
> On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote:
>> I am trying to use a newer version of Assimp.
>> I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll
>>
>> When running my executable it throws a derelict.util.exception.SharedLibLoadException:
>>
>> "Failed to load one or more shared libraries:
>> assimp.dll - %1 is not a valid Win32 application.
>> Assimp64.dll - The specified module could not be found"
>>
>> Any idea what's going on? Are 64bit dlls not supported?
>
> try to rename it to Assimp64.dll
Nah :) Already tried that. It just swaps the file names in the error message.
|
September 29, 2021 Re: Loading assimp | ||||
---|---|---|---|---|
| ||||
Posted in reply to Eric_DD | On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote:
> I am trying to use a newer version of Assimp.
> I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll
>
> When running my executable it throws a derelict.util.exception.SharedLibLoadException:
>
> "Failed to load one or more shared libraries:
> assimp.dll - %1 is not a valid Win32 application.
> Assimp64.dll - The specified module could not be found"
>
> Any idea what's going on? Are 64bit dlls not supported?
I'm not maintaining the package anymore, but this is an error from the system loader and has nothing to do with the binding itself. It's the sort of error that usually pops up when trying to load a 32-bit DLL into a 64-bit program, or vice versa. Are you sure it's a 64-bit DLL?
|
September 29, 2021 Re: Loading assimp | ||||
---|---|---|---|---|
| ||||
Posted in reply to Eric_DD | On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote:
> I am trying to use a newer version of Assimp.
> I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll
>
> When running my executable it throws a derelict.util.exception.SharedLibLoadException:
>
> "Failed to load one or more shared libraries:
> assimp.dll - %1 is not a valid Win32 application.
> Assimp64.dll - The specified module could not be found"
>
> Any idea what's going on? Are 64bit dlls not supported?
If using dub you can build your D programs with
dub -a x86 for a 32-bit executable
dub -a x86_64 for a 64-bit executable (which is also the default thankfully).
Your problem is very probably trying to load a 32-bit DLL into a 64 host program.
|
September 29, 2021 Re: Loading assimp | ||||
---|---|---|---|---|
| ||||
Posted in reply to Eric_DD | On Tuesday, 28 September 2021 at 20:09:41 UTC, Eric_DD wrote: > On Tuesday, 28 September 2021 at 19:59:09 UTC, russhy wrote: >> On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote: >>> I am trying to use a newer version of Assimp. >>> I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll >>> >>> When running my executable it throws a derelict.util.exception.SharedLibLoadException: >>> >>> "Failed to load one or more shared libraries: >>> assimp.dll - %1 is not a valid Win32 application. >>> Assimp64.dll - The specified module could not be found" >>> >>> Any idea what's going on? Are 64bit dlls not supported? >> >> try to rename it to Assimp64.dll > > Nah :) Already tried that. It just swaps the file names in the error message. Derelict is kinda old anyways, to make sure we use up to date stuff, try to migrate to bindbc one https://github.com/Sobaya007/bindbc-assimp https://code.dlang.org/packages/bindbc-assimp If i were you i'd compile the project myself, so you know what your DLL is https://github.com/assimp/assimp https://github.com/assimp/assimp/blob/master/Build.md |
September 29, 2021 Re: Loading assimp | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Wednesday, 29 September 2021 at 02:47:09 UTC, Mike Parker wrote:
> On Tuesday, 28 September 2021 at 16:30:09 UTC, Eric_DD wrote:
>> I am trying to use a newer version of Assimp.
>> I have found a assimp-vc140-mt.dll (v3.3.1) which I renamed to assimp.dll
>>
>> When running my executable it throws a derelict.util.exception.SharedLibLoadException:
>>
>> "Failed to load one or more shared libraries:
>> assimp.dll - %1 is not a valid Win32 application.
>> Assimp64.dll - The specified module could not be found"
>>
>> Any idea what's going on? Are 64bit dlls not supported?
>
> I'm not maintaining the package anymore, but this is an error from the system loader and has nothing to do with the binding itself. It's the sort of error that usually pops up when trying to load a 32-bit DLL into a 64-bit program, or vice versa. Are you sure it's a 64-bit DLL?
why my messages are not sent?
|
Copyright © 1999-2021 by the D Language Foundation