12-07-2021 09:21 AM
Hello All,
Got myself into some dependency path problems with a compiled EXE when dealing with a PPL calling another PPL and hope y'all can help out.
My basic setup:
Can anyone help me out and enlighten me on a way to get working test PPLs without dirtying the Main.vi loader list?
Thanks,
Mike
Solved! Go to Solution.
12-07-2021 02:09 PM
You need to create some "known folder" for where your library PPLs will live. This can be something like a folder in the ProgramData folder or the Public Application Data folder. For installation purposes don't keep your development PPLs there but in a separate folder that is the same relative path distance from the distribution folder. Also, the final location of your installed application must maintain that same relative path to the distribution PPL folder. Sounds complicated but it works. Take a look at my NI Week presentation regarding PPLs. Mine is the first one listed.
12-07-2021 02:22 PM
Additionally, you might want to consider using a package distribution to make sure all of the libraries go to the right location.
12-08-2021 09:46 PM
Hi Mark,
Thanks, your presentation really helped clarify things for me in regards to PPL. The keys to fixing the issue for me was: separating the installer and PPL build specs into two separate projects
and
define where the dependencies are going in the build spec "Destinations".
Thanks again Mark!
-Mike
12-09-2021 06:39 AM
@Mikejj wrote:
Thanks, your presentation really helped clarify things for me in regards to PPL. The keys to fixing the issue for me was: separating the installer and PPL build specs into two separate projects
and
define where the dependencies are going in the build spec "Destinations".
Another thing that might help you out is the LabVIEW Solution Builder. It is a build tool to building dependent PPLs in the same project.