Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] gsoap and code generation
@ 2016-09-01 13:13 Ottavio Campana
  2016-09-01 13:37 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Ottavio Campana @ 2016-09-01 13:13 UTC (permalink / raw)
  To: buildroot

I have a web service implemented as a cgi served by lighttpd. Part of the sources of the cgi are generated by gsoap that takes as input some wsdl files and outputs some files in c.

I checked in buildroot 2016.08 and there is no support for gsoap. In google I found a proposed patch to add gsoap to buildroot here

http://lists.busybox.net/pipermail/buildroot/2009-January/024777.html

Is there a more recent version of this patch?

I can also try to write my own script, but gsoap is a little bit tricky: there are some commands that need to be executed on the host, namely wsdl2h and soapcpp2, that generate the C code and than there's a bunch of libraries that need to be cross-compiled.

How can I write a script that compiles a tool for the host and the libraries for the target?

Thank you

Ottavio

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

* [Buildroot] gsoap and code generation
  2016-09-01 13:13 [Buildroot] gsoap and code generation Ottavio Campana
@ 2016-09-01 13:37 ` Thomas Petazzoni
  2016-09-01 16:23   ` Ottavio Campana
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2016-09-01 13:37 UTC (permalink / raw)
  To: buildroot

Hello,

(Please wrap the lines in your e-mail to a reasonable length, thanks!)

On Thu, 1 Sep 2016 13:13:05 +0000, Ottavio Campana wrote:

> I have a web service implemented as a cgi served by lighttpd. Part of
> the sources of the cgi are generated by gsoap that takes as input
> some wsdl files and outputs some files in c.
> 
> I checked in buildroot 2016.08 and there is no support for gsoap. In
> google I found a proposed patch to add gsoap to buildroot here
> 
> http://lists.busybox.net/pipermail/buildroot/2009-January/024777.html
> 
> Is there a more recent version of this patch?

I just searched the archive: this 2009 e-mail and your new e-mail are
the only occurrence of "gsoap", so no, there isn't a new version of
this patch.

> I can also try to write my own script, but gsoap is a little bit
> tricky: there are some commands that need to be executed on the host,
> namely wsdl2h and soapcpp2, that generate the C code and than there's
> a bunch of libraries that need to be cross-compiled.
> 
> How can I write a script that compiles a tool for the host and the
> libraries for the target?

You need two variants of the same package: a host variant and a target
variant, i.e host-gsoap (host variant) and gsoap (target variant).

The former installs the host utilities needed to generate code at build
time while on the host, and the latter installs the libraries
cross-compiled for the target.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] gsoap and code generation
  2016-09-01 13:37 ` Thomas Petazzoni
@ 2016-09-01 16:23   ` Ottavio Campana
  2016-09-01 20:58     ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Ottavio Campana @ 2016-09-01 16:23 UTC (permalink / raw)
  To: buildroot

> (Please wrap the lines in your e-mail to a reasonable length, thanks!)

I know, but I have to use a weird webmail... even replying at the bottom is
done by hand....

>> How can I write a script that compiles a tool for the host and the
>> libraries for the target?
>
>You need two variants of the same package: a host variant and a target
>variant, i.e host-gsoap (host variant) and gsoap (target variant).
>
>The former installs the host utilities needed to generate code at build
>time while on the host, and the latter installs the libraries
>cross-compiled for the target.

The fact that I create two files, let's say gsoap.mk and host-gsoap.mk , already
lets buildroot know what to compile with the native compiler and what to build
with the cross-compiler?

Thank you

Ottavio

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

* [Buildroot] gsoap and code generation
  2016-09-01 16:23   ` Ottavio Campana
@ 2016-09-01 20:58     ` Arnout Vandecappelle
  0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2016-09-01 20:58 UTC (permalink / raw)
  To: buildroot



On 01-09-16 18:23, Ottavio Campana wrote:
[snip]
>>> How can I write a script that compiles a tool for the host and the
>>> libraries for the target?
>>
>> You need two variants of the same package: a host variant and a target
>> variant, i.e host-gsoap (host variant) and gsoap (target variant).
>>
>> The former installs the host utilities needed to generate code at build
>> time while on the host, and the latter installs the libraries
>> cross-compiled for the target.
> 
> The fact that I create two files, let's say gsoap.mk and host-gsoap.mk , already
> lets buildroot know what to compile with the native compiler and what to build
> with the cross-compiler?

https://buildroot.org/downloads/manual/manual.html#generic-package-reference

 Regards,
 Arnout

> 
> Thank you
> 
> Ottavio
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

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

end of thread, other threads:[~2016-09-01 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-01 13:13 [Buildroot] gsoap and code generation Ottavio Campana
2016-09-01 13:37 ` Thomas Petazzoni
2016-09-01 16:23   ` Ottavio Campana
2016-09-01 20:58     ` Arnout Vandecappelle

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