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

Discussions related to using VirtualBox on Linux hosts.
Post Reply
cesarsj
Posts: 4
Joined: 8. Feb 2019, 04:52

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

Post 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
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

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

Post 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?
cesarsj
Posts: 4
Joined: 8. Feb 2019, 04:52

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

Post 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!
Post Reply