Opened 10 years ago
Closed 10 years ago
#14713 closed defect (fixed)
Compilation failure due to incorrect moc path -> should be fixed in releases after 5.0.8
Reported by: | Jan Palus | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 5.0.6 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Linux |
Description
It seems that recent changes to configure script broke proper moc path detection. In my case QT4 is detected by pkg-config which in VirtualBox results in setting foundqt4=3. Later in the script this case is handled in a specific way:
elif [ "$foundqt4" = "3" ]; then cnf_append "VBOX_PATH_QT4" "$TOOLQT4" cnf_append "PATH_SDK_QT4" "$TOOLQT4" cnf_append "PATH_TOOL_QT4_BIN" "$TOOLQT4BIN" return fi
The issue is with lack of configured TOOL_QT4_BIN_SUFF which in my case is -qt4. kBuild skips any detection though if PATH_TOOL_QT4_BIN is defined. So for following configuration:
VBOX_PATH_QT4 := /usr/lib64/qt4 PATH_SDK_QT4 := /usr/lib64/qt4 PATH_TOOL_QT4_BIN := /usr/bin
I end up with moc path: /usr/bin/moc instead of /usr/bin/moc-qt4.
Attachments (1)
Change History (8)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Thanks, almost there. The last issue is with path when checking if suffix applies -- in my distribution moc is a symbolic link:
/usr/bin/moc-qt4 -> /usr/lib64/qt4/bin/moc ($TOOLQT4BIN/moc-qt4 -> $TOOLQT4/bin/moc)
Currently suffix detection checks $TOOLQT4/bin/moc-qt4 while I think it should check $TOOLQT4BIN/moc-qt4, especially that kBuild executes $TOOLQT4BIN/moc$SUFFIX (PATH_TOOL_QT4_BIN is filled with TOOLQT4BIN by configure).
comment:5 by , 10 years ago
Summary: | Compilation failure due to incorrect moc path → Compilation failure due to incorrect moc path -> should be fixed in releases after 5.0.8 |
---|
Could you please give the attached version of configure a try?