Beyond Linux From Scratch 7.8에서 QT4를 컴파일할 때 발생하는 문제

Beyond Linux From Scratch 7.8에서 QT4를 컴파일할 때 발생하는 문제

저는 VirtualBox 머신(32비트)을 사용하여 Linux 표준 라이브러리(책에 언급된 모든 패키지(http://www.linuxfromscratch.org/blfs/view/7.8/), 그리고필수의그리고존경받는, 하지만 피하려고 노력하세요임의로 선택할 수 있는가방). 제목에서 알 수 있듯이 BLFS 7.8을 사용하여 Qt 4.8.7을 완전히 빌드할 수는 없습니다.

BLFS 7.8 책에 따르면 다음을 빌드해야 합니다.

설치된 프로그램: Assistant, designer, lconvert, linguist, lrelease, lupdate, moc, pixeltool, qcollectiongenerator, qdbuscpp2xml, qdbus, qdbusviewer, qdbusxml2cpp, qdoc3, qhelpconverter, qhelpgenerator, qmake, qmlplugindump, qmlviewer, qt3to4, qtconfig, qttracereplay, rcc, uic3 , uic, xmlpatterns 및 xmlpatternsvalidator

설치된 라이브러리: libQtUiTools.a, libQt3Support.so, libQtCLucene.so, libQtCore.so, libQtDBus.so, libQtDeclarative.so, libQtDesignerComponents.so, libQtDesigner.so, libQtGui.so, libQtHelp.so, libQtMultimedia.so, libQtNetwork so. , libQtOpenGL.so, libQtScript.so, libQtScriptTools.so, libQtSql.so, libQtSvg.so, libQtTest.so, libQtWebKit.so, libQtXmlPatterns.so 및 libQtXml.so 및 /opt/qt4/imports 및 / Plug 아래의 여러 가지 -선택/qt4/플러그인

모든 라이브러리를 빌드하지만 모든 프로그램은 빌드하지 않습니다. qdbuscpp2xml, qdbus, qdbusviewer, qdbusxml2cpp, qmake, xmlpatterns 및 xmlpatternsvalidator는 빌드되지 않습니다.

나열되지 않은 대부분의 프로그램 이름에 dbus가 있으므로 systemctl을 확인한 결과는 다음과 같습니다.

UNIT    LOAD    ACTIVE  SUB
proc-sys-fs-binfmt_misc.automount   loaded  active  waiting
org.freedesktop.hostname1.busname   loaded  inactive    dead
org.freedesktop.locale1.busname loaded  inactive    dead
org.freedesktop.login1.busname  loaded  inactive    dead
org.freedesktop.machine1.busname    loaded  inactive    dead
org.freedesktop.network1.busname    loaded  inactive    dead
org.freedesktop.resolve1.busname    loaded  inactive    dead
org.freedesktop.systemd1.busname    loaded  inactive    dead
org.freedesktop.timedate1.busname   loaded  inactive    dead
dev-cdrom.device    loaded  active  plugged
dev-disk-by\x2did-ata\x2dVBOX_CD\x2dROM_VB2\x2d01700376.device  loaded  active  plugged
dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VB1b03ea62\x2ddbc63e3e.device    loaded  active  plugged
dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VB1b03ea62\x2ddbc63e3e\x2dpart1.device   loaded  active  plugged
dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VB661dfc8e\x2d76a9fb53.device    loaded  active  plugged
dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VB661dfc8e\x2d76a9fb53\x2dpart1.device   loaded  active  plugged
dev-disk-by\x2duuid-adf6eeae\x2d5ab2\x2d42a3\x2d9e1d\x2d0fed7f32a451.device loaded  active  plugged
dev-disk-by\x2duuid-eb028a99\x2d93f4\x2d4b71\x2d98b4\x2daaf40d3d6c84.device loaded  active  plugged
dev-sda.device  loaded  active  plugged
dev-sda1.device loaded  active  plugged
dev-sdb.device  loaded  active  plugged
dev-sdb1.device loaded  active  plugged
dev-sr0.device  loaded  active  plugged
dev-ttyS0.device    loaded  active  plugged
dev-ttyS1.device    loaded  active  plugged
dev-ttyS2.device    loaded  active  plugged
dev-ttyS3.device    loaded  active  plugged
sys-devices-pci0000:00-0000:00:01.1-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active  plugged VBOX_HARDDISK 1
sys-devices-pci0000:00-0000:00:01.1-ata1-host0-target0:0:0-0:0:0:0-block-sda.device loaded  active  plugged
sys-devices-pci0000:00-0000:00:01.1-ata1-host0-target0:0:1-0:0:1:0-block-sdb-sdb1.device loaded active  plugged VBOX_HARDDISK 1
sys-devices-pci0000:00-0000:00:01.1-ata1-host0-target0:0:1-0:0:1:0-block-sdb.device loaded  active  plugged
sys-devices-pci0000:00-0000:00:01.1-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device loaded  active  plugged
sys-devices-platform-serial8250-tty-ttyS0.device    loaded  active  plugged
sys-devices-platform-serial8250-tty-ttyS1.device    loaded  active  plugged
sys-devices-platform-serial8250-tty-ttyS2.device    loaded  active  plugged
sys-devices-platform-serial8250-tty-ttyS3.device    loaded  active  plugged
sys-devices-virtual-net-sit0.device loaded  active  plugged
sys-subsystem-net-devices-sit0.device   loaded  active  plugged
-.mount loaded  active  mounted
dev-hugepages.mount loaded  active  mounted
dev-mqueue.mount    loaded  active  mounted
proc-sys-fs-binfmt_misc.mount   loaded  inactive    dead
sys-fs-fuse-connections.mount   loaded  inactive    dead
sys-kernel-config.mount loaded  inactive    dead
sys-kernel-debug.mount  loaded  active  mounted
tmp.mount   loaded  active  mounted
var-lib-machines.mount  loaded  inactive    dead
systemd-ask-password-console.path   loaded  active  waiting
systemd-ask-password-wall.path  loaded  active  waiting
alsa-restore.service    loaded  inactive    dead
alsa-state.service  loaded  inactive    dead
alsa-store.service  loaded  inactive    dead
auditd.service  not-found inactive  dead    auditd.service
dbus.service    loaded  failed  failed
display-manager.service not-found inactive  dead    display-manager.service
emergency.service   loaded  inactive    dead
[email protected]  loaded  active  running
kmod-static-nodes.service   loaded  active  exited
plymouth-quit-wait.service  not-found inactive  dead    plymouth-quit-wait.service
plymouth-start.service  not-found inactive  dead    plymouth-start.service
rc-local.service    loaded  inactive    dead
rescue.service  loaded  inactive    dead
syslog.service  not-found inactive  dead    syslog.service
systemd-ask-password-console.service    loaded  inactive    dead
systemd-ask-password-wall.service   loaded  inactive    dead
systemd-binfmt.service  loaded  inactive    dead
systemd-fsck-root.service   loaded  active  exited
systemd-hostnamed.service   loaded  inactive    dead
systemd-hwdb-update.service loaded  inactive    dead
systemd-initctl.service loaded  inactive    dead
systemd-journal-catalog-update.service  loaded  inactive    dead
systemd-journal-flush.service   loaded  active  exited
systemd-journald.service    loaded  active  running
systemd-localed.service loaded  inactive    dead
systemd-logind.service  loaded  activating auto-restart restart Login Service   
systemd-machine-id-commit.service   loaded  inactive    dead
systemd-machined.service    loaded  inactive    dead
systemd-modules-load.service    loaded  inactive    dead
systemd-networkd.service    loaded  activating auto-restart restart Network Service 
systemd-random-seed.service loaded  active  exited
systemd-remount-fs.service  loaded  active  exited
systemd-resolved.service    loaded  inactive    dead
systemd-sysctl.service  loaded  active  exited
systemd-sysusers.service    not-found inactive  dead    systemd-sysusers.service
systemd-timedated.service   loaded  inactive    dead
systemd-timesyncd.service   loaded  active  running
systemd-tmpfiles-clean.service  loaded  inactive    dead
systemd-tmpfiles-setup-dev.service  loaded  active  exited
systemd-tmpfiles-setup.service  loaded  active  exited
systemd-udev-trigger.service    loaded  active  exited
systemd-udevd.service   loaded  active  running
systemd-update-done.service loaded  inactive    dead
systemd-update-utmp-runlevel.service    loaded  inactive    dead
systemd-update-utmp.service loaded  active  exited
systemd-user-sessions.service   not-found inactive  dead    systemd-user-sessions.service
systemd-vconsole-setup.service  loaded  active  exited
-.slice loaded  active  active
machine.slice   loaded  inactive    dead
system-getty.slice  loaded  active  active
system.slice    loaded  active  active
user.slice  loaded  active  active
dbus.socket loaded  active  running
syslog.socket   loaded  inactive    dead
systemd-initctl.socket  loaded  active  listening
systemd-journald-audit.socket   loaded  inactive    dead
systemd-journald-dev-log.socket loaded  active  running
systemd-journald.socket loaded  active  running
systemd-networkd.socket loaded  active  listening
systemd-udevd-control.socket    loaded  active  running
systemd-udevd-kernel.socket loaded  active  running
dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VB661dfc8e\x2d76a9fb53\x2dpart1.swap loaded  active  active
dev-disk-by\x2duuid-adf6eeae\x2d5ab2\x2d42a3\x2d9e1d\x2d0fed7f32a451.swap   loaded  active  active
dev-sdb1.swap   loaded  active  active
basic.target    loaded  active  active
busnames.target loaded  inactive    dead
emergency.target    loaded  inactive    dead
getty.target    loaded  active  active
graphical.target    loaded  inactive    dead
local-fs-pre.target loaded  active  active
local-fs.target loaded  active  active
multi-user.target   loaded  inactive    dead
network-pre.target  loaded  inactive    dead
network.target  loaded  inactive    dead
nss-user-lookup.target  loaded  inactive    dead
paths.target    loaded  active  active
remote-fs-pre.target    loaded  inactive    dead
remote-fs.target    loaded  active  active
rescue.target   loaded  inactive    dead
shutdown.target loaded  inactive    dead
slices.target   loaded  active  active
sockets.target  loaded  active  active
swap.target loaded  active  active
sysinit.target  loaded  active  active
time-sync.target    loaded  active  active
timers.target   loaded  active  active
umount.target   loaded  inactive    dead
systemd-tmpfiles-clean.timer    loaded  active  waiting

무엇이 잘못될 수 있는지 아는 사람이 있나요?

답변1

내가 아는 한, Qt 라이브러리에서 DBus 지원이 활성화되면 DBus 도구를 구축하고 설치해야 합니다. 아마도 XML 도구에도 동일하게 적용됩니다.

명령 을 실행하면 configure적용된 구성에 대한 요약이 제공되지만 프로세스가 종료되기 전에 빠르게 스크롤됩니다. 이를 보려면 콘솔 출력을 위로 스크롤하거나 이를 파일로 파이프해야 합니다. make구성이 올바른지 확인할 때까지 호출하지 않는 것이 좋습니다. 여기에서 어떤 기능이 활성화/비활성화되었는지 확인하고 왜 그렇지 않은지 이해할 수 있어야 합니다.

configure기능을 강제 적용하기 위한 추가 옵션은 다음을 참조하세요.

./configure --help

이를 통해 어디서부터 시작해야 할지, 문제 해결을 위해 무엇을 시도할 수 있는지에 대한 첫 번째 힌트를 얻을 수 있습니다.

답변2

@Murphy의 제안에 따라 ./config를 실행하여 다음과 같은 결과를 얻었습니다.

Build type:    linux-g++
Architecture:  i386
Platform notes:

            - Also available for Linux: linux-kcc linux-icc linux-cxx

Build .................. libs tools docs translations
Configuration ..........  system-sqlite release largefile stl precompile_header mmx 3dnow sse sse2 sse3 ssse3 sse4_1 sse4_2 avx  minimal-config small-config medium-config large-config full-config qt3support accessibility opengl shared reduce_exports ipv6 clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify system-jpeg system-mng system-png png system-tiff system-freetype system-zlib nis cups iconv glib dbus dbus-linked openssl-linked x11sm xshape xvideo xsync xrender mitshm fontconfig xkb alsa icu concurrent xmlpatterns multimedia audio-backend svg script scripttools declarative release
Debug .................. no
Qt 3 compatibility ..... yes
QtDBus module .......... yes (linked)
QtConcurrent code ...... yes
QtGui module ........... yes
QtScript module ........ yes
QtScriptTools module ... yes
QtXmlPatterns module ... yes
Phonon module .......... no
Multimedia module ...... auto
SVG module ............. yes
WebKit module .......... no
JavaScriptCore JIT ..... To be decided by JavaScriptCore
Declarative module ..... yes
Declarative debugging ...yes
Support for S60 ........ no
Symbian DEF files ...... no
STL support ............ yes
PCH support ............ yes
MMX/3DNOW/SSE/SSE2/SSE3. yes/yes/yes/yes/yes
SSSE3/SSE4.1/SSE4.2..... yes/yes/yes
AVX..................... yes
Graphics System ........ default
IPv6 support ........... yes
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... yes
Iconv support .......... yes
Glib support ........... yes
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
TIFF support ........... plugin (system)
JPEG support ........... plugin (system)
PNG support ............ yes (system)
MNG support ............ plugin (system)
zlib support ........... system
Session management ..... yes
OpenGL support ......... yes (Desktop OpenGL)
OpenVG support ......... no
NAS sound support ...... no
XShape support ......... yes
XVideo support ......... yes
XSync support .......... yes
Xinerama support ....... runtime
Xcursor support ........ runtime
Xfixes support ......... runtime
Xrandr support ......... runtime
Xrender support ........ yes
Xi support ............. runtime
MIT-SHM support ........ yes
FontConfig support ..... yes
XKB Support ............ yes
immodule support ....... yes
GTK theme support ...... no
SQLite support ......... plugin (system)
OpenSSL support ........ linked (linked)
Alsa support ........... yes
ICD support ............ no
libICU support ......... yes
Use system proxies ..... no

QtDBus와 같은 일부 모듈은 분명히 그래야 할 때 빌드에 주석을 다는 반면, GStreamer와 같은 다른 모듈은 시스템에 설치되었음에도 불구하고 빌드하도록 구성되지 않은 이유를 모르겠습니다.

어떤 제안이라도 환영합니다. 감사해요.

관련 정보