06-17-2013 04:21 AM
Hi
I would lije to instal Perforce in labwindows 9.0.
I follow this procedure : http://digital.ni.com/public.nsf/allkb/316D6985788F1C8E862576B7007036B7
But source code control is already greied.
Here my P4 set :
C:\>p4 set
P4CLIENT=c:\P4DemoWorkspaces\bruno_ws (set)
P4EDITOR=C:\WINDOWS\system32\notepad.exe (set)
P4PORT=localhost:1666 (set)
P4ROOT=D:\Perforce (set)
P4USER=bruno (set)
I don't know what to do now.
Thank you
Christophe
Solved! Go to Solution.
06-17-2013 06:50 AM
Hi,
Before the Source Code Control (SCC) menu item can become active in the Tools menu, you first need to configure SCC integration in CVI.
According to this KB article:
- if you want to apply the configuration to the entire CVI Environment, use Options >> Environment >> Source Code Control...
- if you want to configure it only for a specific project, use Edit >> Project >> Source Code Control...
You will get the Source Code Control Options dialog.
You should already have the Perforce SCC Plug-in (P4SCC) and the Perforce Command Line Client (P4) installed, if you followed the setup procedure from the link you mentioned.
Just to be sure, before you continue, you should run the 'p4 set' command in the folder where you have your CVI installation (e.g. C:\Program Files\National Instruments\CVI90).
The P4CLIENT variable you set looks a little suspicious to me, since it should be the name of the workspace (clientspec), and you've provided a full path. It is important that the CVI project you have open should be under the Perforce workspace root, and that does not seem to hold in your case (you have the project under c:\, while your Perforce root is under d:\).
Go back to CVI and click the Select... button to get a list of SCC providers. You should see something like Perforce SCM; select that. Depending on your Perforce version, you might get an 'Open Connection' dialog. You should select the same Server, User and Workspace that you've specified earlier for P4PORT, P4USER and P4CLIENT. Accept the dialog. You should see the Provider filled out and you should be all set. Refer to the Help for more information (use the Help button from the dialog). Accept the dialog. CVI Perforce integration should now be ready to use, but remember that in order for this to work, you must have your CVI projects under the Perforce root.
Regards,
Alpar
06-17-2013 09:48 AM
Sorry, the KB link from my earlier post is broken. This is the correct link.
06-17-2013 10:12 AM
Hi Alpar,
Thank you for your help, it works
I do as you say : "if you want to apply the configuration to the entire CVI Environment, use Options >> Environment >> Source Code Control..."
I changed P4 set too with good
Thank you very much
Good bye