LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1 when creating source distribution

I am attempting to create a source distribution for a project which runs on a cRIO-9035. The startup vi dynamically calls sub-vis, which, according to documentation, on Linux RT requires the use of a source distribution instead of a startup exe. Per this knowledgbase article, I am including vi.lib, instr.lib and user.lib in the source distribution (as well as following the other steps). When I run the build, the builder throws an Error 1 apparently when trying to load a file from vi.lib. The file the build errors out on (3DPC_SurfacePlot.xctl) is not in the project's vi.lib dependencies, so I'm not certain why it's trying to load/copy it.

 

In searching the forums etc, the only solution to the few similar problems I've uncovered has been to re-start LabVIEW and/or Windows, which I've done to no effect.

 

I've tried building the source distribution on 3 different computers with the same result.

 

The PC(s) I've attempted this on are all Windows 7 64-bit, all running in an Administrator account. 

 

I've attached the build error log. Any assistance or pointers to potential solutions would be much appreciated.

0 Kudos
Message 1 of 5
(2,923 Views)

Somewhere in your code a character in a file path is unacceptable causing error 1. If you have relative file paths and run your build from another directory, the relative path maybe using a character, a missing drive, a missing folder etc causing error 1. If you development project runs OK, it definitely is your build being in a new location, other than the build location.

 

Rich J

0 Kudos
Message 2 of 5
(2,912 Views)

Thanks for the reply.

 

I don't think I entirely described this correctly - when I say I ran the build and got this error, I mean when I try to create the source distribution, the LabVIEW application builder stops with this error.

 

I can create a source distribution without vi.lib etc. files. The application builder does not error out when I do this. 

 

When I try to create a source distribution which includes vi.lib files, the application builder stops with Error 1.

0 Kudos
Message 3 of 5
(2,884 Views)

This is one of those situations where it would be nice to have the idea I proposed here:

 

Better error descriptions for Application Builder

 

Please go and add your kudoes to it.

0 Kudos
Message 4 of 5
(2,882 Views)

Just as an update - I started making simplified versions of the the host vi to see if I could narrow down what was causing the problem. I could get most of the code to build as a source distribution, but when I included the servo control VIs which use SoftMotion function blocks, I got the build error again. Since the error references a VI in vi.lib, and not a VI I've written or can do anything about, I decided not to spend any more time on this.

 

At this point I've abandoned the source distribution method and re-written the code not to use dynamically-launched VIs. This worked OK, although I've got another unrelated error I'll probably need to bug the forum about.

 

(And I've added my kudos to the "Better error descriptions" idea.)

Message 5 of 5
(2,865 Views)