From patchwork Thu Oct 11 16:57:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yordan Karadzhov X-Patchwork-Id: 10759527 Return-Path: Received: from mail-sn1nam02on0088.outbound.protection.outlook.com ([104.47.36.88]:3680 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730493AbeJLAZp (ORCPT ); Thu, 11 Oct 2018 20:25:45 -0400 From: Yordan Karadzhov To: "rostedt@goodmis.org" CC: "linux-trace-devel@vger.kernel.org" , Yordan Karadzhov Subject: [PATCH v3 1/4] kernel-shark-qt: Add Qt as a third party dependency. Date: Thu, 11 Oct 2018 16:57:39 +0000 Message-ID: <20181011165713.15257-2-ykaradzhov@vmware.com> References: <20181011165713.15257-1-ykaradzhov@vmware.com> In-Reply-To: <20181011165713.15257-1-ykaradzhov@vmware.com> Content-Language: en-US MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org List-ID: Content-Length: 2108 From: Yordan Karadzhov (VMware) This patch prepares the Cmake build infrastructure for the introduction of a KernelShark GUI, baset on Qt. Signed-off-by: Yordan Karadzhov (VMware) --- kernel-shark-qt/CMakeLists.txt | 8 ++++++++ kernel-shark-qt/README | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/kernel-shark-qt/CMakeLists.txt b/kernel-shark-qt/CMakeLists.txt index 4a40b11..71a021e 100644 --- a/kernel-shark-qt/CMakeLists.txt +++ b/kernel-shark-qt/CMakeLists.txt @@ -20,6 +20,14 @@ find_package(Doxygen) find_package(OpenGL) find_package(GLUT) +find_package(Qt5Widgets 5.7.1) +find_package(Qt5Network) +if (Qt5Widgets_FOUND) + + message(STATUS "Found Qt5Widgets: (version ${Qt5Widgets_VERSION})") + +endif (Qt5Widgets_FOUND) + set(LIBRARY_OUTPUT_PATH "${KS_DIR}/lib") set(EXECUTABLE_OUTPUT_PATH "${KS_DIR}/bin") diff --git a/kernel-shark-qt/README b/kernel-shark-qt/README index 84708bd..14bcb77 100644 --- a/kernel-shark-qt/README +++ b/kernel-shark-qt/README @@ -4,10 +4,13 @@ This directory contains the new Qt-based version of the KernelShark GUI. Third Party Software: ------------------------------------------------------------ -The external dependencies: +KernelShark has the following external dependencies: + Cmake, Json-C, OpenGL/Glut, Qt5Base. + 1. In order to install the packages on Ubuntu do the following: sudo apt-get install build-essential git cmake libjson-c-dev -y sudo apt-get install freeglut3-dev libxmu-dev libxi-dev -y + sudo apt-get install qtbase5-dev -y 1.1 I you want to be able to generate Doxygen documentation: sudo apt-get install graphviz doxygen-gui -y @@ -16,6 +19,7 @@ The external dependencies: 2. In order to install the packages on Fedora, as root do the following: dnf install gcc gcc-c++ git cmake json-c-devel -y dnf install freeglut-devel redhat-rpm-config -y + dnf install qt5-qtbase-devel -y 2.1 I you want to be able to generate Doxygen documentation: dnf install graphviz doxygen -y