[umbrello] [Bug 424794] Cannot build on Ubuntu 18.04 (#include <ThreadWeaver/Sequence> is not found)

Ralf Habacker bugzilla_noreply at kde.org
Thu Jul 30 13:01:44 BST 2020


https://bugs.kde.org/show_bug.cgi?id=424794

--- Comment #3 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Ralf Habacker from comment #2)
> (In reply to Robert Hairgrove from comment #1)
> > Seems like CMake is creating an extra ThreadWeaver subdirectory under
> > /usr/include/KF5/ThreadWeaver?
> 
> which is provided by the threadewever development package  
> $ rpm -q -f /usr/include/KF5/ThreadWeaver/
> threadweaver-devel-5.55.0-lp151.1.1.x86_64
> 
> This package also provides the associated cmake config files to support
> find_package(). 
> 
> grep -rn INCLUDE 
> /usr/lib64/cmake/KF5ThreadWeaver/KF5ThreadWeaverTargets.cmake
> 66:  INTERFACE_INCLUDE_DIRECTORIES
> "${_IMPORT_PREFIX}/include/KF5/ThreadWeaver;${_IMPORT_PREFIX}/include/KF5"
> 
> At least on opensuse leap 15.1 it includes the initial mentioned directoy
> and should be added to the compile line by default.
> 
> running 
> 
> make VERBOSE=1
> 
> gives some more hints which directories are included.

$~/src/umbrello-master-kf5-build/lib/kdevplatform> make tests/testcore.o
VERBOSE=1
...
cd /home/xxx/src/umbrello-master-kf5-build/lib/kdevplatform && /usr/bin/g++ 
-DENABLE_PHP_IMPORT -DKCOREADDONS_LIB -DKDEVPHPPARSER_EXPORT=""
-DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB
-DQT_DISABLE_DEPRECATED_BEFORE=0 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WIDGETS_LIB
-DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-I/home/ralf.habacker/src/umbrello-master-kf5-build/lib/kdevplatform
-I/home/ralf.habacker/src/umbrello-master/lib/kdevplatform
-I/home/ralf.habacker/src/umbrello-master-kf5-build/lib/kdevplatform/KDevTests_autogen/include
-I/home/ralf.habacker/src/umbrello-master/lib/kdev5-php/parser
-I/home/ralf.habacker/src/umbrello-master-kf5-build/lib/kdev5-php/parser
-I/home/ralf.habacker/src/umbrello-master/lib/kdevplatform/tests
-I/usr/include/kdevelop-pg-qt -isystem /usr/include/kdevplatform -isystem
/usr/include/KF5/KParts -isystem /usr/include/KF5 -isystem
/usr/include/KF5/KIOWidgets -isystem /usr/include/KF5/KIOCore -isystem
/usr/include/KF5/KCoreAddons -isystem /usr/include/qt5 -isystem
/usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem
/usr/include/KF5/KService -isystem /usr/include/KF5/KConfigCore -isystem
/usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtConcurrent -isystem
/usr/include/qt5/QtDBus -isystem /usr/include/KF5/KJobWidgets -isystem
/usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem
/usr/include/KF5/KCompletion -isystem /usr/include/KF5/KWidgetsAddons -isystem
/usr/include/KF5/KXmlGui -isystem /usr/include/qt5/QtXml -isystem
/usr/include/KF5/KConfigWidgets -isystem /usr/include/KF5/KCodecs -isystem
/usr/include/KF5/KConfigGui -isystem /usr/include/KF5/KAuth -isystem
/usr/include/KF5/KTextWidgets -isystem /usr/include/KF5/SonnetUi -isystem
/usr/include/KF5/KI18n -isystem /usr/include/KF5/KTextEditor -isystem
/usr/include/KF5/ThreadWeaver  -fno-delete-null-pointer-checks
-Wno-deprecated-declarations -std=c++11 -std=c++0x -fno-operator-names
-fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security
-Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual
-Werror=return-type -Wvla -Wdate-time  -Wlogical-op -g -fvisibility=hidden
-fvisibility-inlines-hidden   -fPIC -o
CMakeFiles/KDevTests.dir/tests/testcore.cpp.o -c
/home/ralf.habacker/src/umbrello-master/lib/kdevplatform/tests/testcore.cpp

This command line has 

-isystem
/usr/include/KF5/ThreadWeaver

included.

As the library KDevTests, which testcore.o is added, only links to KDev::Shell,
the issue seems to be located in the cmake support for that library.
It would be for interest, which kdevplatform is used to compile umbrello

With 

$: rpm -q  kdevplatform-devel
kdevplatform-devel-5.3.2-lp151.1.3.x86_64

it works.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list