Board index FlightGear Support Compiling

fatal error: QtWebSockets/QWebSocket: No such file or direct

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

fatal error: QtWebSockets/QWebSocket: No such file or direct

Postby pommesschranke » Sun Dec 18, 2016 11:54 pm

Code: Select all
[ 20%] Built target fgqcanvas_automoc
[ 20%] Building CXX object utils/fgqcanvas/CMakeFiles/fgqcanvas.dir/temporarywidget.cpp.o
In file included from /SDB2/fg-fgmeta/next/flightgear/utils/fgqcanvas/temporarywidget.cpp:1:0:
/SDB2/fg-fgmeta/next/flightgear/utils/fgqcanvas/temporarywidget.h:5:35: fatal error: QtWebSockets/QWebSocket: No such file or directory
compilation terminated.
utils/fgqcanvas/CMakeFiles/fgqcanvas.dir/build.make:66: recipe for target 'utils/fgqcanvas/CMakeFiles/fgqcanvas.dir/temporarywidget.cpp.o' failed
make[2]: *** [utils/fgqcanvas/CMakeFiles/fgqcanvas.dir/temporarywidget.cpp.o] Error 1
CMakeFiles/Makefile2:944: recipe for target 'utils/fgqcanvas/CMakeFiles/fgqcanvas.dir/all' failed
make[1]: *** [utils/fgqcanvas/CMakeFiles/fgqcanvas.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

pommesschranke
 
Posts: 1100
Joined: Sat Apr 27, 2013 7:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Lubuntu 18.04

Re: fatal error: QtWebSockets/QWebSocket: No such file or di

Postby pommesschranke » Tue Dec 20, 2016 9:23 pm

I did
Code: Select all
apt install libqtwebsockets5


and now I get this:
Code: Select all
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:26 (find_package):
  Could not find a package configuration file provided by "Qt5WebSockets"
  with any of the following names:

    Qt5WebSocketsConfig.cmake
    qt5websockets-config.cmake

  Add the installation prefix of "Qt5WebSockets" to CMAKE_PREFIX_PATH or set
  "Qt5WebSockets_DIR" to a directory containing one of the above files.  If
  "Qt5WebSockets" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  utils/fgqcanvas/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
See also "/SDB2/fg-fgmeta/next/build/flightgear/CMakeFiles/CMakeOutput.log".
See also "/SDB2/fg-fgmeta/next/build/flightgear/CMakeFiles/CMakeError.log".
-- System is: Linux
-- Linux distro is: Ubuntu

pommesschranke
 
Posts: 1100
Joined: Sat Apr 27, 2013 7:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Lubuntu 18.04

Re: fatal error: QtWebSockets/QWebSocket: No such file or di

Postby wkitty42 » Wed Dec 21, 2016 10:22 am

is this 14.04? if so, at this time, the only option i've found is to edit your dnc and change
Code: Select all
FG_CMAKEARGS=""

to
Code: Select all
FG_CMAKEARGS="-DENABLE_FGQCANVAS=off"

i kinda suspect it is not 14.04, though, since you were able to find that package and my 14.04.5 doesn't/won't/can't :(
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4641
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: fatal error: QtWebSockets/QWebSocket: No such file or di

Postby FlugHund » Wed Dec 21, 2016 1:03 pm

pommesschranke wrote in Tue Dec 20, 2016 9:23 pm:I did
Code: Select all
apt install libqtwebsockets5

Also, shouldn't this some package with a trailing "-dev", like libqtwebkit-dev or such?

Edit: if that still not works, try package qt5-default which installs a lot of the qt5 stuff. IIRC that worked for me (For 2016.4 at least).
Edit2: Plus bring your next branch up to date, according to ML there were some changes recently in this are of code.
User avatar
FlugHund
 
Posts: 489
Joined: Thu Mar 01, 2007 3:27 pm
Callsign: D-HUND
IRC name: D-HUND / debdog
Version: next
OS: Devuan

Re: fatal error: QtWebSockets/QWebSocket: No such file or di

Postby pommesschranke » Wed Dec 21, 2016 3:20 pm

I did have lubuntu 14.04, but the build script told my that cmake is too old.
So I was brave and upgraded to 16.04

I have libqtwebkit-dev and qt5-default installed - that does not help.
There is no package like "libqtwebsockets5-dev"

Plus bring your next branch up to date,

download_and_compile.sh takes care of that, right ?
My revision is: 12ad68.....30b911


This did help:
Code: Select all
FG_CMAKEARGS="-DENABLE_FGQCANVAS=off"

Thank you!
pommesschranke
 
Posts: 1100
Joined: Sat Apr 27, 2013 7:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Lubuntu 18.04

Re: fatal error: QtWebSockets/QWebSocket: No such file or di

Postby biloute974 » Wed Dec 21, 2016 4:19 pm

Hi,
Try this:
Code: Select all
apt install libqt5websockets5-dev
Intel I7 7700 - 16Gb DDR4 - Nvidia GTX970 - FG 2017.4.0 from D&C
biloute974
 
Posts: 179
Joined: Mon Feb 23, 2015 8:49 am
Callsign: U974
Version: 2016.1.0
OS: Mint 17.2

Re: fatal error: QtWebSockets/QWebSocket: No such file or di

Postby wkitty42 » Wed Dec 21, 2016 6:31 pm

pommesschranke wrote in Wed Dec 21, 2016 3:20 pm:I did have lubuntu 14.04, but the build script told my that cmake is too old.
So I was brave and upgraded to 16.04

ahhh... you didn't wait for the cmake repo to be added like the others... i'm using the new cmake in the same manner as we do the fgfs stuff ;) it is ok, though... you did update to another LTS :)

pommesschranke wrote in Wed Dec 21, 2016 3:20 pm:I have libqtwebkit-dev and qt5-default installed - that does not help.
There is no package like "libqtwebsockets5-dev"

http://packages.ubuntu.com/search?suite ... chon=names
i remembered in my searching that there was two '5' in the name... the above link gives both standard and dev package names...

pommesschranke wrote in Wed Dec 21, 2016 3:20 pm:
Plus bring your next branch up to date,

download_and_compile.sh takes care of that, right ?

yes...

pommesschranke wrote in Wed Dec 21, 2016 3:20 pm:My revision is: 12ad68.....30b911

here's what i have and the time it was done...
Code: Select all
********** 20161221_095122EST **********
********** Total elapsed update and compile time is 16m 36s **********

PLib:    1b3b3e1d7689a85a50720f112614022c65d592bb
OSG:     b28ed13c0f67ceb29589f61e23a826581152b2d1
Simgear: 2c2a57f3686e0631a9197e59c4c0f48ecba278cb
FGFS:    12ad68f2580a2ef68254d369e9733ba3b530b911
FGData:  57a2d21ddf5117551d0193d79771d34a7cf99945
FGAddon: r2359 | andgi | 2016-12-20 16:17:55 -0500 (Tue, 20 Dec 2016)



pommesschranke wrote in Wed Dec 21, 2016 3:20 pm:This did help:
Code: Select all
FG_CMAKEARGS="-DENABLE_FGQCANVAS=off"

the cmake stuff has also been fixed so that is not needed any more so you can remove the part in quotes... it will continue the configure and compile without those and it will skip the FGQCanvas thing... if you do get the qt5websockets stuff loaded, it should build the FGQCanvas as designed...

pommesschranke wrote in Wed Dec 21, 2016 3:20 pm:Thank you!

you're quite welcome :)
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 4641
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5


Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest