All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-mingw]: Static libraries (was: meta-mingw)
       [not found] <CAK6d4ekRt99dBF=d4_nc_C2aRCWcLQG=hyxfLyz4qd_gZXqMSw@mail.gmail.com>
@ 2020-06-02 13:37 ` Joshua Watt
       [not found]   ` <CAK6d4ekjJdq4nGF9GeCT5DwZS5G8neuJAe4vUV+6jMGq6RCFFw@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2020-06-02 13:37 UTC (permalink / raw)
  To: Edgar Chaves; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

CC'in the mailing list.

On 6/1/20 10:39 PM, Edgar Chaves wrote:
> Hi
>
> I want to ask about meta-mingw static libraries for Windows. The thing 
> is that I don't get ".lib" in the SDK. Do you have any information 
> about that?

meta-mingw is primarily intended to build and SDK that allows you to 
cross compile for a Linux target from a Windows host, so including the 
static libraries for the Windows portions doesn't really make sense. I 
think there has been a little discussions about making and SDK that 
cross compiles for Windows, but I don't recall where that went.

Perhaps you can clarify what your use case is?


>
> Thank you, I'd appreciate your answer.
>
> —Edgar

[-- Attachment #2: Type: text/html, Size: 1681 bytes --]

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

* Re: [meta-mingw]: Static libraries
       [not found]     ` <CAK6d4ekda-LrmyHtgFgBC1SSafCXb6HmKOYWOd0W2f28JUA_pA@mail.gmail.com>
@ 2020-06-16 19:59       ` Joshua Watt
       [not found]         ` <CAK6d4em_0H0pbjR-328DF6ZOhMjx=5yDTUMv7nx+=G3npv96VA@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2020-06-16 19:59 UTC (permalink / raw)
  To: Edgar Chaves; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2235 bytes --]

Please "Reply-All" to keep the discussion on the mailing list

On 6/16/20 1:05 PM, Edgar Chaves wrote:
> Hi, do you have thoughts about this?
>
> My concern is that *-staticdev part of nativesdk-* providers is not 
> deployed correctly.


nativesdk-*-staticdev packages shouldn't be included in the SDK. 
nativesdk- recipes are intended to run on the host where the SDK is 
extracted, and that SDK will be used to compile software for some 
target. The SDK isn't intended to be able to compile more software for 
running on the SDK host itself, so none of the development files for 
nativesdk recipes are included in SDK iteself.

Practically speaking, this means that the SDK will not include a package 
like nativesdk-curl-staticdev (which is used to build SDK host 
software), but it could include curl-staticdev (which is used by the SDK 
to build target software).


>
> El mié., 3 jun. 2020 a las 19:37, Edgar Chaves (<edgarchvs11@gmail.com 
> <mailto:edgarchvs11@gmail.com>>) escribió:
>
>     OK. Let me correct it.
>
>     I believe the layer and recipes are missing some packaging,
>     therefore I'm missing /some/ .a libraries in the SDK.
>
>     Something like this: FILES_${PN} += " ${baselib_dir}"
>
>     El mar., 2 jun. 2020 a las 7:37, Joshua Watt
>     (<jpewhacker@gmail.com <mailto:jpewhacker@gmail.com>>) escribió:
>
>         CC'in the mailing list.
>
>         On 6/1/20 10:39 PM, Edgar Chaves wrote:
>>         Hi
>>
>>         I want to ask about meta-mingw static libraries for Windows.
>>         The thing is that I don't get ".lib" in the SDK. Do you have
>>         any information about that?
>
>         meta-mingw is primarily intended to build and SDK that allows
>         you to cross compile for a Linux target from a Windows host,
>         so including the static libraries for the Windows portions
>         doesn't really make sense. I think there has been a little
>         discussions about making and SDK that cross compiles for
>         Windows, but I don't recall where that went.
>
>         Perhaps you can clarify what your use case is?
>
>
>>
>>         Thank you, I'd appreciate your answer.
>>
>>         —Edgar
>

[-- Attachment #2: Type: text/html, Size: 4914 bytes --]

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

* Re: [meta-mingw]: Static libraries
       [not found]         ` <CAK6d4em_0H0pbjR-328DF6ZOhMjx=5yDTUMv7nx+=G3npv96VA@mail.gmail.com>
@ 2020-06-16 23:51           ` edgarchvs11
  0 siblings, 0 replies; 3+ messages in thread
From: edgarchvs11 @ 2020-06-16 23:51 UTC (permalink / raw)
  To: Joshua Watt; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4131 bytes --]

I see.

Now, I can tell that you can add manually curl-staticdev to the target. Or
it also gets deployed with the SDKIMAGE_FEATURES. But not for libgcc,
because libgcc-staticdev package does not exist, and that's why
SDKIMAGE_FEATURES couldn't deploy it. I know this now.

The way meta-mingw manage this is adding them, through files
meta-mingw/recipes-devtools/gcc/libgcc_%.bbappend, like this:

FILES_${PN}-dev_append_mingw32 = " ${base_libdir}/libgcc*.a"

However, it makes no sense to me to add static libraries to a dynamic
package. Wouldn't better just to make the package!?

This is my questions:
1. Is this recipe-append intended to be used by nativesdk-libgcc-dev or
libgcc-dev?
2. What would be a use case of adding a nativesdk-libgcc/nativesdk-libgcc-dev
to the host? Is this handle automatically anytime you append to target?

Thank you.

El mar., 16 jun. 2020 a las 17:44, Edgar Chaves (<edgarchvs11@gmail.com>)
escribió:

> I see.
>
> Now, I can tell that you can add manually curl-staticdev to the target. Or
> it also gets deployed with the SDKIMAGE_FEATURES. But not for libgcc,
> because libgcc-staticdev package does not exist, and that's why
> SDKIMAGE_FEATURES couldn't deploy it. I know this now.
>
> The way meta-mingw manage this is adding them, through files
> meta-mingw/recipes-devtools/gcc/libgcc_%.bbappend, like this:
>
> FILES_${PN}-dev_append_mingw32 = " ${base_libdir}/libgcc*.a"
>
> However, it makes no sense to me to add static libraries to a dynamic
> package. Wouldn't better just to make the package!?
>
> This are my questions:
> 1. Is this recipe-append intended to be used by nativesdk-libgcc-dev or
> libgcc-dev?
> 2. What would be a use case of adding a
> nativesdk-libgcc/nativesdk-libgcc-dev to the host? Is this handle
> automatically anytime you append to target?
>
> Thank you.
>
> El mar., 16 jun. 2020 a las 13:59, Joshua Watt (<jpewhacker@gmail.com>)
> escribió:
>
>> Please "Reply-All" to keep the discussion on the mailing list
>> On 6/16/20 1:05 PM, Edgar Chaves wrote:
>>
>> Hi, do you have thoughts about this?
>>
>> My concern is that *-staticdev part of nativesdk-* providers is not
>> deployed correctly.
>>
>>
>> nativesdk-*-staticdev packages shouldn't be included in the SDK.
>> nativesdk- recipes are intended to run on the host where the SDK is
>> extracted, and that SDK will be used to compile software for some target.
>> The SDK isn't intended to be able to compile more software for running on
>> the SDK host itself, so none of the development files for nativesdk recipes
>> are included in SDK iteself.
>>
>> Practically speaking, this means that the SDK will not include a package
>> like nativesdk-curl-staticdev (which is used to build SDK host software),
>> but it could include curl-staticdev (which is used by the SDK to build
>> target software).
>>
>>
>>
>> El mié., 3 jun. 2020 a las 19:37, Edgar Chaves (<edgarchvs11@gmail.com>)
>> escribió:
>>
>>> OK. Let me correct it.
>>>
>>> I believe the layer and recipes are missing some packaging, therefore
>>> I'm missing *some* .a libraries in the SDK.
>>>
>>> Something like this: FILES_${PN} += " ${baselib_dir}"
>>>
>>> El mar., 2 jun. 2020 a las 7:37, Joshua Watt (<jpewhacker@gmail.com>)
>>> escribió:
>>>
>>>> CC'in the mailing list.
>>>> On 6/1/20 10:39 PM, Edgar Chaves wrote:
>>>>
>>>> Hi
>>>>
>>>> I want to ask about meta-mingw static libraries for Windows. The thing
>>>> is that I don't get ".lib" in the SDK. Do you have any information about
>>>> that?
>>>>
>>>> meta-mingw is primarily intended to build and SDK that allows you to
>>>> cross compile for a Linux target from a Windows host, so including the
>>>> static libraries for the Windows portions doesn't really make sense. I
>>>> think there has been a little discussions about making and SDK that cross
>>>> compiles for Windows, but I don't recall where that went.
>>>>
>>>> Perhaps you can clarify what your use case is?
>>>>
>>>>
>>>>
>>>> Thank you, I'd appreciate your answer.
>>>>
>>>> —Edgar
>>>>
>>>>

[-- Attachment #2: Type: text/html, Size: 7760 bytes --]

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

end of thread, other threads:[~2020-06-16 23:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAK6d4ekRt99dBF=d4_nc_C2aRCWcLQG=hyxfLyz4qd_gZXqMSw@mail.gmail.com>
2020-06-02 13:37 ` [meta-mingw]: Static libraries (was: meta-mingw) Joshua Watt
     [not found]   ` <CAK6d4ekjJdq4nGF9GeCT5DwZS5G8neuJAe4vUV+6jMGq6RCFFw@mail.gmail.com>
     [not found]     ` <CAK6d4ekda-LrmyHtgFgBC1SSafCXb6HmKOYWOd0W2f28JUA_pA@mail.gmail.com>
2020-06-16 19:59       ` [meta-mingw]: Static libraries Joshua Watt
     [not found]         ` <CAK6d4em_0H0pbjR-328DF6ZOhMjx=5yDTUMv7nx+=G3npv96VA@mail.gmail.com>
2020-06-16 23:51           ` edgarchvs11

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.