Showing posts with label p4. Show all posts
Showing posts with label p4. Show all posts

2011-04-26

About Code Comparison

Code Compare 2

Download and install it from the site.

P4 Merge

Please refer to http://www.perforce.com/perforce/products/merge.html

KDiff 3

Download and install from their site.

2009-09-14

Setting Perforce API

Installing P4C/C++ API
Check the P4C/C++ API notes.
Check the P4C/C++ API documentation.
&] sudo cp ~/Downloads/p4api.tgz /opt ; cd /opt
&] sudo tar -zxf p4api.tgz
&] sudo ln -s p4api-2009.1.205670 p4api
&] sudo chmod -R +x *4*

Installing P4Perl API
Check the P4Perl API notes.
Check the P4Perl API documentation.
&] sudo cp ~/Downloads/p4perl.tgz /opt ; cd /opt
&] sudo tar -zxf p4perl.tgz
&] sudo ln -s p4perl-2009.1.GA p4perl
&] sudo chmod -R +x *4* ; cd p4perl
&] perl -MP4 -e "print P4::Identify()"
&] sudo perl Makefile.PL --apidir /opt/p4api
&] sudo make # in xp nmake
&] sudo make test # in xp namke test
&] sudo make install # in xp nmake install
&] perl -MP4 -e "print P4::Identify()"

Installing P4Ruby API
Check the P4Ruby API notes.
Check the P4Ruby API documentation.
&] sudo cp ~/Downloads/p4ruby.tgz /opt ; cd /opt
&] sudo tar -zxf p4ruby.tgz
&] sudo ln -s p4ruby-2009.1 p4ruby
&] sudo chmod -R +x *4*
&] cd p4ruby
&] ruby -rP4 -e "puts P4.identify"
&] sudo ruby p4conf.rb --apidir /opt/p4api
&] sudo make # in xp nmake
&] sudo ruby test.rb
&] sudo make install # in xp nmake install
&] ruby -rP4 -e "puts P4.identify"

Installing P4Python API
Check the P4Python API notes.
Check the P4Python API documentation.
&] sudo cp ~/Downloads/p4python.tgz /opt ; cd /opt
&] sudo tar -zxf p4python.tgz
&] sudo ln -s P4Python-2009.1 p4python
&] sudo chmod -R +x *4*
&] cd p4python
# update P4API in setup.cfg as: p4_api=/opt/p4api
&] python
>>> import P4
>>> print P4.P4.identify()
&] sudo python setup.py build
&] sudo python p4test.py
&] sudo python setup.py install
&] python
>>> import P4
>>> print P4.P4.identify()

Installing P4PHP
Check the P4PHP API notes.
Check the P4PHP API documentation.
&] sudo cp ~/Downloads/p4php.tgz /opt ; cd /opt
&] sudo tar -zxf p4php.tgz
&] sudo ln -s p4php-2009.1 p4php
&] sudo chmod -R +x *4*

Installing P4Java API
Check the P4Java API notes.
Check the P4Java API documentation.
&] sudo cp ~/Downloads/p4java.zip /opt ; cd /opt
&] sudo mkdir p4java/ ; sudo mv p4java.zip p4java/ ; cd p4java
&] sudo unzip p4api.zip
&] sudo ln -s p4java_2009.1.211156.jar p4java.jar
Then add /opt/p4java to your CLASSPATH

Installing P4WSAD
Check the P4WSAD API notes.
Check the P4WSAD API documentation.
&] sudo cp ~/Downloads/p4wsad.zip /opt ; cd /opt
&] sudo mkdir p4wsad/ ; sudo mv p4wsad.zip p4wsad/ ; cd p4wsad
&] sudo unzip p4wsad.zip

Installing P4Objective-C API
Check the P4ObjC API notes.
Check the P4ObjC API documentation.
&] sudo cp ~/Downloads/p4objc.tgz /opt ; cd /opt
&] sudo tar -zxf p4objc.tgz
&] sudo ln -s p4objc-2009.1.205670 p4objc
&] cd p4objc/doc ; sudo doxygen
&] cd /opt/p4objc

Installing P4COM Windows C++ API
Check the P4COM Windows C++ notes.
Check the P4COM Windows C++ documentation.

Setting Perforce

To install the Perforce Command-Line Client (p4) on a UNIX or Linux or Macintosh OS X machine, perform the following steps:
1. Download p* from http://www.perforce.com/perforce/downloads/index.html
2.
Copy it to /usr/local/bin/
3. Make the p* files executables (p4 p4d p4ftpd p4p p4sql p4web p4broker perfmerge)
4. Configure the server port setting, client workspace name, and user name. You can specify these settings by configuring the P4PORT, P4CLIENT, and P4USER environment variables. (For details, see Chapter 2, Configuring P4.)
&] sudo cp ~/Downloads/p* /usr/local/bin
&] sudo chmod +x /usr/local/bin/p*
&] sudo chmod -R +x p*

Other P4 environment variables:
  1. P4DIFF -default-
  2. P4MERGE -default-
  3. P4PASSWD
  4. P4CLIENT
  5. P4EDITOR
  6. P4PORT
  7. P4USER
  8. P4CONFIG export $HOME/.p4config or export %USERPROFILE%\p4config.txt
  9. P4TICKETS export $HOME/.p4tickets or export %USERPROFILE%\p4tickets.txt
To install the Perforce P4V Client:
1. Download p4v.tgz from http://www.perforce.com/perforce/downloads/index.html
2.
Copy it to /Applications
3. Decompress with tar -zxf
4. Make the p4v* executable
&] sudo cp p4v.tgz /Applications/ ; cd /Applications
&] sudo tar -zxf p4v.tgz ; sudo chmod -R +x p4v* ; sudo rm -rf p4v.tgz
&] sudo ln -s p4v-2009.1.212209 p4v

Installing P4Thumb on UNIX, Linux and OS X
To install the Perforce P4Thumb:
1. Download p4thumb.tgz from http://www.perforce.com/perforce/downloads/index.html
2.
Copy it to /Applications
3. Decompress with tar -zxf
4. Make the p4thumb* executable
&] sudo cp p4thumb.tgz /Applications/ ; cd /Applications
&] sudo tar -zxf p4thumb.tgz ; sudo chmod -R +x p4thumb* ; sudo rm -rf p4thumb.tgz
&] sudo ln -s p4thumb-2009.1.210672 p4thumb

Installing P4DTG on UNIX, Linux and OS X
To install the Perforce P4DTG:
1. Download p4dtg.tgz from http://www.perforce.com/perforce/downloads/index.html
2.
Copy it to /Applications
3. Decompress with tar -zxf
4. Make the p4dtg* executable
&] sudo cp p4dtg.tgz /Applications/ ; cd /Applications
&] sudo tar -zxf p4dtg.tgz ; sudo chmod -R +x p4dtg* ; sudo rm -rf p4dtg.tgz
&] sudo ln -s p4dtg-2009.1.209672 p4dtg
&] cd p4dtg
&] ./p4dtg-test
> LL ./plugins/p4jobdt.so
Loading module: [./plugins/p4jobdt.so]
Module loaded: ./plugins/p4jobdt.so
> LT
Module tests passed
> LF
Module freed
> Q
To install the Perforce Command-Line Client (p4.exe) on Windows, download and run the Perforce Windows installer (perforce.exe) from the Downloads page of the Perforce web site:

HTMLCode

HTMLCode Content