Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Qt 5.11 due to qt5_use_modules removal #125

Closed
prettyv opened this Issue May 23, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@prettyv
Copy link

prettyv commented May 23, 2018

Since Qt 5.11 q4wine fails to build with Unknown CMake command "qt5_use_modules" because this macro has been removed. Qt's CMake Macro Reference says about qt5_use_modules:
This macro is obsolete. Use target_link_libraries with IMPORTED targets instead

According to this using target_link_libraries and prepending Qt5:: to the module names should generally be enough, although my CMake knowledge is limited.

@VFedyk

This comment has been minimized.

Copy link
Contributor

VFedyk commented May 28, 2018

This issue directly relates to compilation bug during installation of packages q4wine and q4wine-git from AUR in Archlinux.

There is the meaningful part of the output in the terminal:

==> Starting build()...
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 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

 * Utility for Wine applications and prefixes management.
 * Copyright (C) 2008-2018 by Oleksii S. Malakhov <brezerk@gmail.com>
 * http://brezblock.org.ua/

-- Q4Wine build environment -- 


-- Fount Qt Core version ; 5.11.0
-- Build realm is   : Linux x86_64

-- Q4Wine build options --

-- Version                       : 1.3.7
-- CMAKE_INSTALL_PREFIX          : /usr
-- DESKTOP_ENTRY_PATH            : /usr/share/applications
-- PIXMAPS_ENTRY_PATH            : /usr/share/icons/hicolor
-- PIXMAPS_UNITY_ENTRY_PATH      : /usr/share/icons/ubuntu-mono-dark
-- MANPAGE_ENTRY_PATH            : /usr/share/man
-- LIBS_ENTRY_PATH               : /usr/lib

-- DEBUG                         : OFF
-- RELEASE                       : ON
-- QT5                           : ON
-- WITH_ICOUTILS                 : ON
-- WITH_SYSTEM_SINGLEAPP         : ON
-- WITH_WINEAPPDB                : ON
-- USE_BZIP2                     : OFF
-- USE_GZIP                      : OFF
-- WITH_DBUS                     : ON

-- LINGUAS                       : af;cs;de;en;es;fa;he;it;ja;pl;pt_BR;ru;uk;zh_TW;zh_CN;fr

-- See INSTALL file for details and more info --

-- Searching for fuseiso binary --

--     fuseiso : /usr/bin/fuseiso

-- Searching for icoutils binaries (WITH_ICOUTILS=ON) --

--     wrestool : /usr/bin/wrestool
--     icotool  : /usr/bin/icotool

-- Searching for QtSingleApplication package (WITH_SYSTEM_SINGLEAPP=ON) --

--      library : /usr/lib/libQt5Solutions_SingleApplication-head.so
--  include dir : /usr/include


CMake Error at src/q4wine-lib/CMakeLists.txt:88 (qt5_use_modules):
  Unknown CMake command "qt5_use_modules".


-- Configuring incomplete, errors occurred!
See also "/tmp/yaourt-tmp-vf/aur-q4wine-git/src/build/CMakeFiles/CMakeOutput.log".
@tehnick

This comment has been minimized.

Copy link
Collaborator

tehnick commented May 29, 2018

909bc7f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.