Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 2221] New: Qt does not compile (dependencies not taken into account?)
@ 2010-07-14 12:29 bugzilla at busybox.net
  2010-07-15 12:46 ` [Buildroot] [Bug 2221] " bugzilla at busybox.net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2010-07-14 12:29 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=2221

           Summary: Qt does not compile (dependencies not taken into
                    account?)
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: luca.ceresoli at tiscali.it
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Qt fails the configure step with the following output:

Creating qmake. Please wait...
make[2]: Entering directory
`/home/murray/devel/keyser/package/buildroot/output/build/qt-everywhere-opensource-src-4.6.2/qmake'
make[2]: Nothing to be done for `first'.
make[2]: Leaving directory
`/home/murray/devel/keyser/package/buildroot/output/build/qt-everywhere-opensource-src-4.6.2/qmake'
The DirectFB screen driver functionality test failed!
 You might need to modify the include and library search paths by editing
 QT_CFLAGS_DIRECTFB and QT_LIBS_DIRECTFB in

/home/murray/devel/keyser/package/buildroot/output/build/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/linux-arm-g++.
make[1]: ***
[/home/murray/devel/keyser/package/buildroot/output/build/qt-everywhere-opensource-src-4.6.2/.configured]
Error 1
make[1]: Leaving directory `/home/murray/devel/keyser/package/buildroot'
make: ***
[/home/murray/devel/keyser/package/buildroot/output/images/rootfs.arm.tar]
Error 2

After make exited I noticed that output/build/directfb*/ had not been created,
which suggests the dependency of Qt on DirectFB has not been taken into
account.
Nataraj S Narayan reported a problem that may have the same cause with Qt
trying to use mysql
(http://lists.busybox.net/pipermail/buildroot/2010-July/036068.html).

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [Bug 2221] Qt does not compile (dependencies not taken into account?)
  2010-07-14 12:29 [Buildroot] [Bug 2221] New: Qt does not compile (dependencies not taken into account?) bugzilla at busybox.net
@ 2010-07-15 12:46 ` bugzilla at busybox.net
  2010-07-16 21:48 ` bugzilla at busybox.net
  2010-07-16 21:58 ` bugzilla at busybox.net
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2010-07-15 12:46 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=2221

Luca Ceresoli <luca.ceresoli@tiscali.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luca.ceresoli at tiscali.it

--- Comment #1 from Luca Ceresoli <luca.ceresoli@tiscali.it>  ---
This patch seems to solve both Nataraj's and my issue.

diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index e2ebbb2..4bfd67a 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -115,6 +115,7 @@ QT_CONFIGURE += -no-gfx-multiscreen
 endif
 ifeq ($(BR2_PACKAGE_QT_GFX_DIRECTFB),y)
 QT_CONFIGURE += -qt-gfx-directfb
+QT_DEP_LIBS+=directfb
 else
 QT_CONFIGURE += -no-gfx-directfb
 endif
@@ -273,6 +274,7 @@ QT_CONFIGURE+= -qt-sql-ibase
 endif
 ifeq ($(BR2_PACKAGE_QT_MYSQL),y)
 QT_CONFIGURE+= -qt-sql-mysql
+QT_DEP_LIBS+=mysql
 endif
 ifeq ($(BR2_PACKAGE_QT_ODBC),y)
 QT_CONFIGURE+= -qt-sql-odbc

I could compile buildroot, but I'm not sure this patch really solves the bug.
Given this is a precedence problem I could just have been lucky with make.

In fact the value of QT_DEP_LIBS is used only once (line 608):

 qt: $(QT_DEP_LIBS) $(TARGET_DIR)/usr/lib/libQtCore.so.4

Which does *not* force make to build the libs before libQtCore.so.4.
According to the makefile, the unpack/config/compile and the following
libQtCore.so.4 steps do not depend on $(QT_DEP_LIBS).

Am I missing something?

Luca

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [Bug 2221] Qt does not compile (dependencies not taken into account?)
  2010-07-14 12:29 [Buildroot] [Bug 2221] New: Qt does not compile (dependencies not taken into account?) bugzilla at busybox.net
  2010-07-15 12:46 ` [Buildroot] [Bug 2221] " bugzilla at busybox.net
@ 2010-07-16 21:48 ` bugzilla at busybox.net
  2010-07-16 21:58 ` bugzilla at busybox.net
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2010-07-16 21:48 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=2221

--- Comment #2 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  ---
I've handled the mysql part of the problem in the patch
http://lists.busybox.net/pipermail/buildroot/2010-July/036122.html, which is
part of a pull request I hope Peter will merge soon.

The DirectFB part of the problem remains to be fixed, though.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [Bug 2221] Qt does not compile (dependencies not taken into account?)
  2010-07-14 12:29 [Buildroot] [Bug 2221] New: Qt does not compile (dependencies not taken into account?) bugzilla at busybox.net
  2010-07-15 12:46 ` [Buildroot] [Bug 2221] " bugzilla at busybox.net
  2010-07-16 21:48 ` bugzilla at busybox.net
@ 2010-07-16 21:58 ` bugzilla at busybox.net
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla at busybox.net @ 2010-07-16 21:58 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=2221

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Peter Korsgaard <jacmet@uclibc.org>  ---
Fixed in git, thanks!

The QT_DEP_LIBS is correct because of the way we build stuff in BR (single
threaded toplevel make).

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-16 21:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14 12:29 [Buildroot] [Bug 2221] New: Qt does not compile (dependencies not taken into account?) bugzilla at busybox.net
2010-07-15 12:46 ` [Buildroot] [Bug 2221] " bugzilla at busybox.net
2010-07-16 21:48 ` bugzilla at busybox.net
2010-07-16 21:58 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox