svn commit: trunk/buildroot/package/qtopia4
Author: ninevoltz
Date: 2008-03-12 06:53:02 -0700 (Wed, 12 Mar 2008) New Revision: 21315
Log:
Fix Qtopia Core 4 compile and installation and bump to version 4.4.0
Modified:
trunk/buildroot/package/qtopia4/Config.in
trunk/buildroot/package/qtopia4/qtopia4.mk
Changeset:
Modified: trunk/buildroot/package/qtopia4/Config.in
===================================================================
buildroot/package/qtopia4/Config.in +59 -28
@@ -12,7 +12,6 @@ bool "Compile with debug support" default n depends BR2_PACKAGE_QTOPIA4 - help choice prompt "Library type"
@@ -60,7 +59,7 @@ default "" depends BR2_PACKAGE_QTOPIA4 && BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_COMMERCIAL help - Commercial users can download their source directly by providing a username. + Commercial users can download their source directly by providing a username. config BR2_PACKAGE_QTOPIA4_COMMERCIAL_PASSWORD
@@ -68,23 +67,15 @@ default "" depends BR2_PACKAGE_QTOPIA4 && BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_COMMERCIAL help - Commercial users can download their source directly by providing a password. + Commercial users can download their source directly by providing a password. config BR2_PACKAGE_QTOPIA4_QT3SUPPORT bool "Compatibility with Qt3" default y depends BR2_PACKAGE_QTOPIA4 help - Turns on support for older Qt3. + Turns on support for older Qt3. -config BR2_PACKAGE_QTOPIA4_DEPTHS - string "color depths to support" - default "-depths 8" - depends BR2_PACKAGE_QTOPIA4 - help - Which color depths to support for the library. Default is "-depths - 8". Is specified by a comma separated list, i.e. -depths 24,16,8. - config BR2_PACKAGE_QTOPIA4_GIF bool "Enable GIF support" default n
@@ -95,39 +86,80 @@ config BR2_PACKAGE_QTOPIA4_LIBMNG bool "Enable libmng support" default n - select BR2_PACKAGE_LIBPNG depends BR2_PACKAGE_QTOPIA4 help This compiles and installs the plugin for MNG support. choice - prompt "libjpeg support" + prompt "JPEG support" depends BR2_PACKAGE_QTOPIA4 default BR2_PACKAGE_QTOPIA4_NOJPEG help Select libjpeg support. config BR2_PACKAGE_QTOPIA4_NOJPEG - bool - prompt "No jpeg support" - help - Disable JPEG support + bool "No jpeg support" config BR2_PACKAGE_QTOPIA4_SYSTEMJPEG - bool + bool "Use system libjpeg" select BR2_PACKAGE_JPEG - prompt "use system libjpeg" - help - Link against system libjpeg config BR2_PACKAGE_QTOPIA4_QTJPEG - bool - prompt "use qt libjpeg" + bool "Use Qt libjpeg" + +endchoice + +choice + prompt "PNG support" + depends BR2_PACKAGE_QTOPIA4 + default BR2_PACKAGE_QTOPIA4_NOPNG help - Link against libjpeg proveded with Qt + Select which library to use if PNG support should be enabled. + +config BR2_PACKAGE_QTOPIA4_NOPNG + bool "No PNG support" + +config BR2_PACKAGE_QTOPIA4_SYSTEMPNG + bool "Use system libpng" + select BR2_PACKAGE_LIBPNG + +config BR2_PACKAGE_QTOPIA4_QTPNG + bool "Use Qt bundled libpng" + endchoice choice + prompt "TIFF support" + depends BR2_PACKAGE_QTOPIA4 + default BR2_PACKAGE_QTOPIA4_NOTIFF + help + Select which library to use if TIFF support should be enabled. + +config BR2_PACKAGE_QTOPIA4_NOTIFF + bool "No TIFF support" + +config BR2_PACKAGE_QTOPIA4_SYSTEMTIFF + bool "Use system libtiff" + select BR2_PACKAGE_TIFF + +config BR2_PACKAGE_QTOPIA4_QTTIFF + bool "Use Qt bundled libtiff" + +endchoice + +config BR2_PACKAGE_QTOPIA4_SQL + bool "Enable SQL support" + depends BR2_PACKAGE_QTOPIA4 + help + Enable all the SQL drivers it QtSql library. + +config BR2_PACKAGE_QTOPIA4_OPENSSL + bool "Enable OpenSSL support" + depends BR2_PACKAGE_QTOPIA4 + help + Enable support for the OpenSSL encryption library. + +choice prompt "zlib support" depends BR2_PACKAGE_QTOPIA4 default BR2_PACKAGE_QTOPIA4_QTZLIB
@@ -146,7 +178,7 @@ prompt "Qt zlib" help Use the zlib bundled with Qt. - + config BR2_PACKAGE_QTOPIA4_SYSTEMZLIB bool select BR2_PACKAGE_ZLIB
@@ -154,7 +186,6 @@ help Use the shared zlib from the system. endchoice - config BR2_PACKAGE_QTOPIA4_EMB_PLATFORM string "The embedded platform we are making Qtopia4 for"
@@ -176,4 +207,4 @@ default "generic" if BR2_sparc depends BR2_PACKAGE_QTOPIA4 help - The platform. + The platform.
Modified: trunk/buildroot/package/qtopia4/qtopia4.mk
===================================================================
buildroot/package/qtopia4/qtopia4.mk +100 -96
318 lines not on this page · raw message
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"ninevoltz" == ninevoltz <[email protected]> writes:
ninevoltz> Author: ninevoltz
ninevoltz> Date: 2008-03-12 06:53:02 -0700 (Wed, 12 Mar 2008) ninevoltz> New Revision: 21315
ninevoltz> Log:
ninevoltz> Fix Qtopia Core 4 compile and installation and bump to ninevoltz> version 4.4.0
Please note in the commit message who the patch was from.
Signature · 1 line
Bye, Peter Korsgaard
Le Wed, 12 Mar 2008 15:20:50 +0100,
Peter Korsgaard <[email protected]> a ?crit :
Quoted 1 line
Please note in the commit message who the patch was from.
Yes, that would be very nice. I was a bit surprised when I saw my fakeroot-related patch committed with no attribution. Of course, it was a very tiny and trivial patch, but attribution is an important aspect of free software contribution, even for tiny contributions.
Thanks,
Thomas
Signature · 11 lines
Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://busybox.net/lists/buildroot/attachments/20080312/a1171971/attachment.pgp
Quoted 4 lines · ninevoltz at uclibc.org
Modified:
trunk/buildroot/package/qtopia4/qtopia4.mk
===================================================================buildroot/package/qtopia4/qtopia4.mk +0
-0
snip
buildroot/package/qtopia4/qtopia4.mk line 252
Quoted 4 lines
-$(QTOPIA4_TARGET_DIR)/.installed: $(QTOPIA4_TARGET_DIR)/.built +$(STAGING_DIR)/usr/lib/libQtCore.la: $(QTOPIA4_TARGET_DIR)/.compiled
buildroot/package/qtopia4/qtopia4.mk +1
-0+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(QTOPIA4_TARGET_DIR) install
Doing a make install seems rather over the top. I don't need all the docs copied into the staging dir for a start. Why do the install at all, qtopia4 worked fine before when just copying the needed parts to the TARGET_DIR
A possible improvement might be to do install_subtargets instead.
Quoted 5 lines
buildroot/package/qtopia4/qtopia4.mk +2
-1+ +$(TARGET_DIR)/usr/lib/libQtCore.so.4: $(STAGING_DIR)/usr/lib/libQtCore.la mkdir -p $(TARGET_DIR)/usr/lib/fonts touch $(TARGET_DIR)/usr/lib/fonts/fontdir - cp -dpf $(QTOPIA4_TARGET_DIR)/lib/fonts/helvetica*.qpf $(TARGET_DIR)/usr/lib/fonts
buildroot/package/qtopia4/qtopia4.mk line 262
Quoted 10 lines
buildroot/package/qtopia4/qtopia4.mk +5
-4- cp -dpf $(QTOPIA4_TARGET_DIR)/lib/fonts/fixed*.qpf $(TARGET_DIR)/usr/lib/fonts - cp -dpf $(QTOPIA4_TARGET_DIR)/lib/fonts/micro*.qpf $(TARGET_DIR)/usr/lib/fonts + cp -dpf $(STAGING_DIR)/usr/lib/fonts/helvetica*.qpf $(TARGET_DIR)/usr/lib/fonts + cp -dpf $(STAGING_DIR)/usr/lib/fonts/fixed*.qpf $(TARGET_DIR)/usr/lib/fonts + cp -dpf $(STAGING_DIR)/usr/lib/fonts/micro*.qpf $(TARGET_DIR)/usr/lib/fonts ifeq ($(BR2_PACKAGE_QTOPIA4_SHARED),y) - cp -dpf $(QTOPIA4_TARGET_DIR)/lib/libQt*.so.* $(TARGET_DIR)/usr/lib/ - -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libQt*.so.$(QTOPIA4_VERSION) + cp -dpf $(STAGING_DIR)/usr/lib/libQt*.so.* $(TARGET_DIR)/usr/lib/ + -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libQt*.so.*
Why did you change this from $(STRIPCMD) $(STRIP_STRIP_UNNEEDED)?
$(STRIP) --strip-unneeded fails on my target (arm) as STRIP not defined.
Quoted 31 lines
endif
buildroot/package/qtopia4/qtopia4.mk +7
-7# Install image plugins if they are built - if [ -d $(QTOPIA4_TARGET_DIR)/plugins/imageformats ]; then \ - mkdir -p $(TARGET_DIR)/usr/lib/qt4/plugins; \ - cp -dpfr $(QTOPIA4_TARGET_DIR)/plugins/imageformats $(TARGET_DIR)/usr/lib/qt4/plugins; \ - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/qt4/plugins/imageformats/*; \ + if [ -d $(STAGING_DIR)/usr/plugins/imageformats ]; then \ + mkdir -p $(TARGET_DIR)/usr/plugins; \ + cp -dpfr $(STAGING_DIR)/usr/plugins/imageformats $(TARGET_DIR)/usr/plugins/; \ + $(STRIP) --strip-unneeded $(TARGET_DIR)/usr/plugins/imageformats/*; \ fi +ifneq ($(BR2_PACKAGE_QTOPIA4_SQL),y) # Remove Sql libraries, not needed -rm $(TARGET_DIR)/usr/lib/libQtSql* +endif # Remove Svg libraries, not needed -rm $(TARGET_DIR)/usr/lib/libQtSvg* - touch $@ +qtopia4: uclibc zlib $(QTOPIA4_DEP_LIBS) $(TARGET_DIR)/usr/lib/libQtCore.so.4 -qtopia4: uclibc zlib $(QTOPIA4_DEP_LIBS) $(QTOPIA4_TARGET_DIR)/.installed - qtopia4-clean: -$(MAKE) -C $(QTOPIA4_TARGET_DIR) clean_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
Signature · 5 lines
------------------------------------------------------------------------ Will Wagner will_wagner at carallon.com Senior Project Engineer Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------
Quoted 9 lines · Will Wagner
Quoted 4 lines · ninevoltz at uclibc.org
Modified:
trunk/buildroot/package/qtopia4/qtopia4.mk
===================================================================buildroot/package/qtopia4/qtopia4.mk +0
-0snip
Quoted 1 line
Quoted 9 lines
buildroot/package/qtopia4/qtopia4.mk line 252
Quoted 3 lines
-$(QTOPIA4_TARGET_DIR)/.installed: $(QTOPIA4_TARGET_DIR)/.built +$(STAGING_DIR)/usr/lib/libQtCore.la: $(QTOPIA4_TARGET_DIR)/.compiled
buildroot/package/qtopia4/qtopia4.mk +1
-0+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(QTOPIA4_TARGET_DIR) installDoing a make install seems rather over the top. I don't need all the docs copied into the staging dir for a start. Why do the install at all, qtopia4 worked fine before when just copying the needed parts to the
TARGET_DIR
Using copy instead of a proper install is waiting for issues to happen, unless of course you have full knowledge about what Trolltech does with their Qt library and how they install it.
Quoted 2 lines
A possible improvement might be to do
install_subtargetsinstead.
That might be an idea, but then again, somebody will need to track any changes done in Qt Embedded.
Quoted 18 lines
Quoted 5 lines
buildroot/package/qtopia4/qtopia4.mk +2
-1+ +$(TARGET_DIR)/usr/lib/libQtCore.so.4: $(STAGING_DIR)/usr/lib/libQtCore.la mkdir -p $(TARGET_DIR)/usr/lib/fonts touch $(TARGET_DIR)/usr/lib/fonts/fontdir - cp -dpf $(QTOPIA4_TARGET_DIR)/lib/fonts/helvetica*.qpf $(TARGET_DIR)/usr/lib/fontsbuildroot/package/qtopia4/qtopia4.mk line 262
Quoted 10 lines
buildroot/package/qtopia4/qtopia4.mk +5
-4- cp -dpf $(QTOPIA4_TARGET_DIR)/lib/fonts/fixed*.qpf $(TARGET_DIR)/usr/lib/fonts - cp -dpf $(QTOPIA4_TARGET_DIR)/lib/fonts/micro*.qpf $(TARGET_DIR)/usr/lib/fonts + cp -dpf $(STAGING_DIR)/usr/lib/fonts/helvetica*.qpf $(TARGET_DIR)/usr/lib/fonts + cp -dpf $(STAGING_DIR)/usr/lib/fonts/fixed*.qpf $(TARGET_DIR)/usr/lib/fonts + cp -dpf $(STAGING_DIR)/usr/lib/fonts/micro*.qpf $(TARGET_DIR)/usr/lib/fonts ifeq ($(BR2_PACKAGE_QTOPIA4_SHARED),y) - cp -dpf $(QTOPIA4_TARGET_DIR)/lib/libQt*.so.* $(TARGET_DIR)/usr/lib/ - -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libQt*.so.$(QTOPIA4_VERSION) + cp -dpf $(STAGING_DIR)/usr/lib/libQt*.so.* $(TARGET_DIR)/usr/lib/ + -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libQt*.so.*Why did you change this from $(STRIPCMD) $(STRIP_STRIP_UNNEEDED)?
Quoted 2 lines
$(STRIP) --strip-unneeded fails on my target (arm) as STRIP not defined.
Probably because I am a bit out of sync with upstream, but it should have been catched in review process before being commited. Easy fix though.
Signature · 2 lines
With kind regards, Hans-Christian Egtvedt, Applications Engineer
Quoted 17 lines · ninevoltz at uclibc.org
Author: ninevoltz
Date: 2008-03-12 06:53:02 -0700 (Wed, 12 Mar 2008) New Revision: 21315Log:
Fix Qtopia Core 4 compile and installation and bump to version 4.4.0Modified:
trunk/buildroot/package/qtopia4/Config.in
trunk/buildroot/package/qtopia4/qtopia4.mkChangeset:
Modified: trunk/buildroot/package/qtopia4/Config.in
===================================================================buildroot/package/qtopia4/Config.in +0
-0
snip
buildroot/package/qtopia4/Config.in line 87
Quoted 9 lines
buildroot/package/qtopia4/Config.in +0
-8-config BR2_PACKAGE_QTOPIA4_DEPTHS - string "color depths to support" - default "-depths 8" - depends BR2_PACKAGE_QTOPIA4 - help - Which color depths to support for the library. Default is "-depths - 8". Is specified by a comma separated list, i.e. -depths 24,16,8. -
Why have you removed the option to configure supported colour depths?
Signature · 5 lines
------------------------------------------------------------------------ Will Wagner will_wagner at carallon.com Senior Project Engineer Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------
I didn't add the patch originator's name to the commit message, it was Hans-Christian Egtvedt from Atmel Norway. I will CC this message to him.
John Voltz
Quoted 45 lines · Will Wagner
Quoted 12 lines · ninevoltz at uclibc.org
Author: ninevoltz
Date: 2008-03-12 06:53:02 -0700 (Wed, 12 Mar 2008) New Revision: 21315Log:
Fix Qtopia Core 4 compile and installation and bump to version 4.4.0Modified:
trunk/buildroot/package/qtopia4/Config.in
trunk/buildroot/package/qtopia4/qtopia4.mkQuoted 4 lines
Changeset:
Modified: trunk/buildroot/package/qtopia4/Config.in
===================================================================
--- trunk/buildroot/package/qtopia4/Config.in 2008-03-12 13:11:29 UTC(rev 21314)
Quoted 1 line
+++ trunk/buildroot/package/qtopia4/Config.in 2008-03-12 13:53:02 UTC
(rev 21315)
snip
buildroot/package/qtopia4/Config.in
Quoted 7 lines
buildroot/package/qtopia4/Config.in +0
-6-config BR2_PACKAGE_QTOPIA4_DEPTHS - string "color depths to support" - default "-depths 8" - depends BR2_PACKAGE_QTOPIA4 - help - Which color depths to support for the library. Default is"-depths
Quoted 1 line
- 8". Is specified by a comma separated list, i.e. -depths
24,16,8.
Quoted 1 line
-
Why have you removed the option to configure supported colour depths?
--
------------------------------------------------------------------------
Will Wagnerwill_wagnerat carallon.com
Senior Project Engineer Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
Quoted 5 lines
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080312/1d5bca07/attachment-0001.htm
Quoted 1 line · Will Wagner
ninevoltz at uclibc.org wrote:
<snipp>
Quoted 11 lines
buildroot/package/qtopia4/Config.in line 87
Quoted 8 lines
buildroot/package/qtopia4/Config.in +0
-8-config BR2_PACKAGE_QTOPIA4_DEPTHS - string "color depths to support" - default "-depths 8" - depends BR2_PACKAGE_QTOPIA4 - help - Which color depths to support for the library. Default is "-depths - 8". Is specified by a comma separated list, i.e. -depths 24,16,8. -Why have you removed the option to configure supported colour depths?
Why do you need it? It would only reduce the footprint by some kB anyway to specify a specific color depth.
Not specifying -depths will give you all depths supported by Qt Embedded.
Signature · 2 lines
With kind regards, Hans-Christian Egtvedt, Applications Engineer
Quoted 16 lines · Hans-Christian Egtvedt
Quoted 1 line · Will Wagner
ninevoltz at uclibc.org wrote:
<snipp>
Quoted 10 lines
buildroot/package/qtopia4/Config.in line 87
Quoted 8 lines
buildroot/package/qtopia4/Config.in +0
-8-config BR2_PACKAGE_QTOPIA4_DEPTHS - string "color depths to support" - default "-depths 8" - depends BR2_PACKAGE_QTOPIA4 - help - Which color depths to support for the library. Default is "-depths - 8". Is specified by a comma separated list, i.e. -depths 24,16,8. -Why have you removed the option to configure supported colour depths?
Quoted 2 lines
Why do you need it? It would only reduce the footprint by some kB anyway to specify a specific color depth.
I want it exactly because it does save a few kB. Perhaps we should add it back in but change the default to all?
Quoted 4 lines
Not specifying -depths will give you all depths supported by Qt Embedded.
Signature · 5 lines
------------------------------------------------------------------------ Will Wagner will_wagner at carallon.com Senior Project Engineer Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------
Quoted 17 lines · Will Wagner
Quoted 16 lines · Hans-Christian Egtvedt
Quoted 1 line · Will Wagner
ninevoltz at uclibc.org wrote:
<snipp>
Quoted 10 lines
buildroot/package/qtopia4/Config.in line 87
Quoted 8 lines
buildroot/package/qtopia4/Config.in +0
-8-config BR2_PACKAGE_QTOPIA4_DEPTHS - string "color depths to support" - default "-depths 8" - depends BR2_PACKAGE_QTOPIA4 - help - Which color depths to support for the library. Default is "-depths - 8". Is specified by a comma separated list, i.e. -depths 24,16,8. -Why have you removed the option to configure supported colour depths?
Quoted 6 lines
Quoted 2 lines
Why do you need it? It would only reduce the footprint by some kB anyway to specify a specific color depth.
I want it exactly because it does save a few kB. Perhaps we should add it back in but change the default to all?
~ > du -sk usr/lib/libQt*so.4.4.0 | sort -n
48 usr/lib/libQtTest.so.4.4.0 160 usr/lib/libQtXml.so.4.4.0 196 usr/lib/libQtSvg.so.4.4.0 396 usr/lib/libQtNetwork.so.4.4.0 492 usr/lib/libQtScript.so.4.4.0 1792 usr/lib/libQtCore.so.4.4.0 5436 usr/lib/libQtGui.so.4.4.0
These are stripped binaries.
That is roughly 8 MB of shared libraries, give or take a few kB's will also depend a lot on your compiler.
Signature · 2 lines
With kind regards, Hans-Christian Egtvedt, Applications Engineer
Quoted 11 lines
~ > du -sk
usr/lib/libQt*so.4.4.0| sort -n48 usr/lib/libQtTest.so.4.4.0 160 usr/lib/libQtXml.so.4.4.0 196 usr/lib/libQtSvg.so.4.4.0 396 usr/lib/libQtNetwork.so.4.4.0 492 usr/lib/libQtScript.so.4.4.0 1792 usr/lib/libQtCore.so.4.4.0 5436 usr/lib/libQtGui.so.4.4.0
Quoted 4 lines
These are stripped binaries.
That is roughly 8 MB of shared libraries, give or take a few kB's will also depend a lot on your compiler.
Yes but I'm using static linking, only core and gui and I have removed all the unneeded features for my target, the footprint for me is much smaller.
Quoted 1 line
Signature · 5 lines
------------------------------------------------------------------------ Will Wagner will_wagner at carallon.com Senior Project Engineer Office Tel: +44 (0)20 7371 2032 Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA ------------------------------------------------------------------------