F1ash / qt-virt-manager

Qt Virtual machines manager
http://f1ash.github.io/qt-virt-manager
GNU General Public License v2.0
241 stars 72 forks source link

Cannot build (ubuntu 18.04) #42

Closed jyte closed 5 years ago

jyte commented 5 years ago

Hello,

I have been trying to compile qt-virt-manager on my kubuntu 18.04, but no luck so far.

I first had trouble mentioned in #36 and managed to get over it by creating a file libutf8proc.pc in /usr/lib/x86_64-linux-gnu/pkgconfig.

File is like so

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: libutf8proc
Description: UTF8 processing
Version: 2.1.0
Libs: -L${libdir} -lutf8proc
Cflags: -I${includedir} -DUTF8PROC_EXPORTS

Which is basically what comes from the deb file of ubuntu 19.10 and I only updated the version to match the dpkg output version.

Now I am stuck with KRDC dependencies. I have libkrdccore.so.5 installed on my system in /usr/lib/x86_64-linux-gnu, and also tried to create a symlink libkrdccore.so to libkrdccore.so.5, but no luck so far.

here is the cmake output

$ cmake .
-- Build on system: Linux
-- Build with QT version: 5
-- QT4 build: 0
-- QT5 build: 1
-- 
-- LIB_SUFFIX variable is not defined. It will be autodetected now.
-- You can set it manually with -DLIB_SUFFIX=<value> (64 for example)
--    LIB_SUFFIX is set to '64'
-- 
-- DEBUG: KRDC include directory = 
-- DEBUG: KRDC link directory = 
-- DEBUG: KRDC CFlags = 
-- Could NOT find KRDC
-- Found GObject libraries: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so;/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so;/usr/lib/x86_64-linux-gnu/libgthread-2.0.so;/usr/lib/x86_64-linux-gnu/libglib-2.0.so
-- Found GObject includes : /usr/include/glib-2.0/gobject
-- Found Gio libraries: /usr/lib/x86_64-linux-gnu/libgio-2.0.so
-- Found Gio includes : /usr/include/glib-2.0/gio
-- Found includes :
    /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
    /usr/include/glib-2.0/gobject
    /usr/include/glib-2.0/gio

    /usr/include/spice-1
    /usr/include/spice-client-glib-2.0
    /usr/include/libvirt
    /usr/include/qtermwidget5;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/include/x86_64-linux-gnu/qt5
    /usr/include/rfb
    KRDC_INCLUDE_DIR-NOTFOUND
    /usr/include
-- Found BUILD_PROJECT_LIBRARIES: Qt5::Widgets;Qt5::Xml;Qt5::Svg;Qt5::Multimedia;Qt5::Network;/usr/lib/x86_64-linux-gnu/libvirt.so;qtermwidget5;Qt5Widgets;Qt5Gui;Qt5Core;utf8proc;/usr/lib/x86_64-linux-gnu/libglib-2.0.so;/usr/lib/x86_64-linux-gnu/libgobject-2.0.so;/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so;/usr/lib/x86_64-linux-gnu/libgthread-2.0.so;/usr/lib/x86_64-linux-gnu/libglib-2.0.so;/usr/lib/x86_64-linux-gnu/libgio-2.0.so;/usr/lib/x86_64-linux-gnu/libspice-client-glib-2.0.so;/usr/lib/x86_64-linux-gnu/libvncclient.so;/usr/lib/x86_64-linux-gnu/libkrdccore.so;/usr/lib/x86_64-linux-gnu/libutf8proc.so
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
KRDC_INCLUDE_DIR
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager
   used as include directory in directory /home/marc/Documents/apps/qt-virt-manager

-- Configuring incomplete, errors occurred!
See also "/home/marc/Documents/apps/qt-virt-manager/CMakeFiles/CMakeOutput.log".

Any help appreciated.

F1ash commented 5 years ago

try to install krdc-devel, krdc-libs packages

jyte commented 5 years ago

I could not find any deb package related to that. However, I still managed to get the compilation done by downloading the krdc-devel rpm file matching the version of libkrdccore.so and manually extracted the content of usr/include onto my system in /usr/include.

I don't know if that was the best way to go however.