Accessing Perforce from KDevelop
PROBLEM
How do I access Perforce from the KDevelop IDE?How do I enable access to Perforce from within the KDevelop IDE?
SOLUTION
KDevelop is frequently listed as having support for Perforce with integration done via calling the Perforce Command Line Client directly. KDevelop actually needs to be compiled with the Perforce flag set in order to provide support. Most binary distributions of KDevelop do not come compiled with this flag; Red Hat, for example, ships KDevelop without Perforce support.How do I tell if my KDevelop has Perforce support or not?
When you create a new project, it will eventually take you to a dialog named 'Version Control System'. If Perforce isn't in the drop-down menu, it's not enabled.Alternatively, for an already existing project, go to:
Projects -> Project Optionsand click on 'Version Control' on the left pane. You'll see a drop down box in the right pane. If Perforce is not listed, it is not available.
Compiling KDevelop with Perforce Support
If a Perforce-enabled version of KDevelop is not available for a given Linux distribution, KDevelop will need to be compiled manually to provide support.The latest source for stable version of KDevelop is available here, with instructions for compiling KDevelop found here.
You will need to use the following flag to enable Perforce support:
--enable-perforce
Enabling Perforce support for KDevelop on Gentoo Linux
On Gentoo, you can emerge KDevelop with Perforce support using the following command:USE="perforce" emerge kdevelop
