我该如何配置Perforce来作为LabWindows™/CVI™的源代码控制软件



主要软件: LabWindows/CVI Development Systems>>LabWindows/CVI Full Development System
主要软件版本: 2013 SP1
主要软件修正版本: N/A
次要软件: N/A

问题:

当我在尝试使用Perforce作为LabWindows/CVI的源代码控制软件的时候,我碰到了一个错误。对于不同版本的LabWindows/CVI,得到的错误不同。

对于LabWindows/CVI 2012版本及后续版本,我得到的错误为
Path ‘x:\folder/*’ is not under client’s root ‘x:\folder’.

对于LabWindows/CVI 5.5 - 2010,我得到的错误为
The Perforce Command Line Client is not installed or is configured incorrectly. Ensure that you have installed this component from the Perforce installer and it is configured with the correct server and port settings.

我该如何配置Perforce来作为LabWindows™/CVI™的源代码控制软件



解答:

使用Perforce作为LabWindows/CVI 2012及后续版本的源代码控制软件:
在你将Perforce作为你的源代码控制软件前,载入一个工程,并且保证这个工程的保存路径为Perforce工作区的根文件夹。

使用Perforce作为LabWindows/CVI 5.5-2012的源代码控制软件:
为了正确地将Perforce源代码控制软件用在CVI上,你必须确保你已经安装了源代码控制插件(P4SCC)。安装的方法如下:

1. 打开windows的控制面板,选择开始》控制面板
2. 选择程序》程序和特征》点击下载一个软件
3. 选择Perforce Plug-in for SCC
4. 选择改变
5. 当“Perforce Plug-in for SCC - version”对话框出现时,确保SCC Plug-in(P4SCC)是被选中安装的。
6. 选择下一步,按照向导完成安装。

 如果你确定已经安装了SCC Plug-in。那么你需要确认Perforce的变量设置的是否正确。打开一个cmd框,输入命令  p4 set。来看变量是否被正确地配置了。

你需要设置如下变量
P4PORT
P4CLIENT
P4USER
P4ROOT

使用语法p4 set variable name=value来设置变量,如下图所示

一旦你成功设置好了变量,就成功地在Perforce和LabWindows/CVI之间建立了连接。



相关链接: White Paper: Using Source Code Control with LabVIEW 7.x and Perforce
KnowledgeBase 1V1A16FI: Source Code Control (SCC) in LabWindows/CVI
KnowledgeBase 39CE5D8O: How Can I Compare UIR Files in CVI to Track Changes?

附件:





报告日期: 05/02/2014
最近更新: 01/03/2015
文档编号: 6L1EO9OQ