In the Build Specifications, there is a Category, 'Shared Variable Deployment'. Make sure the 'Deploy...' is checked. It isn't by default. Make sure all the .lvlibs you use are checked, too. They are by default. The 'Undeploy...' is sometimes good for saving memory, but can cause problems, too.
If you build an installer, be sure to add the variable engine installer, too.
Avoid nested .lvlibs. If a variable is inside an .lvlib that is inside another .lvlib, things get a little goofy. It's just best to avoid that.
___________________
CLD, CPI; User since rev 8.6.