Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FMI4j in a Windows environment fails to load the Resistor. DLL file #139

Closed
2018-Summer opened this issue Jan 8, 2022 · 5 comments
Closed

Comments

@2018-Summer
Copy link

[FMI native bridge] Fatal: Failed to load library 'C:\Users\zbd\AppData\Local\Temp\fmi4j_Resistor(2)1423203123758737048\binaries\win64/Resistor.dll', error: 126
This Resistor.dll exists in this path, and there is no problem with checking Resistor.fmu with fmuCheck.win64.exe, but I know what causes this problem

@markaren
Copy link
Member

markaren commented Jan 9, 2022

but I know what causes this problem

Ok?

With that said, running PythonFMU FMUs using FMI4j is a common procedure at my institution and there has not been any issues.

@2018-Summer
Copy link
Author

2018-Summer commented Jan 10, 2022

Sorry, I made a mistake. I don't know what caused this problem. Could you tell me why?

@markaren
Copy link
Member

You will need to scan the dependencies of the dll, but it is weird that fmuCheck works. Did you by any chance run fmucheck with a modified PATH?

@2018-Summer
Copy link
Author

When you say DLL dependencies, do you mean Python packages? How should I scan?

@markaren
Copy link
Member

Scan the Resistor.dll using e.g Dependency Walker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants