* [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt
@ 2018-10-16 12:31 bugzilla at busybox.net
2018-10-16 13:21 ` [Buildroot] [Bug 11401] " bugzilla at busybox.net
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-16 12:31 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
Bug ID: 11401
Summary: Impossible do build a qt program using
kf5-networkmanager-qt
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: carrier.nicolas0 at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
When trying to build a minimal c++ code, making use of the
kf5-networkmanager-qt library, I obtain the following error:
Project ERROR: Unknown module(s) in QT: NetworkManagerQt
There is a .pri file installed here:
output/target/usr/mkspecs/modules/qt_NetworkManagerQt.pri
Which doesn't seem to be taken into account. When cp-ed alongsidef the qt .pri
files:
cp ../output/target/usr/mkspecs/modules/qt_NetworkManagerQt.pri
../output/host/mkspecs/modules/
The build fails this time with the following error:
i686-buildroot-linux-gnu-g++: ERROR: unsafe header/library path used in
cross-compilation: '-I/usr/include/KF5/NetworkManagerQt'
Which seems to indicate that either the pri file isn't used properly or that
its content is buggy.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
@ 2018-10-16 13:21 ` bugzilla at busybox.net
2018-10-16 13:26 ` bugzilla at busybox.net
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-16 13:21 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #1 from Nicolas Carrier <carrier.nicolas0@gmail.com> ---
Created attachment 7816
--> https://bugs.busybox.net/attachment.cgi?id=7816&action=edit
The example qt network manager application
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
2018-10-16 13:21 ` [Buildroot] [Bug 11401] " bugzilla at busybox.net
@ 2018-10-16 13:26 ` bugzilla at busybox.net
2018-10-16 13:29 ` bugzilla at busybox.net
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-16 13:26 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #2 from Nicolas Carrier <carrier.nicolas0@gmail.com> ---
Note: I'm originally using a custom buildroot version on top of the 2018.02.5,
but I could reproduce the issue with the current master
0769f7fc4b3e47e05c9a7951aefa81a2dbaeab0d
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
2018-10-16 13:21 ` [Buildroot] [Bug 11401] " bugzilla at busybox.net
2018-10-16 13:26 ` bugzilla at busybox.net
@ 2018-10-16 13:29 ` bugzilla at busybox.net
2018-10-16 16:31 ` bugzilla at busybox.net
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-16 13:29 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #3 from Nicolas Carrier <carrier.nicolas0@gmail.com> ---
Created attachment 7821
--> https://bugs.busybox.net/attachment.cgi?id=7821&action=edit
The default config used to reproduce the bug with the minimal example.
The issue originally occurred with another buildroot workspace, for a real
arm-based product.
The provided defconfig is the simplest I could make, to reproduce the issue in
a minimal buildroot environment.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (2 preceding siblings ...)
2018-10-16 13:29 ` bugzilla at busybox.net
@ 2018-10-16 16:31 ` bugzilla at busybox.net
2018-10-17 6:15 ` bugzilla at busybox.net
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-16 16:31 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #4 from Pierre Ducroquet <pinaraf@pinaraf.info> ---
I will try to investigate tomorrow. I did not test with a QMake project, only
with a CMake one. Could you try converting from qmake to cmake ?
The CMakeLists.txt would look like this:
cmake_minimum_required(VERSION 3.0)
find_package(Qt5 REQUIRED COMPONENTS Gui DBus)
find_package(KF5NetworkManagerQt REQUIRED)
add_executable(qt-network-manager main.cpp)
target_link_libraries(qt-network-manager Qt5::Gui Qt5::DBus
KF5::NetworkManagerQt)
This would help confirm the issue lies in the QMake files.
Thank you very much for your report
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (3 preceding siblings ...)
2018-10-16 16:31 ` bugzilla at busybox.net
@ 2018-10-17 6:15 ` bugzilla at busybox.net
2018-10-17 6:37 ` bugzilla at busybox.net
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-17 6:15 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #5 from Nicolas Carrier <carrier.nicolas0@gmail.com> ---
I'm going to try to convert the project to cmake.
For now, the following .pro file
QT -= gui
QT += dbus network
CONFIG += c++11 console link_pkgconfig
PKGCONFIG += libnm
SOURCES += main.cpp
INCLUDEPATH = $$[QT_SYSROOT]/usr/include/KF5/NetworkManagerQt
LIBS += -lKF5NetworkManagerQt
target.path = /
!isEmpty(target.path): INSTALLS += target
allowed me to build (and run) both for desktop and in buildroot. So this proves
at least that the result of the kf5-networkmanager-qt build works fine.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (4 preceding siblings ...)
2018-10-17 6:15 ` bugzilla at busybox.net
@ 2018-10-17 6:37 ` bugzilla at busybox.net
2018-10-17 6:39 ` bugzilla at busybox.net
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-17 6:37 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #6 from Nicolas Carrier <carrier.nicolas0@gmail.com> ---
With the following CMakeLists.txt:
cmake_minimum_required(VERSION 3.0)
include(GNUInstallDirs)
find_package(Qt5 REQUIRED COMPONENTS Gui DBus Network)
find_package(KF5NetworkManagerQt REQUIRED)
add_executable(qt-network-manager main.cpp)
target_link_libraries(qt-network-manager Qt5::Gui Qt5::DBus
KF5::NetworkManagerQt)
install(TARGETS qt-network-manager DESTINATION ${CMAKE_INSTALL_BINDIR})
and test-qt-networkmanager.mk:
TEST_QT_NETWORKMANAGER_VERSION = 0.0.1
TEST_QT_NETWORKMANAGER_SITE_METHOD = local
TEST_QT_NETWORKMANAGER_SITE =
$(BR2_EXTERNAL_SPECTRACOM_PATH)/../test-qt-networkmanager-src
TEST_QT_NETWORKMANAGER_DEPENDENCIES = kf5-networkmanager-qt
$(eval $(cmake-package))
It builds fine.
I can't use the cmake solution though, because I need to use NetworkManagerQt
is an already existing and quite complex, qmake-based project, which I'd like
to avoid converting to cmake if possible.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (5 preceding siblings ...)
2018-10-17 6:37 ` bugzilla at busybox.net
@ 2018-10-17 6:39 ` bugzilla at busybox.net
2018-10-17 6:39 ` [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt with qmake bugzilla at busybox.net
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-17 6:39 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
Pierre Ducroquet <pinaraf@pinaraf.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #7 from Pierre Ducroquet <pinaraf@pinaraf.info> ---
Thank you for testing.
My message was not to imply you had to convert your project to CMake, I'm well
too aware of the difficulty of such a task. It was just to make sure we
identified the proper error.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt with qmake
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (6 preceding siblings ...)
2018-10-17 6:39 ` bugzilla at busybox.net
@ 2018-10-17 6:39 ` bugzilla at busybox.net
2018-10-17 6:57 ` bugzilla at busybox.net
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-17 6:39 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
Pierre Ducroquet <pinaraf@pinaraf.info> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Impossible do build a qt |Impossible do build a qt
|program using |program using
|kf5-networkmanager-qt |kf5-networkmanager-qt with
| |qmake
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt with qmake
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (7 preceding siblings ...)
2018-10-17 6:39 ` [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt with qmake bugzilla at busybox.net
@ 2018-10-17 6:57 ` bugzilla at busybox.net
2018-10-17 7:04 ` bugzilla at busybox.net
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-17 6:57 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #8 from Nicolas Carrier <carrier.nicolas0@gmail.com> ---
Sure, no problem, and in the meantime, I have to consider all the solutions.
I'd really like to propose a patch directly, but I don't have a sufficient
knowledge in qmake.
I noticed that qt_lib_network.pri has its QT.network.includes variable
parametered with $$QT_MODULE_INCLUDE_BASE, when for NetworkManagerQt, it's
just:
QT.NetworkManagerQt.includes = /usr/include/KF5/NetworkManagerQt
Maybe something analogous should be done. But how ? As a buildroot patch ?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt with qmake
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (8 preceding siblings ...)
2018-10-17 6:57 ` bugzilla at busybox.net
@ 2018-10-17 7:04 ` bugzilla at busybox.net
2018-10-17 7:11 ` bugzilla at busybox.net
2018-10-17 16:11 ` bugzilla at busybox.net
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-17 7:04 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #9 from Pierre Ducroquet <pinaraf@pinaraf.info> ---
I'm looking into it. I can not promise any timeline, but I sure hope to have a
patch for you during the day.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt with qmake
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (9 preceding siblings ...)
2018-10-17 7:04 ` bugzilla at busybox.net
@ 2018-10-17 7:11 ` bugzilla at busybox.net
2018-10-17 16:11 ` bugzilla at busybox.net
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-17 7:11 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #10 from Nicolas Carrier <carrier.nicolas0@gmail.com> ---
Excellent, there's no hurry, thank you very much !
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt with qmake
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
` (10 preceding siblings ...)
2018-10-17 7:11 ` bugzilla at busybox.net
@ 2018-10-17 16:11 ` bugzilla at busybox.net
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2018-10-17 16:11 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11401
--- Comment #11 from Pierre Ducroquet <pinaraf@pinaraf.info> ---
After analysis and some checks (thanks Nicolas for your availability on IRC) it
looks like there are two issues:
- a bug in extra-cmake-modules that generates invalid pri when cross-building
- wrong cmake settings on my side, thus putting files in wrong places
I am still working on it and confident a solution will be found by tomorrow.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2018-10-17 16:11 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16 12:31 [Buildroot] [Bug 11401] New: Impossible do build a qt program using kf5-networkmanager-qt bugzilla at busybox.net
2018-10-16 13:21 ` [Buildroot] [Bug 11401] " bugzilla at busybox.net
2018-10-16 13:26 ` bugzilla at busybox.net
2018-10-16 13:29 ` bugzilla at busybox.net
2018-10-16 16:31 ` bugzilla at busybox.net
2018-10-17 6:15 ` bugzilla at busybox.net
2018-10-17 6:37 ` bugzilla at busybox.net
2018-10-17 6:39 ` bugzilla at busybox.net
2018-10-17 6:39 ` [Buildroot] [Bug 11401] Impossible do build a qt program using kf5-networkmanager-qt with qmake bugzilla at busybox.net
2018-10-17 6:57 ` bugzilla at busybox.net
2018-10-17 7:04 ` bugzilla at busybox.net
2018-10-17 7:11 ` bugzilla at busybox.net
2018-10-17 16:11 ` bugzilla at busybox.net
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.