F1ash / qt-virt-manager

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

Can't build #36

Closed funkybob closed 6 years ago

funkybob commented 6 years ago

mkdir build cd build 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'
-- 
-- Checking for module 'qtermwidget5'
--   Package 'libutf8proc', required by 'qtermwidget5', not found
CMake Error at /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:418 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:585 (_pkg_check_modules_internal)
  CMakeLists.txt:1098 (pkg_check_modules)

ii libutf8proc-dev:amd64 2.1.0-1 amd64 C library for processing UTF-8 Unicode data (development files)

F1ash commented 6 years ago

libutf8proc-dev is installed in system?

funkybob commented 6 years ago

That's the last line of my post (sorry, it was late and I'd had some wine)... it's installed.

F1ash commented 6 years ago

i have qtermwidget-0.7.1 in building... it have not utf8proc-devel requires.

funkybob commented 6 years ago
curtis@flasheart:~/src/git/qt-virt-manager/build$ cmake ..
-- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- 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'
-- 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- Found LibVirt: /usr/lib/libvirt.so  
-- Checking for module 'qtermwidget5'
--   Package 'libutf8proc', required by 'qtermwidget5', not found
CMake Error at /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:418 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:585 (_pkg_check_modules_internal)
  CMakeLists.txt:1098 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "/home/curtis/src/git/qt-virt-manager/build/CMakeFiles/CMakeOutput.log".
curtis@flasheart:~/src/git/qt-virt-manager/build$ dpkg -l | grep qtermwid
ii  libqtermwidget5-0:amd64              0.9.0-1                                 amd64        Terminal emulator widget for Qt 5 (shared libraries)
ii  libqtermwidget5-0-dev:amd64          0.9.0-1                                 amd64        Terminal emulator widget for Qt 5 (development files)
ii  qtermwidget5-data                    0.9.0-1                                 all          Terminal emulator widget for Qt 5 (data files)
F1ash commented 6 years ago

ls /usr/share/cmake | grep utf8 ls /usr/share/cmake/Modules | grep utf8

do it pls for checking the FindLibUtf8Proc.cmake module or package config files...

funkybob commented 6 years ago

It's "/usr/share/cmake-3.11/" as per the output above... and both commands showed nothing.

F1ash commented 6 years ago

clear... then need to write FindLibUtf8Proc.cmake... need a time... maybe today... maybe tomorrow...

F1ash commented 6 years ago

try to build now. but need to uncomment this line in your source.

funkybob commented 6 years ago

Thanks for the quick action, but sadly no change:

--   Package 'libutf8proc', required by 'qtermwidget5', not found
CMake Error at /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:418 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:585 (_pkg_check_modules_internal)
  CMakeLists.txt:1098 (pkg_check_modules)
F1ash commented 6 years ago

this is after uncommit #find_package(LibUtf8Proc REQUIRED) in CmakeLists.txt, line 1121 in your source? maybe need move this line between 1095 and 1096.

funkybob commented 6 years ago

Correct... uncommented. Also, same result if I move that to 1095ish (after the libvirt line)

F1ash commented 6 years ago

try now... renamed variables according with qtermwidget project.

funkybob commented 6 years ago

Still no joy.

-- Checking for module 'qtermwidget5'
--   Package 'libutf8proc', required by 'qtermwidget5', not found
CMake Error at /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:418 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.11/Modules/FindPkgConfig.cmake:585 (_pkg_check_modules_internal)
  CMakeLists.txt:1100 (pkg_check_modules)
F1ash commented 6 years ago

i did change FindUtf8Proc.cmake from qtermwidget project. If that will not helpful then problem not on my side.

funkybob commented 6 years ago

From what I can understand of what CMake is trying to do, it expects pkg-config to know about libutf8proc... which it does not, suggesting this is a Debian packaging issue.

Can you confirm for me the name of the .pc file for libutf8proc you have?

F1ash commented 6 years ago

In Fedora utf8proc-devel package not contain utf8proc.pc file too. In local building header and library detected by FindUtf8Proc.cmake in path:

# rpm -q --filesbypkg utf8proc-devel
utf8proc-devel            /usr/include/utf8proc.h
utf8proc-devel            /usr/lib64/libutf8proc.so
luqasz commented 5 years ago

I have same issue on ubuntu 18.04.

Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic
eitijupaenoithoowohd commented 5 years ago

+1 The same issue Ubuntu 18.04.2 LTS Any suggests? And could you please add to README a short solution how to build qt-virt-manager on Debian\Ubuntu?