VirtualBox

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)

configure (75.2 KB ) - added by Michael Thayer 10 years ago.
New test version of configure

Download all attachments as: .zip

Change History (8)

comment:1 by Michael Thayer, 10 years ago

Could you please give the attached version of configure a try?

comment:2 by Jan Palus, 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).

by Michael Thayer, 10 years ago

Attachment: configure added

New test version of configure

comment:3 by Michael Thayer, 10 years ago

Would you give it another try?

comment:4 by Jan Palus, 10 years ago

Works fine, thanks!

comment:5 by Michael Thayer, 10 years ago

Summary: Compilation failure due to incorrect moc pathCompilation failure due to incorrect moc path -> should be fixed in releases after 5.0.8

comment:6 by Jan Palus, 10 years ago

Works fine in 5.0.10 so can be closed.

comment:7 by Frank Mehnert, 10 years ago

Resolution: fixed
Status: newclosed

Thanks!

Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette