VirtualBox

Changeset 66821 in vbox


Ignore:
Timestamp:
May 8, 2017 4:31:32 PM (8 years ago)
Author:
vboxsync
Message:

configure/debian: by default stay with Qt requirement 5.3.2 but when building the Debian packages depend on Qt 5.6 or later

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r65884 r66821  
    159159QT5DIR="/usr/lib/qt5 /usr/share/qt5 /usr/lib64/qt5 /usr /usr/local"
    160160QT5DIR_PKGCONFIG=1
     161QT5MAJ=5
     162QT5MIN=3
    161163KBUILDDIR="`cd \`dirname $0\`; pwd`/kBuild"
    162164DEVDIR="`cd \`dirname $0\`; pwd`/tools"
     
    16481650extern "C" int main(void)
    16491651{
    1650 #if QT_VERSION >= 0x050302
     1652EOF
     1653  echo "#if QT_VERSION >= $(($QT5MAJ*65536+$QT5MIN*256))" >> $ODIR.tmp_src.cc
     1654  cat >> $ODIR.tmp_src.cc << EOF
    16511655  return 0;
    16521656#else
     
    17401744{
    17411745  printf("found version %s", QT_VERSION_STR);
    1742 #if QT_VERSION >= 0x050302
     1746EOF
     1747  echo "#if QT_VERSION >= $(($QT5MAJ*65536+$QT5MIN*256))" >> $ODIR.tmp_src.cc
     1748    cat >> $ODIR.tmp_src.cc << EOF
    17431749  printf(", OK.\n");
    17441750  return 0;
    17451751#else
    1746   printf(", expected version 5.3.2 or higher\n");
     1752EOF
     1753echo "  printf(\", expected version $QT5MAJ.$QT5MIN or higher\\\\n\");" >> $ODIR.tmp_src.cc
     1754    cat >> $ODIR.tmp_src.cc << EOF
    17471755  return 1;
    17481756#endif
     
    26232631      [ $WITH_QT5 -eq 1 ] && QT5DIR_PKGCONFIG=0
    26242632      ;;
     2633    --with-qt5-minor=*)
     2634      QT5MIN=`echo $option | cut -d'=' -f2`
     2635      ;;
     2636    --with-qt5-major=*)
     2637      QT5MAJ=`echo $option | cut -d'=' -f2`
     2638      ;;
    26252639    --with-openssl-dir=*)
    26262640      OPENSSLDIR=`echo $option | cut -d'=' -f2`
  • trunk/src/VBox/Installer/linux/debian/rules

    r64072 r66821  
    9595endif
    9696
     97# Depend on Qt 5.6 or later otherwise we use Qt 5.3.2 from Debian 8.
    9798cfg_flags := $(if $(NOQT),--disable-qt,) \
     99             $(if $(NOQT),,--with-qt5-major=5 --with-qt-minor=6) \
    98100             $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \
    99101             $(if $(HEADLESS),--build-headless,) \
Note: See TracChangeset for help on using the changeset viewer.

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