Changeset b3f1ebb3 for chapter06/ncurses.xml
- Timestamp:
- 03/31/2021 10:41:31 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- 6702623
- Parents:
- 989524c
- git-author:
- Thomas Trepl <thomas@…> (04/01/2019 05:00:45 PM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:31 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/ncurses.xml
r989524c rb3f1ebb3 48 48 <para>Prepare Ncurses for compilation:</para> 49 49 50 <screen ><userinput remap="configure">./configure --prefix=/usr \50 <screen arch="default"><userinput remap="configure">./configure --prefix=/usr \ 51 51 --mandir=/usr/share/man \ 52 52 --with-shared \ … … 55 55 --enable-pc-files \ 56 56 --enable-widec</userinput></screen> 57 <screen arch="multilib"><userinput remap="configure">./configure --prefix=/usr \ 58 --mandir=/usr/share/man \ 59 --with-shared \ 60 --without-debug \ 61 --without-normal \ 62 --enable-pc-files \ 63 --enable-widec \ 64 --with-pkg-config-libdir=/usr/lib/pkgconfig</userinput></screen> 57 65 58 66 <variablelist> … … 89 97 </varlistentry> 90 98 99 <varlistentry arch="multilib"> 100 <term><parameter>--with-pkg-config-libdir=/usr/lib/pkgconfig</parameter></term> 101 <listitem> 102 <para>This switch forces .pc to be installed in /usr/lib/pkgconfig. If 103 not set, .pc files gets installed in /usr/lib32 even for 64bit binaries. 104 </para> 105 </listitem> 106 </varlistentry> 107 91 108 </variablelist> 92 109 … … 140 157 141 158 <note> 142 143 159 <para>The instructions above don't create non-wide-character Ncurses 144 160 libraries since no package installed by compiling from sources would link … … 149 165 following commands:</para> 150 166 151 <screen role="nodump"><userinput>make distclean167 <screen><userinput remap="install">make distclean 152 168 ./configure --prefix=/usr \ 153 169 --with-shared \ … … 158 174 make sources libs 159 175 cp -av lib/lib*.so.5* /usr/lib</userinput></screen> 176 160 177 </note> 161 178 179 </sect2> 180 181 <sect2 arch="multilib" role="installation"> 182 <title>Installation of Ncurses - 32-bit</title> 183 184 <para>Clean previous build:</para> 185 186 <screen><userinput remap="pre">make distclean</userinput></screen> 187 188 <para>Prepare Ncurses for compilation:</para> 189 190 <screen><userinput remap="configure">CC="gcc -m32" CXX="g++ -m32" \ 191 ./configure --prefix=/usr \ 192 --libdir=/usr/lib32 \ 193 --mandir=/usr/share/man \ 194 --with-shared \ 195 --without-debug \ 196 --without-normal \ 197 --enable-pc-files \ 198 --enable-widec \ 199 --host=i686-pc-linux-gnu \ 200 --with-pkg-config-libdir=/usr/lib32/pkgconfig</userinput></screen> 201 202 <para>Compile the package:</para> 203 204 <screen><userinput remap="make">make -j1</userinput></screen> 205 206 <para>Install the package:</para> 207 208 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 209 for lib in ncurses form panel menu ; do 210 rm -vf DESTDIR/usr/lib32/lib${lib}.so 211 echo "INPUT(-l${lib}w)" > DESTDIR/usr/lib32/lib${lib}.so 212 ln -svf ${lib}w.pc DESTDIR/usr/lib32/pkgconfig/$lib.pc 213 done 214 rm -vf DESTDIR/usr/lib32/libcursesw.so 215 echo "INPUT(-lncursesw)" > DESTDIR/usr/lib32/libcursesw.so 216 ln -sfv libncurses.so DESTDIR/usr/lib32/libcurses.so 217 cp -Rv DESTDIR/usr/lib32/* /usr/lib32 218 rm -rf DESTDIR</userinput></screen> 219 220 <para>If desired, make the version 5 libraries in 32bit as well:</para> 221 222 <screen><userinput remap="install">make distclean 223 CC="gcc -m32" CXX="g++ -m32" \ 224 ./configure --prefix=/usr \ 225 --with-shared \ 226 --without-normal \ 227 --without-debug \ 228 --without-cxx-binding \ 229 --with-abi-version=5 \ 230 --host=i686-pc-linux-gnu 231 make -j1 sources libs 232 cp -av lib/lib*.so.5* /usr/lib32</userinput></screen> 233 234 </sect2> 235 236 <sect2 arch="multilib" role="installation"> 237 <title>Installation of Ncurses - x32-bit</title> 238 239 <para>Clean previous build:</para> 240 241 <screen><userinput remap="pre">make distclean</userinput></screen> 242 243 <para>Prepare Ncurses for compilation:</para> 244 245 <screen><userinput remap="configure">CC="gcc -mx32" CXX="g++ -mx32" \ 246 ./configure --prefix=/usr \ 247 --libdir=/usr/libx32 \ 248 --mandir=/usr/share/man \ 249 --with-shared \ 250 --without-debug \ 251 --without-normal \ 252 --enable-pc-files \ 253 --enable-widec \ 254 --host=x86_64-pc-linux-gnux32 \ 255 --with-pkg-config-libdir=/usr/libx32/pkgconfig</userinput></screen> 256 257 <para>Compile the package:</para> 258 259 <screen><userinput remap="make">make -j1</userinput></screen> 260 261 <para>Install the package:</para> 262 263 <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install 264 for lib in ncurses form panel menu ; do 265 rm -vf DESTDIR/usr/libx32/lib${lib}.so 266 echo "INPUT(-l${lib}w)" > DESTDIR/usr/libx32/lib${lib}.so 267 ln -svf ${lib}w.pc DESTDIR/usr/libx32/pkgconfig/$lib.pc 268 done 269 rm -vf DESTDIR/usr/libx32/libcursesw.so 270 echo "INPUT(-lncursesw)" > DESTDIR/usr/libx32/libcursesw.so 271 ln -sfv libncurses.so DESTDIR/usr/libx32/libcurses.so 272 cp -Rv DESTDIR/usr/libx32/* /usr/libx32 273 rm -rf DESTDIR</userinput></screen> 274 275 <!-- Any package out there which still needs version 5? 276 Leave it out for x32bit for now. 277 278 <para>If desired, make the version 5 libraries in x32bit as well:</para> 279 280 <screen><userinput remap="install">make distclean 281 CC="gcc -mx32" CXX="g++ -mx32" \ 282 ./configure - -prefix=/usr \ 283 - -with-shared \ 284 - -without-normal \ 285 - -without-debug \ 286 - -without-cxx-binding \ 287 - -with-abi-version=5 288 make -j1 sources libs 289 cp -av lib/lib*.so.5* /usr/libx32</userinput></screen> 290 --> 162 291 </sect2> 163 292
Note:
See TracChangeset
for help on using the changeset viewer.