-
Notifications
You must be signed in to change notification settings - Fork 5
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
LabVIEW.lib linking #4
Comments
Done a first version where:
Is the produced item forward compatible? Probably no guarantees. Looked at dynamic loading such as demonstrated in JKISoftware/toml-edit-labview#3 but moved to the simpler route to start as I couldn't dynamically load with just the library name like I thought might work. Jim does point out a way in that issue to do it with current exe which is a nice route. All-in-all needs a little more thought still |
If we wanted dynamic linking then the ctor crate looks like the answer to avoid complexity on the first call: https://docs.rs/ctor/latest/ctor/ The obvious downside will be performance though, if we centrally create this do we need thread-safe structures? Is there a way to abstract this so it can be an option to do stator or dynamic. Why Not Just Static?Static is preferred so why not just static.
|
This looks like exactly what we need for runtime loading of the labview functions: https://crates.io/crates/dlopen |
Done this with ctor and dlopen2 (since dlopen is unsupported) |
Manager and other LabVIEW functions require linking to LabVIEW.lib in the relevant LabVIEW installs cintools folder.
The detection and linking of this will probably either need:
The text was updated successfully, but these errors were encountered: