All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] netsurf: fix build error
@ 2018-12-13 18:54 Francois Perrad
  0 siblings, 0 replies; 4+ messages in thread
From: Francois Perrad @ 2018-12-13 18:54 UTC (permalink / raw)
  To: buildroot

the previous commit allows to build host-libpng

now, this library is found when compiling the host tool convert_image

see http://autobuild.buildroot.net/results/d0b/d0bbd563fe5c9463316b2ba0d7ef5553be0563bc/

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/netsurf/netsurf.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/netsurf/netsurf.mk b/package/netsurf/netsurf.mk
index 3339b35c9..1671944e9 100644
--- a/package/netsurf/netsurf.mk
+++ b/package/netsurf/netsurf.mk
@@ -27,6 +27,7 @@ endif
 ifeq ($(BR2_PACKAGE_NETSURF_SDL),y)
 NETSURF_DEPENDENCIES += sdl host-libpng
 NETSURF_FRONTEND = framebuffer
+NETSURF_CONFIG="HOST_CFLAGS=-I$(HOST_DIR)/include HOST_LDFLAGS='-lpng -L$(HOST_DIR)/lib'"
 endif
 
 ifeq ($(BR2_PACKAGE_LIBICONV),y)
@@ -52,6 +53,7 @@ NETSURF_MAKE_OPTS = \
 	CC="$(TARGET_CC)" \
 	AR="$(TARGET_AR)" \
 	TMP_PREFIX=$(STAGING_DIR)/usr \
+	NETSURF_CONFIG="$(NETSURF_CONFIG)" \
 	PREFIX=/usr
 
 define NETSURF_BUILD_CMDS
-- 
2.17.1

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

* [Buildroot] [PATCH] netsurf: fix build error
  2018-12-11 15:02 Francois Perrad
  2018-12-11 22:24 ` Arnout Vandecappelle
@ 2018-12-12 14:21 ` Andreas Naumann
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Naumann @ 2018-12-12 14:21 UTC (permalink / raw)
  To: buildroot

Hi Francois,

Am 11.12.18 um 16:02 schrieb Francois Perrad:
> add missing host dependency
> 
> see http://autobuild.buildroot.net/results/d0b/d0bbd563fe5c9463316b2ba0d7ef5553be0563bc/build-end.log

Unfortunately it didnt fix the issue for me. In an ARM build I get

[mmia5] 2018-12-12T14:09:53 TESTMENT: build/Linux-framebuffer/testament.h
[mmia5] 2018-12-12T14:09:53 HOST CC: 
build/Linux-framebuffer/tools/convert_image
[mmia5] 2018-12-12T14:09:53 HOST CC: 
build/Linux-framebuffer/tools/convert_font
[mmia5] 2018-12-12T14:09:53 COMPILE: content/content.c
[mmia5] 2018-12-12T14:09:53 COMPILE: content/content_factory.c
[mmia5] 2018-12-12T14:09:53 frontends/framebuffer/convert_image.c:22:10: 
fatal error: png.h: No such file or directory
[mmia5] 2018-12-12T14:09:53 #include <png.h>
[mmia5] 2018-12-12T14:09:53 ^~~~~~~
[mmia5] 2018-12-12T14:09:53 compilation terminated.
[mmia5] 2018-12-12T14:09:53 frontends/framebuffer/Makefile:97: recipe 
for target 'build/Linux-framebuffer/tools/convert_image' failed
[mmia5] 2018-12-12T14:09:53 make[3]: *** 
[build/Linux-framebuffer/tools/convert_image] Error 1


regards,
Andreas


> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
>   package/netsurf/netsurf.mk | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/netsurf/netsurf.mk b/package/netsurf/netsurf.mk
> index 162ac5d79..3339b35c9 100644
> --- a/package/netsurf/netsurf.mk
> +++ b/package/netsurf/netsurf.mk
> @@ -25,7 +25,7 @@ endif
>   endif
>   
>   ifeq ($(BR2_PACKAGE_NETSURF_SDL),y)
> -NETSURF_DEPENDENCIES += sdl
> +NETSURF_DEPENDENCIES += sdl host-libpng
>   NETSURF_FRONTEND = framebuffer
>   endif
>   
> 

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

* [Buildroot] [PATCH] netsurf: fix build error
  2018-12-11 15:02 Francois Perrad
@ 2018-12-11 22:24 ` Arnout Vandecappelle
  2018-12-12 14:21 ` Andreas Naumann
  1 sibling, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2018-12-11 22:24 UTC (permalink / raw)
  To: buildroot

 Hi Francois,

On 11/12/2018 16:02, Francois Perrad wrote:
> add missing host dependency
> 
> see http://autobuild.buildroot.net/results/d0b/d0bbd563fe5c9463316b2ba0d7ef5553be0563bc/build-end.log
> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

 Applied to master, thanks.

 I've rewritten the commit message as follows:

    package/netsurf: add dependency on host-libpng for sdl

    libpng is used by the convert_image host tool, which is built when SDL
    is enabled.

    Fixes:

http://autobuild.buildroot.net/results/d0b/d0bbd563fe5c9463316b2ba0d7ef5553be0563bc/

 The important bits are:

- package/netsurf instead of netsurf - we recently agreed on that formatting;

- the subject line should describe what is done, not just "fix an error"

- having "Fixes:" in the commit message makes sure that the F column in
patchwork is tagged, that's convenient for locating the more urgent patches.

 Regards,
 Arnout

> ---
>  package/netsurf/netsurf.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/netsurf/netsurf.mk b/package/netsurf/netsurf.mk
> index 162ac5d79..3339b35c9 100644
> --- a/package/netsurf/netsurf.mk
> +++ b/package/netsurf/netsurf.mk
> @@ -25,7 +25,7 @@ endif
>  endif
>  
>  ifeq ($(BR2_PACKAGE_NETSURF_SDL),y)
> -NETSURF_DEPENDENCIES += sdl
> +NETSURF_DEPENDENCIES += sdl host-libpng
>  NETSURF_FRONTEND = framebuffer
>  endif
>  
> 

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

* [Buildroot] [PATCH] netsurf: fix build error
@ 2018-12-11 15:02 Francois Perrad
  2018-12-11 22:24 ` Arnout Vandecappelle
  2018-12-12 14:21 ` Andreas Naumann
  0 siblings, 2 replies; 4+ messages in thread
From: Francois Perrad @ 2018-12-11 15:02 UTC (permalink / raw)
  To: buildroot

add missing host dependency

see http://autobuild.buildroot.net/results/d0b/d0bbd563fe5c9463316b2ba0d7ef5553be0563bc/build-end.log

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/netsurf/netsurf.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/netsurf/netsurf.mk b/package/netsurf/netsurf.mk
index 162ac5d79..3339b35c9 100644
--- a/package/netsurf/netsurf.mk
+++ b/package/netsurf/netsurf.mk
@@ -25,7 +25,7 @@ endif
 endif
 
 ifeq ($(BR2_PACKAGE_NETSURF_SDL),y)
-NETSURF_DEPENDENCIES += sdl
+NETSURF_DEPENDENCIES += sdl host-libpng
 NETSURF_FRONTEND = framebuffer
 endif
 
-- 
2.17.1

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

end of thread, other threads:[~2018-12-13 18:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-13 18:54 [Buildroot] [PATCH] netsurf: fix build error Francois Perrad
  -- strict thread matches above, loose matches on Subject: below --
2018-12-11 15:02 Francois Perrad
2018-12-11 22:24 ` Arnout Vandecappelle
2018-12-12 14:21 ` Andreas Naumann

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.