Page 1 of 1

currently I can not build FG [SOLVED]

Posted: Tue Dec 20, 2016 9:30 pm
by laserman

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

Re: currently I can not build FG

Posted: Wed Dec 21, 2016 12:02 am
by IAHM-COL
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

Re: currently I can not build FG

Posted: Wed Dec 21, 2016 3:22 pm
by laserman
This did help:

FG_CMAKEARGS="-DENABLE_FGQCANVAS=off"

Re: currently I can not build FG

Posted: Wed Dec 21, 2016 3:28 pm
by IAHM-COL
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

Re: currently I can not build FG

Posted: Wed Dec 21, 2016 3:52 pm
by IAHM-COL
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