** qt5 not found - build v5.2.16 error in Ubuntu 16.04

Discussions related to using the OSE version of VirtualBox.

** qt5 not found - build v5.2.16 error in Ubuntu 16.04

Postby tiekri » 1. Apr 2019, 07:34

I'm trying to build Virtualbox 5.2.16 in Ubuntu 16.04 x64 but I'm receiving qt error message.

** qt5 not found!

My CC is g++ (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609

These topics DIDN'T helped (but maybe I haven't done right):
viewtopic.php?f=10&t=84294&p=402761&hilit=qt5+build+ubuntu#p402761
viewtopic.php?f=10&t=89266&p=428200&hilit=qt5+build+ubuntu#p428200

Tryied to change the --with-qt-dir=/usr/lib/x86_64-linux-gnu but no results...
Try to insall all possible dependencies, seems that my qt5 is installed but some parte of it is not found by vbox configure (I'm just guessing)

Looking at configure code, i think the problem is near here (the script is attached as configure.txt):
Code: Select all   Expand viewCollapse view
         if test_compile "$LIBQT5 $LIBPTHREAD $I_INCQT5 $FLGQT5" qt5 qt5 nofatal &&
            test_execute_path "`strip_L "$LIBQT5"`" nofatal; then
          foundqt5=2 # internal
          break;
        fi
        LIBQT5="-L$q/lib -lQt5Core"
        if test_compile "$LIBQT5 $LIBPTHREAD $I_INCQT5 $FLGQT5" qt5 qt5 nofatal &&
            test_execute_path "`strip_L "$LIBQT5"`" nofatal; then
          foundqt5=1 # no pkg-config, Qt directory
          break;
        fi


This is the ./configure output (with -x in the script to allow debugging)
Code: Select all   Expand viewCollapse view
+ [ -z  ]
+ echo (Qt5 from '/usr/lib/qt5')
+ INCQT5=/usr/lib/qt5/include /usr/lib/qt5/include/QtCore
+ FLGQT5=-DQT_SHARED
+ prefix_I /usr/lib/qt5/include /usr/lib/qt5/include/QtCore
+ + echo /usr/lib/qt5/include /usr/lib/qt5/include/QtCore
/dados/Downloads/vboxhardening/VirtualBox-5.2.16/kBuild/bin/linux.amd64/kmk_sed s|^\/|-I/|g; s| \/| -I/|g
+ I_INCQT5=-I/usr/lib/qt5/include -I/usr/lib/qt5/include/QtCore
+ LIBQT5=-L/usr/lib/qt5/lib -lQt5CoreVBox
+ TOOLQT5=/usr/lib/qt5
+ test_compile -L/usr/lib/qt5/lib -lQt5CoreVBox -lpthread -I/usr/lib/qt5/include -I/usr/lib/qt5/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib/qt5/lib -lQt5CoreVBox -lpthread -I/usr/lib/qt5/include -I/usr/lib/qt5/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/lib/qt5/lib -lQt5CoreVBox -lpthread -I/usr/lib/qt5/include -I/usr/lib/qt5/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ LIBQT5=-L/usr/lib/qt5/lib -lQt5Core
+ test_compile -L/usr/lib/qt5/lib -lQt5Core -lpthread -I/usr/lib/qt5/include -I/usr/lib/qt5/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib/qt5/lib -lQt5Core -lpthread -I/usr/lib/qt5/include -I/usr/lib/qt5/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/lib/qt5/lib -lQt5Core -lpthread -I/usr/lib/qt5/include -I/usr/lib/qt5/include/QtCore -DQT_SHARED
+ [ 0 -ne 0 ]
+ return 0
+ strip_L -L/usr/lib/qt5/lib -lQt5Core
+ echo -L/usr/lib/qt5/lib -lQt5Core
+ /dados/Downloads/vboxhardening/VirtualBox-5.2.16/kBuild/bin/linux.amd64/kmk_sed s|-L\([^ ]\+\)|\1|g; s|^-[^L][^ ]*||g; s| -[^L][^ ]*||g; s|^ ||; s| *$||g
+ test_execute_path /usr/lib/qt5/lib nofatal
+ local_path=/usr/lib/qt5/lib
+ local_nofail=nofatal
+ echo executing the binary (LD_LIBRARY_PATH=/usr/lib/qt5/lib)
+ LD_LIBRARY_PATH=/usr/lib/qt5/lib /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out
+ rc=1
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.test_execute.log
+ tee -a /dados/Downloads/vboxhardening/VirtualBox-5.2.16/configure.log
+ [ 1 -ne 0 ]
+ test -z nofatal
+ echo
+ echo
+ return 1
+ echo (Qt5 from '/usr/share/qt5')
+ INCQT5=/usr/share/qt5/include /usr/share/qt5/include/QtCore
+ FLGQT5=-DQT_SHARED
+ prefix_I /usr/share/qt5/include /usr/share/qt5/include/QtCore
+ echo /usr/share/qt5/include /usr/share/qt5/include/QtCore
+ /dados/Downloads/vboxhardening/VirtualBox-5.2.16/kBuild/bin/linux.amd64/kmk_sed s|^\/|-I/|g; s| \/| -I/|g
+ I_INCQT5=-I/usr/share/qt5/include -I/usr/share/qt5/include/QtCore
+ LIBQT5=-L/usr/share/qt5/lib -lQt5CoreVBox
+ TOOLQT5=/usr/share/qt5
+ test_compile -L/usr/share/qt5/lib -lQt5CoreVBox -lpthread -I/usr/share/qt5/include -I/usr/share/qt5/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/share/qt5/lib -lQt5CoreVBox -lpthread -I/usr/share/qt5/include -I/usr/share/qt5/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/share/qt5/lib -lQt5CoreVBox -lpthread -I/usr/share/qt5/include -I/usr/share/qt5/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ LIBQT5=-L/usr/share/qt5/lib -lQt5Core
+ test_compile -L/usr/share/qt5/lib -lQt5Core -lpthread -I/usr/share/qt5/include -I/usr/share/qt5/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/share/qt5/lib -lQt5Core -lpthread -I/usr/share/qt5/include -I/usr/share/qt5/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/share/qt5/lib -lQt5Core -lpthread -I/usr/share/qt5/include -I/usr/share/qt5/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ echo (Qt5 from '/usr/lib64/qt5')
+ INCQT5=/usr/lib64/qt5/include /usr/lib64/qt5/include/QtCore
+ FLGQT5=-DQT_SHARED
+ prefix_I /usr/lib64/qt5/include /usr/lib64/qt5/include/QtCore
+ /dados/Downloads/vboxhardening/VirtualBox-5.2.16/kBuild/bin/linux.amd64/kmk_sed s|^\/|-I/|g; s| \/| -I/|g
+ echo /usr/lib64/qt5/include /usr/lib64/qt5/include/QtCore
+ I_INCQT5=-I/usr/lib64/qt5/include -I/usr/lib64/qt5/include/QtCore
+ LIBQT5=-L/usr/lib64/qt5/lib -lQt5CoreVBox
+ TOOLQT5=/usr/lib64/qt5
+ test_compile -L/usr/lib64/qt5/lib -lQt5CoreVBox -lpthread -I/usr/lib64/qt5/include -I/usr/lib64/qt5/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib64/qt5/lib -lQt5CoreVBox -lpthread -I/usr/lib64/qt5/include -I/usr/lib64/qt5/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/lib64/qt5/lib -lQt5CoreVBox -lpthread -I/usr/lib64/qt5/include -I/usr/lib64/qt5/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ LIBQT5=-L/usr/lib64/qt5/lib -lQt5Core
+ test_compile -L/usr/lib64/qt5/lib -lQt5Core -lpthread -I/usr/lib64/qt5/include -I/usr/lib64/qt5/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib64/qt5/lib -lQt5Core -lpthread -I/usr/lib64/qt5/include -I/usr/lib64/qt5/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/lib64/qt5/lib -lQt5Core -lpthread -I/usr/lib64/qt5/include -I/usr/lib64/qt5/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ echo (Qt5 from '/usr')
+ INCQT5=/usr/include /usr/include/QtCore
+ FLGQT5=-DQT_SHARED
+ prefix_I /usr/include /usr/include/QtCore
+ /dados/Downloads/vboxhardening/VirtualBox-5.2.16/kBuild/bin/linux.amd64/kmk_sed s|^\/|-I/|g; s| \/| -I/|g
+ echo /usr/include /usr/include/QtCore
+ I_INCQT5=-I/usr/include -I/usr/include/QtCore
+ LIBQT5=-L/usr/lib -lQt5CoreVBox
+ TOOLQT5=/usr
+ test_compile -L/usr/lib -lQt5CoreVBox -lpthread -I/usr/include -I/usr/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib -lQt5CoreVBox -lpthread -I/usr/include -I/usr/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/lib -lQt5CoreVBox -lpthread -I/usr/include -I/usr/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ LIBQT5=-L/usr/lib -lQt5Core
+ test_compile -L/usr/lib -lQt5Core -lpthread -I/usr/include -I/usr/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib -lQt5Core -lpthread -I/usr/include -I/usr/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/lib -lQt5Core -lpthread -I/usr/include -I/usr/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ echo (Qt5 from '/usr/local')
+ INCQT5=/usr/local/include /usr/local/include/QtCore
+ FLGQT5=-DQT_SHARED
+ prefix_I /usr/local/include /usr/local/include/QtCore
+ /dados/Downloads/vboxhardening/VirtualBox-5.2.16/kBuild/bin/linux.amd64/kmk_sed s|^\/|-I/|g; s| \/| -I/|g
+ echo /usr/local/include /usr/local/include/QtCore
+ I_INCQT5=-I/usr/local/include -I/usr/local/include/QtCore
+ LIBQT5=-L/usr/local/lib -lQt5CoreVBox
+ TOOLQT5=/usr/local
+ test_compile -L/usr/local/lib -lQt5CoreVBox -lpthread -I/usr/local/include -I/usr/local/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/local/lib -lQt5CoreVBox -lpthread -I/usr/local/include -I/usr/local/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/local/lib -lQt5CoreVBox -lpthread -I/usr/local/include -I/usr/local/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ LIBQT5=-L/usr/local/lib -lQt5Core
+ test_compile -L/usr/local/lib -lQt5Core -lpthread -I/usr/local/include -I/usr/local/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/local/lib -lQt5Core -lpthread -I/usr/local/include -I/usr/local/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/local/lib -lQt5Core -lpthread -I/usr/local/include -I/usr/local/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ echo (Qt5 from '/usr/lib/x86_64-linux-gnu')
+ INCQT5=/usr/lib/x86_64-linux-gnu/include /usr/lib/x86_64-linux-gnu/include/QtCore
+ FLGQT5=-DQT_SHARED
+ prefix_I /usr/lib/x86_64-linux-gnu/include /usr/lib/x86_64-linux-gnu/include/QtCore
+ echo /usr/lib/x86_64-linux-gnu/include /usr/lib/x86_64-linux-gnu/include/QtCore
+ /dados/Downloads/vboxhardening/VirtualBox-5.2.16/kBuild/bin/linux.amd64/kmk_sed s|^\/|-I/|g; s| \/| -I/|g
+ I_INCQT5=-I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore
+ LIBQT5=-L/usr/lib/x86_64-linux-gnu/lib -lQt5CoreVBox
+ TOOLQT5=/usr/lib/x86_64-linux-gnu
+ test_compile -L/usr/lib/x86_64-linux-gnu/lib -lQt5CoreVBox -lpthread -I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib/x86_64-linux-gnu/lib -lQt5CoreVBox -lpthread -I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/lib/x86_64-linux-gnu/lib -lQt5CoreVBox -lpthread -I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ LIBQT5=-L/usr/lib/x86_64-linux-gnu/lib -lQt5Core
+ test_compile -L/usr/lib/x86_64-linux-gnu/lib -lQt5Core -lpthread -I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib/x86_64-linux-gnu/lib -lQt5Core -lpthread -I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/usr/lib/x86_64-linux-gnu/lib -lQt5Core -lpthread -I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ echo (Qt5 from '/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*')
+ INCQT5=/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include /dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore
+ FLGQT5=-DQT_SHARED
+ prefix_I /dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include /dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore
+ echo /dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include /dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore
+ /dados/Downloads/vboxhardening/VirtualBox-5.2.16/kBuild/bin/linux.amd64/kmk_sed s|^\/|-I/|g; s| \/| -I/|g
+ I_INCQT5=-I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore
+ LIBQT5=-L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5CoreVBox
+ TOOLQT5=/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*
+ test_compile -L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5CoreVBox -lpthread -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5CoreVBox -lpthread -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5CoreVBox -lpthread -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ LIBQT5=-L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5Core
+ test_compile -L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5Core -lpthread -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED qt5 qt5 nofatal
+ echo compiling the following source file:
+ cat /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc
+ echo using the following command line:
+ echo g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5Core -lpthread -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED"
+ g++ -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc -L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5Core -lpthread -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED
+ [ 1 -ne 0 ]
+ [ -z nofatal ]
+ echo
+ echo
+ return 1
+ [ -n  ]
+ log_failure qt5 not found
+ echo

+ echo   ** qt5 not found!
  ** qt5 not found!
+ echo ** qt5 not found!
+ echo
+ fail
+ [ -z  -o x != x ]
+ cleanup
+ rm -f /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.c /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.test_execute.log
+ rm -f /dados/Downloads/vboxhardening/VirtualBox-5.2.16/env.sh
+ echo Check /dados/Downloads/vboxhardening/VirtualBox-5.2.16/configure.log for details
Check /dados/Downloads/vboxhardening/VirtualBox-5.2.16/configure.log for details
+ exit 1


This is the end of configure.log
Code: Select all   Expand viewCollapse view
(Qt5 from '/usr/local')
compiling the following source file:
#include <QtGlobal>
extern "C" int main(void)
{
#if QT_VERSION >= 329216
  return 0;
#else
  return 1;
#endif
}
using the following command line:
g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/local/lib -lQt5CoreVBox -lpthread -I/usr/local/include -I/usr/local/include/QtCore -DQT_SHARED"
/dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc:1:20: fatal error: QtGlobal: No such file or directory
compilation terminated.


compiling the following source file:
#include <QtGlobal>
extern "C" int main(void)
{
#if QT_VERSION >= 329216
  return 0;
#else
  return 1;
#endif
}
using the following command line:
g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/local/lib -lQt5Core -lpthread -I/usr/local/include -I/usr/local/include/QtCore -DQT_SHARED"
/dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc:1:20: fatal error: QtGlobal: No such file or directory
compilation terminated.


(Qt5 from '/usr/lib/x86_64-linux-gnu')
compiling the following source file:
#include <QtGlobal>
extern "C" int main(void)
{
#if QT_VERSION >= 329216
  return 0;
#else
  return 1;
#endif
}
using the following command line:
g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib/x86_64-linux-gnu/lib -lQt5CoreVBox -lpthread -I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore -DQT_SHARED"
/dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc:1:20: fatal error: QtGlobal: No such file or directory
compilation terminated.


compiling the following source file:
#include <QtGlobal>
extern "C" int main(void)
{
#if QT_VERSION >= 329216
  return 0;
#else
  return 1;
#endif
}
using the following command line:
g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/usr/lib/x86_64-linux-gnu/lib -lQt5Core -lpthread -I/usr/lib/x86_64-linux-gnu/include -I/usr/lib/x86_64-linux-gnu/include/QtCore -DQT_SHARED"
/dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc:1:20: fatal error: QtGlobal: No such file or directory
compilation terminated.


(Qt5 from '/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*')
compiling the following source file:
#include <QtGlobal>
extern "C" int main(void)
{
#if QT_VERSION >= 329216
  return 0;
#else
  return 1;
#endif
}
using the following command line:
g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5CoreVBox -lpthread -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED"
/dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc:1:20: fatal error: QtGlobal: No such file or directory
compilation terminated.


compiling the following source file:
#include <QtGlobal>
extern "C" int main(void)
{
#if QT_VERSION >= 329216
  return 0;
#else
  return 1;
#endif
}
using the following command line:
g++  -fPIC -g -O -Wall -o /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_out /dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc "-L/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/lib -lQt5Core -lpthread -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include -I/dados/Downloads/vboxhardening/VirtualBox-5.2.16/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED"
/dados/Downloads/vboxhardening/VirtualBox-5.2.16/.tmp_src.cc:1:20: fatal error: QtGlobal: No such file or directory
compilation terminated.


** qt5 not found!
Attachments
configure.txt
(77 KiB) Downloaded 15 times
configure.log
(20.12 KiB) Downloaded 16 times
Last edited by socratis on 1. Apr 2019, 10:22, edited 1 time in total.
Reason: Added missing URL.
tiekri
 
Posts: 2
Joined: 1. Apr 2019, 07:08

Re: ** qt5 not found - build v5.2.16 error in Ubuntu 16.04

Postby socratis » 1. Apr 2019, 10:20

I'm not too familiar with building VirtualBox on Linux related systems, I'm more familiar with the VirtualBox building process on OSX. But, I did try to build VirtualBox on a Mint 19 VM, and all I had to do was:
Code: Select all   Expand viewCollapse view
sudo apt-get install subversion gcc g++ bcc iasl xsltproc libxml2-dev libidl-dev libcurl4-openssl-dev libssl-dev libvpx-dev libopus-dev libpng-dev libsdl1.2-dev libxcursor-dev libxinerama-dev libxrandr-dev libxmu-dev qtbase5-dev python-dev libdevmapper-dev libcap-dev gcc-multilib g++-multilib makeself libpam0g-dev qt5-default qttools5-dev-tools libqt5opengl5-dev libqt5x11extras5-dev default-jdk texlive texlive-latex-extra texlive-fonts-extra libelf-dev

Then the build worked. Maybe you need to install the packages that are missing? For example (part of the above command):
Code: Select all   Expand viewCollapse view
qt5-default qttools5-dev-tools libqt5opengl5-dev libqt5x11extras5-dev

I'm going to try on an Ubuntu 16.04 VM (I have one) and report back...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
socratis
Site Moderator
 
Posts: 26923
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: ** qt5 not found - build v5.2.16 error in Ubuntu 16.04

Postby tiekri » 1. Apr 2019, 18:21

I Installed it all, checked again but I don't think this is the problem, as qt5 and everything else installs fine. But the problem persists.
tiekri
 
Posts: 2
Joined: 1. Apr 2019, 07:08

Re: ** qt5 not found - build v5.2.16 error in Ubuntu 16.04

Postby SamASR » 1. Apr 2019, 23:24

Download *.run file at download.qt.io/archive/qt/5.9/5.9.4/
Install Qt5 to /opt/Qt5.9.4/ - requires GUI (xubuntu-desktop or ubuntu-desktop).
Pass argument to "./configure --disable-hardening --with-qt-dir=/opt/Qt5.9.4/5.9.4/gcc_64"
SamASR
 
Posts: 14
Joined: 19. Mar 2019, 22:34


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 2 guests