./configure -prefix /usr/local/Trolltech/Qt4-5.3-static \ -debug -static -no-qt3support -no-phonon -no-webkit -cups
# ./myProg./myProg: error while loading shared libraries: libQtSvg.so.4: cannot open shared object file: No such file or directory
Cannot mix incompatible Qt librariesАварийный останов
file ./myProg
ldd ./myProg
linux-vdso.so.1 => (0x00007fff56f09000) libQtDesignerComponents.so.4 => /opt/qt/4.6.0/lib/libQtDesignerComponents.so.4 (0x00007f886b9f9000) libQtDesigner.so.4 => /opt/qt/4.6.0/lib/libQtDesigner.so.4 (0x00007f886b0d6000) libQtScript.so.4 => /opt/qt/4.6.0/lib/libQtScript.so.4 (0x00007f886acdf000) libQtXml.so.4 => /opt/qt/4.6.0/lib/libQtXml.so.4 (0x00007f886aa96000) libQtGui.so.4 => /opt/qt/4.6.0/lib/libQtGui.so.4 (0x00007f8869e01000) libQtNetwork.so.4 => /opt/qt/4.6.0/lib/libQtNetwork.so.4 (0x00007f8869ad6000) libQtCore.so.4 => /opt/qt/4.6.0/lib/libQtCore.so.4 (0x00007f8869648000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f886942c000) libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/libstdc++.so.6 (0x00007f886911e000) libm.so.6 => /lib/libm.so.6 (0x00007f8868e9c000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f8868c85000) libc.so.6 => /lib/libc.so.6 (0x00007f886892f000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f886872a000) librt.so.1 => /lib/librt.so.1 (0x00007f8868521000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f8868242000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007f886801c000) libz.so.1 => /lib/libz.so.1 (0x00007f8867e06000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f8867b70000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f886792b000) libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f8867722000) libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f8867505000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f88672fb000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f88670c6000) libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f8866eb3000) libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f8866b7b000) libdl.so.2 => /lib/libdl.so.2 (0x00007f8866977000) /lib64/ld-linux-x86-64.so.2 (0x00007f886beb9000) libuuid.so.1 => /lib/libuuid.so.1 (0x00007f8866772000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f8866549000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f886632b000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f8866125000) libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f8865f21000)
./configure \-prefix /opt/qt/4.6.0 \-opensource \-qt-sql-psql \-verbose \-nomake examples \-nomake demos
./configure -static -silent -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-db2 -no-sql-ibase \ -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-tds -no-qt3support -no-phonon \ -no-phonon-backend -no-webkit -nomake tools -nomake examples -nomake docs \ -nomake demos -prefix /usr/local/Trolltech/Qt4.5.3-static
juvf@juvf:~/work/prog/trunk/bin$ file ./prog./nova: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not strippedjuvf@juvf:~/work/prog/trunk/bin$ ldd ./prog linux-gate.so.1 => (0xb7f77000) libQtSvg.so.4 => not found libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb7f1f000) libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb761f000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb7611000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7522000) libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xb7423000) libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb71f7000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb71f2000) librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb71e8000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7133000) libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb712f000) libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7116000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7028000) libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7002000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6ff4000) libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb6e99000) libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb6e83000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb6e5f000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb6e57000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb6e40000) libz.so.1 => /usr/lib/libz.so.1 (0xb6e2a000) libXi.so.6 => /usr/lib/libXi.so.6 (0xb6e22000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6e19000) libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6e13000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6d9e000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6d73000) libXau.so.6 => /usr/lib/libXau.so.6 (0xb6d6f000) libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb6d6d000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6d55000) /lib/ld-linux.so.2 (0xb7f78000) libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb6d2c000) libXt.so.6 => /usr/lib/libXt.so.6 (0xb6cdc000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6cb5000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6cb0000)juvf@juvf:~/work/prog/trunk/bin$
libQtSvg.so.4 => /opt/qtsdk-2009.03/qt/lib/libQtSvn.so.4 (...) libQtXml.so.4 => /opt/qtsdk-2009.03/qt/lib/libQtXml.so.4 (0xb7f1f000) libQtGui.so.4 => /opt/qtsdk-2009.03/qt/lib/libQtGui.so.4 (0xb761f000)
libQtSvg.so.4 => not found libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb7f1f000) libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb761f000)