currently I can not build FG [SOLVED]

Need help getting your computer to behave? Need help installing or running FG? Need help compiling? This is your first place to start!
laserman
Posts: 138
Joined: Thu Sep 17, 2015 7:26 am

currently I can not build FG [SOLVED]

Postby laserman » Tue Dec 20, 2016 9:30 pm

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:
https://forum.flightgear.org/viewtopic.php?f=45&t=31275

User avatar
IAHM-COL
Posts: 6409
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: currently I can not build FG

Postby IAHM-COL » Wed Dec 21, 2016 12:02 am

I had got same problem :S

I already installed the 2 new dependencies
the GLEW and the QT5-websockets thingy.

My cmake outputs exact same config errors.

If you figure it out shoot a note. I'll do the same here.

IH-COL
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

laserman
Posts: 138
Joined: Thu Sep 17, 2015 7:26 am

Re: currently I can not build FG

Postby laserman » Wed Dec 21, 2016 3:22 pm

This did help:

FG_CMAKEARGS="-DENABLE_FGQCANVAS=off"

User avatar
IAHM-COL
Posts: 6409
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: currently I can not build FG

Postby IAHM-COL » Wed Dec 21, 2016 3:28 pm

ok.

I just git pulled both simgear and flightgear. Then compiled on that order.

The last commits by James Turner apparently fixed the error, and compiled with the FGQcanvas as well

In other words we'll need to verify how to satisfy the missing dependency if we want the FGQcanvas built. But for now it compiles.


Code: Select all

commit 12ad68f2580a2ef68254d369e9733ba3b530b911
Author: James Turner <zakalawe@mac.com>
Date:   Wed Dec 21 11:14:50 2016 +0000

    Abandon FGQCanvas build if QtWebSockets is missing.
   
    Should avoid build pain for people with older Qt5 installs or who
    don’t have the web-sockets development package available.

diff --git a/utils/fgqcanvas/CMakeLists.txt b/utils/fgqcanvas/CMakeLists.txt
index 888da12..dc7d993 100644
--- a/utils/fgqcanvas/CMakeLists.txt
+++ b/utils/fgqcanvas/CMakeLists.txt
@@ -4,7 +4,13 @@ set(CMAKE_CXX_STANDARD_REQUIRED YES)
 
 project(FGQCanvas)
 
-find_package(Qt5 5.3 REQUIRED COMPONENTS Widgets WebSockets)
+find_package(Qt5 5.3 COMPONENTS Widgets WebSockets)
+
+if (NOT Qt5WebSockets_FOUND)
+  message(WARNING "FGQCanvas utility requested, but QtWebSockets not found")
+  message(STATUS "Check you have the development package for Qt5 WebSockets installed")
+  return()
+endif()
 
 set(SOURCES
   temporarywidget.cpp
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?

User avatar
IAHM-COL
Posts: 6409
Joined: Sat Sep 12, 2015 3:43 pm
Location: Homey, NV (KXTA) - U.S.A
Contact:

Re: currently I can not build FG

Postby IAHM-COL » Wed Dec 21, 2016 3:52 pm

I was able to compile now even without the last conditional build commit by James, by installing this package

Code: Select all

libqt5-qtwebsockets-devel


off course, also

Code: Select all

glew-devel
https://raw.githubusercontent.com/IAHM-COL/gpg-pubkey/master/pubkey.asc

R.M.S.
If we gave everybody in the World free software today, but we failed to teach them about the four freedoms, five years from now, would they still have it?


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 9 guests