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

Find proxyfmu using parent executable #41

Merged
merged 13 commits into from
Sep 13, 2021
Merged

Find proxyfmu using parent executable #41

merged 13 commits into from
Sep 13, 2021

Conversation

markaren
Copy link
Collaborator

@markaren markaren commented Sep 8, 2021

Closes #40

Unsure if this works on linux without linker flags.

Also resolves #39

@ljamt
Copy link
Member

ljamt commented Sep 9, 2021

Works well on windows. Unfortunately not on linux.
When running cosim-cli from a path different from where the executable is located is fails:

[proxyfmu] Booting FMU instance 'mass'..
terminate called after throwing an instance of 'boost::process::process_error'
  what():  execve failed: No such file or directory
Aborted

@markaren
Copy link
Collaborator Author

markaren commented Sep 9, 2021

Then it might be the rdynamic linker option that we need, but the error suggests that it actually works, but it might not like the string format of the executable path.

@ljamt
Copy link
Member

ljamt commented Sep 10, 2021

BTW, works well on linux if cosim-cli is called from its path.

@markaren
Copy link
Collaborator Author

Should work now. Also fixed an issue where proxyfmu would only work in a bash shell in windows. It never used the .exe postfix...

@markaren markaren merged commit 7e7d43f into master Sep 13, 2021
@markaren markaren deleted the workdir branch September 13, 2021 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrectly assumes proxyfmu.exe in working directory logging that proxies start
3 participants