Le 14/12/2011 09:26, Laurent Dard a écrit :
> Le 14/12/2011 04:26, Bruce Dubbs a écrit :
>> I'm investigating Trinity. To start I need the libpng-15 patch for
>> qt3. Do you know where I can find it?
>
> I attach it.
>
> I posted it in this bug report:
> http://bugs.pearsoncomputing.net/show_bug.cgi?id=683
>
> But take care: I'm running the patched version every day but it has not
> been reviewed.
>
>
> There is two other patches that may be useful:
> * to allow fvisibility options: qt3-3.3.8d-visibility-1.patch
> http://bugs.pearsoncomputing.net/show_bug.cgi?id=696
> * to get icons and desktop files: qt3-desktop-integration-1.patch
> http://bugs.pearsoncomputing.net/show_bug.cgi?id=639
Here is what I do to install it with my patches.
(CLFS x86_64 multilib - 64 bits only)
(Next time, I'll try to add "-Wl,--as-needed" in gcc/g++ options.)
1/
SOURCES=".."
export NAME=qt
export VERSION=3.3.8d
patch --verbose -Np1 -i $SOURCES/qt3-3.3.8d-visibility-1.patch &&
patch --verbose -Np1 -i $SOURCES/qt3-3.3.8d-libpng15-1.patch &&
patch --verbose -Np1 -i $SOURCES/qt3-desktop-integration-1.patch &&
for file in $(grep -lr "/usr/X11R6" *)
do
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" $file
done
sed 's/-pipe$/-pipe -g -fvisibility=hidden -fvisibility-inlines-hidden/' \
-i mkspecs/linux-g++-64/qmake.conf &&
sed -i "/^QMAKE_LIBDIR_QT/s:/lib:&64:" mkspecs/linux-g++-64/qmake.conf
export PATH=$PWD/bin:$PATH &&
export LD_LIBRARY_PATH=$PWD/lib &&
export QMAKESPEC=linux-g++-64 &&
echo yes | ./configure -prefix /usr \
-libdir /usr/lib64 \
-docdir /usr/share/doc/$NAME-$VERSION \
-headerdir /usr/include/qt \
-datadir /usr/lib64/qt \
-plugindir /usr/lib64/qt/plugin \
-translationdir /usr/share/qt/translations \
-sysconfdir /etc/qt \
-qt-gif \
-system-zlib \
-system-libpng \
-system-libjpeg \
-system-libmng \
-plugin-imgfmt-png \
-plugin-imgfmt-jpeg \
-plugin-imgfmt-mng \
-no-exceptions \
-thread \
-tablet \
-plugin-sql-mysql \
-I/usr/include/mysql \
-plugin-sql-sqlite \
-I/usr/include/freetype2 \
-lfontconfig &&
find -type f -name Makefile | xargs sed -i "s@-Wl,-rpath,/usr/lib64@@g"
2/
make
3/
mkdir -vp /usr/share/doc/$NAME-$VERSION &&
cp -v ChangeLog.immodule changes* FAQ INSTALL LICENSE.GPL* PLATFORMS \
README* /usr/share/doc/$NAME-$VERSION &&
make install &&
install -v -m 644 doc/man/man1/* /usr/share/man/man1 &&
install -v -m 644 doc/man/man3/* /usr/share/man/man3 &&
cd contrib/desktop-integration && pwd &&
make -f Makefile.unix install &&
cd - &&
install -dv /usr/share/qt &&
ln -v -snf ../../bin /usr/share/qt/bin &&
ln -v -snf ../../include/qt /usr/share/qt/include &&
ln -v -snf ../../lib64 /usr/share/qt/lib64 &&
ln -svf libqt-mt.so /usr/lib64/libqt.so &&
cat > /etc/profile.d/20-qt.sh << "eof"
# Begin /etc/profile.d/20-qt.sh
export QTDIR=/usr/share/qt
# End /etc/profile.d/20-qt.sh
eof
--
Laurent Dard
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page