[Bf-committers] Scons, Blender and Shared Libraries

Nathan Letwory jesterking at letwory.net
Fri Sep 19 23:58:02 CEST 2008


Ok, now I understand. For that we can make a new function, ie.
env.BlenderWebPlugin() which is like BlenderLib, but with additional
stuff. I choose for a new name, as it is semantically clearer what
happens. I think I'll need to tweak the final copying to BF_INSTALLDIR
for that too.

/Nathan

On Fri, Sep 19, 2008 at 11:55 PM, Marcelo Coraça de Freitas
<mfreitas at ydeasolutions.com.br> wrote:
> exactly
>
>
> I need to build a shared library which is the mozilla plugin.
>
> the code base is 100% independent of blender, but I want to keep the build
> system consistent (as Enrico did with CMake).
>
>
> Em Sex, 2008-09-19 às 22:12 +0300, Nathan Letwory escreveu:
>
> So you want to use extra flags during *final* linking, right? I mean,
> those look like flags for a final binary.
>
> On Fri, Sep 19, 2008 at 9:42 PM, Marcelo Coraça de Freitas
> <mfreitas at ydeasolutions.com.br> wrote:
>>
>>
>> well, I need the ldflags:
>> ldflags = [ '-lXi',
>>     '-lXext',
>>     '-lX11',
>>     '-lm',
>>     '-lXt',
>>     '-L' + env['BF_MOZILLA_LIB'],
>>     '-lxpcom_core'];
>>
>>
>> the cflags are ok. Only the linking is going wrong.
>>
>>
>> maybe I'll change that function.
>>
>>
>> regards
>>
>>
>>
>> Em Sex, 2008-09-19 às 21:36 +0300, Nathan Letwory escreveu:
>>
>> Actually, you can already give compile flags - I don't readily see
>> where link flags come in play at this point. Can you give an example?
>>
>> /Nathan
>>
>> On Fri, Sep 19, 2008 at 9:31 PM, Nathan Letwory <jesterking at letwory.net>
>> wrote:
>>> Would it be enough to have a list of arguments you need to add which
>>> can be given to BlenderLib() ? It's easy to add.
>>>
>>> /Nathan
>>>
>>> On Fri, Sep 19, 2008 at 9:22 PM, Marcelo Coraça de Freitas
>>> <mfreitas at ydeasolutions.com.br> wrote:
>>>> Hello there,
>>>>
>>>>     I'm trying to set the scons build environment to build the plugin
>>>> code.
>>>> It's compiling but I need to pass some arguments to the linker.
>>>>
>>>>     As the libraries in blender use the env.BlenderLib() function and I
>>>> can't pass linker arguments to this I'm kinda lost. What should I use
>>>> then?
>>>>
>>>>
>>>> Regards,
>>>>
>>>>
>>>>
>>>> Marcelo Coraça de Freitas
>>>> Gerente de TI
>>>>
>>>> Ydea Desenvolvimento de Software LTDA.
>>>> Av. Adolfo Pinheiro, 2338 - Alto da Boa Vista
>>>> CEP.:04734-004 - São Paulo - SP
>>>> Tel.: 55-11-5523-0333
>>>> _______________________________________________
>>>> Bf-committers mailing list
>>>> Bf-committers at blender.org
>>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>>
>>>>
>>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>>
>> Marcelo Coraça de Freitas
>> Gerente de TI
>>
>> Ydea Desenvolvimento de Software LTDA.
>> Av. Adolfo Pinheiro, 2338 - Alto da Boa Vista
>> CEP.:04734-004 - São Paulo - SP
>> Tel.: 55-11-5523-0333
>
>
> Marcelo Coraça de Freitas
> Gerente de TI
>
> Ydea Desenvolvimento de Software LTDA.
> Av. Adolfo Pinheiro, 2338 - Alto da Boa Vista
> CEP.:04734-004 - São Paulo - SP
> Tel.: 55-11-5523-0333


More information about the Bf-committers mailing list