Page 1 of 1

Error "fatal error: QtGlobal: No such file or directory" during installation on Slackware 14.2

Posted: 27. Jul 2020, 02:58
by cesarsj
The following error happens during the installation of VirtualBox-6.1.12, how do I resolve it?

Code: Select all

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 /home/cesarmsj/Downloads/VirtualBox-6.1.12/.tmp_out /home/cesarmsj/Downloads/VirtualBox-6.1.12/.tmp_src.cc "-L/home/cesarmsj/Downloads/VirtualBox-6.1.12/tools/linux.amd64/qt/v5.*/lib -lQt5Core -lpthread -I/home/cesarmsj/Downloads/VirtualBox-6.1.12/tools/linux.amd64/qt/v5.*/include -I/home/cesarmsj/Downloads/VirtualBox-6.1.12/tools/linux.amd64/qt/v5.*/include/QtCore -DQT_SHARED"
/home/cesarmsj/Downloads/VirtualBox-6.1.12/.tmp_src.cc:1:20: fatal error: QtGlobal: No such file or directory
compilation terminated.


** qt5 not found!
PS: q++ version 5

Re: Error "fatal error: QtGlobal: No such file or directory" during installation on Slackware 14.2

Posted: 27. Jul 2020, 14:50
by scottgus1
I am not by any means able to advise completely on this, as I have very little skills in Linux. But could you just need to find and install 'QtGlobal'? Maybe it is a dependency that is normally on Linux?

Or try the 'All distributions' version?

Re: Error "fatal error: QtGlobal: No such file or directory" during installation on Slackware 14.2

Posted: 27. Jul 2020, 15:42
by cesarsj
I was able to update VirtualBox just by the .run file, before I was trying to make it. I don't have to worry about that now, but thanks for the answer!