LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.lib folder in dependencies not showing up while building installer

Hi,

 

I am trying to build a .exe file and an installer for my project, and I have a .lib folder in my dependencies, but when I go to either the installer or .exe creation tool and I look in source files, it doesn't show up in either. How do I get these files included in the installer/.exe that I am building?

0 Kudos
Message 1 of 6
(117 Views)

Your question doesn't make a lot of sense.

 

By "a .lib folder", do you mean user.lib, instr.lib, or vi.lib?  Or a different folder that you created?

 

Why do you feel the need to include it in your EXE or installer?  If it's just .vi files, then if your main VI has them as a dependency, they are auto-included.

 

If it's anything else, just add them to your project manually instead of leaving them in dependencies.

0 Kudos
Message 2 of 6
(106 Views)

it is vi.lib. I may not fully understand how the auto-inclusion works, but my program doesn't work when I run my .exe file on a different computer, but the .exe works perfectly on the dev machine. I am getting issues with serial communication to zaber stages with the VISA functions if that helps at all to clarify

 

0 Kudos
Message 3 of 6
(78 Views)

Make the installer so all the stuff you need goes along with you.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 6
(76 Views)

@xyz12309 wrote:

it is vi.lib. I may not fully understand how the auto-inclusion works, but my program doesn't work when I run my .exe file on a different computer, but the .exe works perfectly on the dev machine. I am getting issues with serial communication to zaber stages with the VISA functions if that helps at all to clarify

 


Right, then you don't need to include vi.lib files manually.  If the files from vi.lib were "missing" somehow, your EXE would just simply not run at all. In those rare cases where you can manage to get an EXE to build but somehow not include a VI, then you get a main VI that doesn't even run because it has a broken run arrow in the EXE.

 

I would instead recommend posting a separate thread about your serial issues.  Without a lot more details it's hard to start to point at a solution.

0 Kudos
Message 5 of 6
(64 Views)

The serial library relies on the VISA runtime driver. I'd recommend ensuring that is installed on the computer the EXE is running on. Here's a link to a similar topic: https://forums.ni.com/t5/LabVIEW/Building-applications-including-NI-VISA/td-p/2572227.

 

 

0 Kudos
Message 6 of 6
(53 Views)