Mercurial > hg > easyhg-kdiff3
comparison kdiff3/README @ 69:8febbfb1148c
KDiff3 0.9.89
author | joachim99 |
---|---|
date | Mon, 10 Apr 2006 08:40:51 +0000 |
parents | d7cafcda8c99 |
children | f7dad0aa6146 |
comparison
equal
deleted
inserted
replaced
68:d7cafcda8c99 | 69:8febbfb1148c |
---|---|
1 KDiff3-Readme | 1 KDiff3-Readme |
2 ============= | 2 ============= |
3 | 3 |
4 Author: Joachim Eibl (joachim.eibl@gmx.de) | 4 Author: Joachim Eibl (joachim.eibl at gmx.de) |
5 Copyright: (C) 2002-2005 by Joachim Eibl | 5 Copyright: (C) 2002-2006 by Joachim Eibl |
6 KDiff3-Version: 0.9.87 | 6 KDiff3-Version: 0.9.89 |
7 | 7 |
8 | 8 |
9 KDiff3 is a program that | 9 KDiff3 is a program that |
10 - compares and merges two or three input files or directories, | 10 - compares and merges two or three input files or directories, |
11 - shows the differences line by line and character by character (!), | 11 - shows the differences line by line and character by character (!), |
30 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 30 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
31 GNU General Public License for more details. | 31 GNU General Public License for more details. |
32 | 32 |
33 You should have received a copy of the GNU General Public License | 33 You should have received a copy of the GNU General Public License |
34 along with this program; if not, write to the Free Software | 34 along with this program; if not, write to the Free Software |
35 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 35 Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307 USA |
36 | 36 |
37 For details see file "COPYING". | 37 For details see file "COPYING". |
38 | 38 |
39 Exception from the GPL: | 39 Exception from the GPL: |
40 As a special exception, the copyright holder Joachim Eibl gives permission | 40 As a special exception, the copyright holder Joachim Eibl gives permission |
43 executable, without including the source code for the Qt-library in the | 43 executable, without including the source code for the Qt-library in the |
44 source distribution. | 44 source distribution. |
45 | 45 |
46 | 46 |
47 Requirements & Installation: | 47 Requirements & Installation: |
48 Version 0.9.87 provides special support for KDE3, but it can also be | 48 Version 0.9.89 provides special support for KDE3, but it can also be |
49 built without KDE3 if the Qt-libraries are available. | 49 built without KDE3 if the Qt-libraries are available. |
50 (I also test and use the program under Windows.) | 50 (I also test and use the program under Windows.) |
51 | 51 |
52 You always need | 52 You always need |
53 - kdiff3-0.9.87.tar.gz | 53 - kdiff3-0.9.89.tar.gz |
54 | 54 |
55 For building the KDE3-version | 55 For building the KDE3-version |
56 - KDE>=3.1 and QT>=3.1-libraries. (QT>=3.2 is recommended) | 56 - KDE>=3.1 and QT>=3.1-libraries. (QT>=3.2 is recommended) |
57 - gcc, g++ with version >=3.2 | 57 - gcc, g++ with version >=3.2 |
58 | 58 |
60 - QT-libraries (version >=3.1.0). | 60 - QT-libraries (version >=3.1.0). |
61 (www.trolltech.com) | 61 (www.trolltech.com) |
62 - for Un*x: gcc, g++ with version >=3.2 | 62 - for Un*x: gcc, g++ with version >=3.2 |
63 - for Windows: VC6 / VC7.1 | 63 - for Windows: VC6 / VC7.1 |
64 | 64 |
65 On some distributions it will be necessary to install developer | |
66 packages (RPMs) that contain include files for compilation: | |
67 - xorg-x11-devel (or x11-devel) | |
68 - qt-devel | |
69 - kdelibs-devel | |
65 | 70 |
66 Installation for KDE3: | 71 Installation for KDE3: |
67 - Make sure your shell-variable QTDIR is correct. (echo $QTDIR). | 72 - Make sure your shell-variable QTDIR is correct. (echo $QTDIR). |
68 If it doesn't contain the correct path, type | 73 If it doesn't contain the correct path, type |
69 export QTDIR=your_path_to_qt (e.g. /usr/lib/qt3) | 74 export QTDIR=your_path_to_qt (e.g. /usr/lib/qt3) |
70 - cd into the directory kdiff3-0.9.87 and type | 75 - cd into the directory kdiff3-0.9.89 and type |
71 - ./configure --prefix=/opt/kde3 (your KDE3 directory here) | 76 - ./configure --prefix=/opt/kde3 (your KDE3 directory here) |
72 - (make clean) (Required if you already compiled once.) | 77 - (make clean) (Required if you already compiled once.) |
73 - make (Run compilation) | 78 - make (Run compilation) |
74 - make install (You must have root-rights for this step.) | 79 - make install (You must have root-rights for this step.) |
75 | 80 |
91 Warning: If a local installation and a global installation exist, the local | 96 Warning: If a local installation and a global installation exist, the local |
92 menu, toolbar, help etc. will be used, even if you start the global | 97 menu, toolbar, help etc. will be used, even if you start the global |
93 executable. To avoid confusion, better remove the local version then. | 98 executable. To avoid confusion, better remove the local version then. |
94 (rm -R `find $KDEHOME -name "*kdiff3*" -not -name "kdiff3*rc"`) | 99 (rm -R `find $KDEHOME -name "*kdiff3*" -not -name "kdiff3*rc"`) |
95 | 100 |
101 On Fedora-64-bit systems the following configure-line was reported to work: | |
102 ./configure --prefix=`kde-config --prefix` --enable-libsuffix=64 --with-qt-libraries=/usr/lib64/qt-3.3/lib/ | |
103 Both --enable-libsuffix=64 and -with-qt-libraries=/usr/lib64/qt-3.3/lib/ are needed; | |
104 without the first one it fails to find the KDE libraries, | |
105 and without the second one it fails to find libqt-mt | |
106 (strangely enough: libqt-mt is in /usr/lib64/qt-3.3/lib, | |
107 and "configure" tries /usr/lib64/qt-3.3/lib64) | |
108 If your qt-libraries are elsewhere please adapt the path accordingly. | |
109 | |
110 Some secondary dependencies aren't correctly discovered by configure. | |
111 If e.g the a linker error appears telling you something like | |
112 "Can't find -lacl" this probably means that you have to install | |
113 libacl-devel-*.rpm etc. | |
114 | |
115 If you run an older version of KDE and the make-process fails in the | |
116 doc- or po-directory, cd to the src-directory and run "make" there. Also run | |
117 "make install" there. This hopefully will create a working kdiff3-binary, | |
118 although without doc and language support. | |
119 | |
96 Upgrading KDiff3 for KDE: | 120 Upgrading KDiff3 for KDE: |
97 If you already installed an older version or KDiff3 and you have the | 121 If you already installed an older version or KDiff3 and you have the |
98 impression, that the new version doesn't work as described, you should try to | 122 impression, that the new version doesn't work as described, you should try to |
99 remove all files belonging to KDiff3 before reinstalling. | 123 remove all files belonging to KDiff3 before reinstalling. |
100 Try this search command to locate KDiff3-related files: | 124 Try this search command to locate KDiff3-related files: |
106 Installation for the Qt-only-platforms for Un*x: | 130 Installation for the Qt-only-platforms for Un*x: |
107 (for Qt >=3.1.0) | 131 (for Qt >=3.1.0) |
108 - Make sure your shell-variable QTDIR is correct. (echo $QTDIR). | 132 - Make sure your shell-variable QTDIR is correct. (echo $QTDIR). |
109 If it doesn't contain the correct path, type | 133 If it doesn't contain the correct path, type |
110 export QTDIR=your_path_to_qt (e.g. /usr/lib/qt) | 134 export QTDIR=your_path_to_qt (e.g. /usr/lib/qt) |
111 - cd into the directory kdiff3-0.9.87/src and type | 135 - cd into the directory kdiff3-0.9.89/src and type |
112 - make -f Makefile.qt | 136 - make -f Makefile.qt |
113 - make -f Makefile.qt install (You must have root-rights for this step.) | 137 - make -f Makefile.qt install (You must have root-rights for this step.) |
114 (copies the files into /usr/local/bin and /usr/local/share/doc/kdiff3) | 138 (copies the files into /usr/local/bin and /usr/local/share/doc/kdiff3) |
115 - Note: The file kdiff3.pro was used to generate the Makefile.qt: | 139 - Note: The file kdiff3.pro was used to generate the Makefile.qt: |
116 qmake kdiff3.pro -o Makefile.qt | 140 qmake kdiff3.pro -o Makefile.qt |
121 Use qmake and kdiff3.pro to generate | 145 Use qmake and kdiff3.pro to generate |
122 an appropriate Makefile. | 146 an appropriate Makefile. |
123 qmake kdiff3.pro -o Makefile | 147 qmake kdiff3.pro -o Makefile |
124 | 148 |
125 | 149 |
126 Build for Mac: | 150 Building Kdiff3 for Mac OSX 10.3.8 (by Mark Teel) |
127 - I couldn't test this, so you might have to experiment a bit. | 151 -------------------------------------------------------- |
128 - Start by generating a Makefile with | 152 1) Install Qt/Mac with thread support and static libraries. |
129 - qmake kdiff3.pro -o Makefile | 153 2) cd .../kdiff3-0.9.89 |
130 - If you succeed, I'd like to know how, so I can document it here. | 154 3) Create a makefile for kdiff3 by executing: |
155 qmake src/kdiff3.pro -o Makefile.qt | |
156 4) Edit Makefile.qt and add the definition "KDIFF3" to the following two lines: | |
157 CFLAGS = -pipe -Wall -W -Os -DKDIFF3 -DQT_NO_DEBUG ... | |
158 CXXFLAGS = -pipe -Wall -W -Os -DKDIFF3 -DQT_NO_DEBUG ... | |
159 5) Edit Makefile.qt and change the include path like so: | |
160 (old) INCPATH = -I/Library/qt3/mkspecs/default -Isrc ... | |
161 (new) INCPATH = -I/Library/qt3/mkspecs/macx-g++ -Isrc ... | |
162 6) KDiff3-0.9.88-specific: Edit src/kdiff3.cpp line 290 like this: | |
163 statusBar()->setSizeGripEnabled(true); | |
164 7) KDiff3-0.9.88-specific: (not necessary for 0.9.89 or later) | |
165 Edit /usr/include/mach/ppc/processor_info.h and replace all instances of | |
166 "unsigned int word" found in the four register unions (on lines 44, 65, | |
167 74, 82) as follows: | |
168 (old) | |
169 unsigned int word; | |
170 (new) | |
171 #if defined(KDIFF3) | |
172 unsigned word; | |
173 #else | |
174 unsigned int word; | |
175 #endif | |
176 8) Execute: | |
177 make -f Makefile.qt | |
178 9) After the build completes copy kdiff3 from the kdiff3-0.9.89 directory to | |
179 /Applications | |
131 | 180 |
132 | 181 |
133 Start from commandline: | 182 Start from commandline: |
134 - Comparing 2 files: kdiff3 file1 file2 | 183 - Comparing 2 files: kdiff3 file1 file2 |
135 - Merging 2 files: kdiff3 file1 file2 -o outputfile | 184 - Merging 2 files: kdiff3 file1 file2 -o outputfile |
136 - Comparing 3 files: kdiff3 file1 file2 file3 | 185 - Comparing 3 files: kdiff3 file1 file2 file3 |
137 - Merging 3 files: kdiff3 file1 file2 file3 -o outputfile | 186 - Merging 3 files: kdiff3 file1 file2 file3 -o outputfile |