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

Windows DLL Path #344

Open
EricksonTim opened this issue Jan 26, 2024 · 2 comments
Open

Windows DLL Path #344

EricksonTim opened this issue Jan 26, 2024 · 2 comments

Comments

@EricksonTim
Copy link

EricksonTim commented Jan 26, 2024

When a LabVIEW Client is built into an exe, the path to the DLL resolves to "\Libraries\Win32"

However, using a typical build specification, the DLL is not copied to this folder because of the way the path is dynamically determined in "Get Server DLL Path.vi"

What is the recommended way to include the DLL in the build process?

AB#2636750

@bbanacki
Copy link

bbanacki commented Feb 7, 2024

I have encountered this issue as well, if a build is created and deployed on a machine without LabVIEW and the GRPC package installed the "\Libraries\Win32\labview_grpc_server .dll" file will not exist. Temporarily I've modified the "Get Server DLL Path.vi" and placed the file in the data folder. It may not be the best approach but it worked until it's officially supported.
image

@dreamflow
Copy link

dreamflow commented May 6, 2024

@EricksonTim :

i've automatised it like this :

.lvproject file -> project explorer -> build specifications
-> pre/post build actions
-> [X] execute vi after build
within this sepcial execute-after-build.vi , is available
the build_dirPath (= where the compiled exe lands) .

the compiled exe expects relative to itself in the folder
"Libraries\Win64\" : the "labview_grpc_server.dll"
together with the "feature_config.ini" .

therefore the folder "Win64\" (or "Win32\") sitting in
"<vilib_dirPath>\gRPC\LabVIEW gRPC Library\Libraries\"
needs to be copied into the folder
"<build_dirPath>\Libraries\" .

the VI Library Function delivers the vilib_dirPath .

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

No branches or pull requests

3 participants