Board index FlightGear Support Compiling

QtCore/private/qglobal_p.h: File not exist ... RESOLVE!

Building FlightGear from source, and in the need for help?

QtCore/private/qglobal_p.h: File not exist ... RESOLVE!

Postby abassign » Wed Nov 01, 2017 8:45 pm

I try to compile FGFS with the last eversion of download_and_compile.sh, when bulding the flightgear section,the make report this error:

Code: Select all
Scanning dependencies of target JSBsim_bin
[ 31%] Building CXX object src/FDM/JSBSim/CMakeFiles/JSBsim_bin.dir/JSBSim.cpp.o
[ 34%] Built target yasim
[ 34%] Linking CXX executable metar
[ 34%] Built target metar
[ 34%] Linking CXX executable testAeroMesh
[ 35%] Built target testAeroMesh
[ 36%] Built target fgqmlui
[ 36%] Building CXX object src/GUI/CMakeFiles/fglauncher.dir/FlickableExtentQuery.cxx.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtQuick/5.9.1/QtQuick/private/qtquickglobal_p.h:43:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtQuick/5.9.1/QtQuick/private/qquickflickable_p.h:55,
                 from /home/abassign/fgfs/flightgear/src/GUI/FlickableExtentQuery.cxx:3:
/usr/include/x86_64-linux-gnu/qt5/QtQml/5.9.1/QtQml/private/qtqmlglobal_p.h:54:10: fatal error: QtCore/private/qglobal_p.h: File o directory non esistente
 #include <QtCore/private/qglobal_p.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
src/GUI/CMakeFiles/fglauncher.dir/build.make:839: set di istruzioni per l'obiettivo "src/GUI/CMakeFiles/fglauncher.dir/FlickableExtentQuery.cxx.o" non riuscito
make[2]: *** [src/GUI/CMakeFiles/fglauncher.dir/FlickableExtentQuery.cxx.o] Errore 1
CMakeFiles/Makefile2:2352: set di istruzioni per l'obiettivo "src/GUI/CMakeFiles/fglauncher.dir/all" non riuscito
make[1]: *** [src/GUI/CMakeFiles/fglauncher.dir/all] Errore 2
make[1]: *** Attesa per i processi non terminati....
[ 36%] Linking CXX executable JSBSim
[ 36%] Linking CXX executable fgcom
[ 36%] Built target fgcom
[ 36%] Built target JSBsim_bin
[ 36%] Linking CXX shared library libfgtestlib.so
[ 43%] Built target fgtestlib
Makefile:162: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
[  0%] Built target fgsqlite3
[  7%] Built target iaxclient_lib
[ 12%] Built target flite_hts
[ 13%] Built target hts_engine
[ 13%] Built target fgelev
[ 14%] Built target fgviewer
[ 14%] Built target MIDGsmooth
[ 15%] Built target UGsmooth
[ 15%] Built target GPSsmooth
[ 15%] Built target fgcom
[ 15%] Built target fgtraffic
[ 25%] Built target JSBSim
[ 26%] Built target testAeroMesh
[ 33%] Built target fgtestlib
[ 34%] Linking CXX executable fgtest
[ 34%] Built target fgtest
[ 34%] Linking CXX executable test_navs
[ 34%] Built target test_navs
[ 34%] Linking CXX executable test_flightplan
[ 34%] Built target test_flightplan
[ 34%] Built target test_ls_matrix
[ 34%] Built target testAeroElement
[ 34%] Built target fgrcc
[ 34%] Automatic MOC for target fgqmlui
Generating MOC predefs moc_predefs.h
[ 34%] Built target fgqmlui_autogen
[ 35%] Built target fgqmlui
[ 35%] Automatic MOC for target fglauncher
Generating MOC predefs moc_predefs.h
[ 36%] Built target fglauncher_autogen
[ 36%] Building CXX object src/GUI/CMakeFiles/fglauncher.dir/FlickableExtentQuery.cxx.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtQuick/5.9.1/QtQuick/private/qtquickglobal_p.h:43:0,
                 from /usr/include/x86_64-linux-gnu/qt5/QtQuick/5.9.1/QtQuick/private/qquickflickable_p.h:55,
                 from /home/abassign/fgfs/flightgear/src/GUI/FlickableExtentQuery.cxx:3:
/usr/include/x86_64-linux-gnu/qt5/QtQml/5.9.1/QtQml/private/qtqmlglobal_p.h:54:10: fatal error: QtCore/private/qglobal_p.h: File o directory non esistente
 #include <QtCore/private/qglobal_p.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
src/GUI/CMakeFiles/fglauncher.dir/build.make:839: set di istruzioni per l'obiettivo "src/GUI/CMakeFiles/fglauncher.dir/FlickableExtentQuery.cxx.o" non riuscito
make[2]: *** [src/GUI/CMakeFiles/fglauncher.dir/FlickableExtentQuery.cxx.o] Errore 1
CMakeFiles/Makefile2:2352: set di istruzioni per l'obiettivo "src/GUI/CMakeFiles/fglauncher.dir/all" non riuscito
make[1]: *** [src/GUI/CMakeFiles/fglauncher.dir/all] Errore 2
Makefile:162: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2


The problem born when version 17.10 Ubuntu-Kubuntu is installed. Is necessary install the SRV library: "qtbase5-private-dev"
I suggest to include this library in the script: "download_and_compile.sh", I think this can solve the problem that has been reported by at least one other user in mid-October.

Code: Select all
...
# FG
# PKG="$PKG libopenal-dev libudev-dev qt5-default qtdeclarative5-dev libdbus-1-dev libpng12-dev libplib-dev"
# Edit inserted to fix the problem
PKG="$PKG libopenal-dev libudev-dev qt5-default qtbase5-private-dev libdbus-1-dev libpng-dev libplib-dev qtdeclarative5-dev"
...
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Return to Compiling

Who is online

Users browsing this forum: No registered users and 2 guests