Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
OSL building with static openimageio problem (OSX)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dalai Felinto  
View profile  
 More options Sep 16 2012, 9:32 pm
From: Dalai Felinto <dfeli...@gmail.com>
Date: Sun, 16 Sep 2012 18:32:02 -0700
Local: Sun, Sep 16 2012 9:32 pm
Subject: OSL building with static openimageio problem (OSX)
Hello there,

As the topic says, I'm trying to build OSL with static oiio.
Although the building goes fine, when it gets to compile the shaders
it fails due to unknown data struct:

"../shaders/stdosl.h:493: error: No matching function call to 'area (unknown)'"

The is related to the symtab. If I run $:oslc -d glass.osl I get:
Symbol table:
        P : unknown
        I : unknown
        N : unknown
        Ng : unknown
        u : unknown
        v : unknown
        dPdu : unknown
        dPdv : unknown
        Ps : unknown
        Ci : closure color
        time : unknown
        dtime : unknown
        dPdtime : unknown
        (. . .)

While with dynamic linking I get:
Symbol table:
        P : point
        I : vector
        N : normal
        Ng : normal
        u : float
        v : float
        dPdu : vector
        dPdv : vector
        Ps : point
        Ci : closure color
        time : float
        dtime : float
        dPdtime : vector
        (. . . )

There is a chance the problem is Mac exclusive. I'm trying to use
either osl (with oiio dynamic or static) to compile Blender. While the
osl with dynamic oiio works fine as a standalone (e.g., going through
the test suite files), it fails when used to compile Blender shaders
while building it. The error also seems related to the 'globals', but
it should be easy to address the error outside Blender first.

Thanks,
Dalai

Reference Links/Full error messages:
* output of oslc -d  with static oiio:
http://www.pasteall.org/35294

* output of oslc -d  with static oiio:
http://www.pasteall.org/35295

* git diff of my osl base code (using a patch from Jens Verwiebe for
the static linking, plus a patch to quite bison warning and other
small things)
http://www.pasteall.org/35301/diff


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dalai Felinto  
View profile  
 More options Sep 18 2012, 3:39 am
From: Dalai Felinto <dfeli...@gmail.com>
Date: Tue, 18 Sep 2012 00:39:57 -0700 (PDT)
Local: Tues, Sep 18 2012 3:39 am
Subject: Re: OSL building with static openimageio problem (OSX)

Some followup:

If I re-set the values of the Symbols of the global table it builds fine:
http://www.pasteall.org/35356/diff

This is a terrible hack though. And it doesn't solve my real problem that
is to link osl with Blender (the problem there seems to also be related
to TypeDesc). So I would really appreciate any helps towards finding what
may be wrong with the linking in osx.

Thanks,
Dalai


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lukas Tönne  
View profile  
 More options Oct 6 2012, 5:35 am
From: Lukas Tönne <lukas.toe...@gmail.com>
Date: Sat, 6 Oct 2012 02:35:53 -0700 (PDT)
Local: Sat, Oct 6 2012 5:35 am
Subject: Re: OSL building with static openimageio problem (OSX)

This seems to be some sort of "static initialization fiasco". Luckily it is
quite simple to fix:

https://github.com/DingTo/OpenShadingLanguage/commit/f37366ad2ed5b53f...

The "blender-fixes" branch is used to collect all the little solutions for
issues we're coming across during static OSL compile for Blender. I hope
these can eventually be merged upstream (will make a proper pull request
when everything is sorted out).

Regards,
Lukas

Am Dienstag, 18. September 2012 09:39:57 UTC+2 schrieb Dalai Felinto:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dalai Felinto  
View profile  
 More options Oct 6 2012, 10:05 am
From: Dalai Felinto <dfeli...@gmail.com>
Date: Sat, 6 Oct 2012 10:05:28 -0400
Local: Sat, Oct 6 2012 10:05 am
Subject: Re: [osl-dev] Re: OSL building with static openimageio problem (OSX)

Hi Lukas,
Did you run into this problem in Linux as well?

For OSX the problem fixed itself when Jens got osl to build static osl with
oiio and llvm static as well (and using forceload on CMake).

Cheers,
Dalai
On Oct 6, 2012 5:35 AM, "Lukas Tönne" <lukas.toe...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lukas Tönne  
View profile  
 More options Oct 6 2012, 10:43 am
From: Lukas Tönne <lukas.toe...@gmail.com>
Date: Sat, 6 Oct 2012 16:43:09 +0200
Local: Sat, Oct 6 2012 10:43 am
Subject: Re: [osl-dev] Re: OSL building with static openimageio problem (OSX)
Yes, same issue on linux.

It would probably also work by adding an equivalent to -force_load
(afaik on linux should be --whole-archive), but this solution seems a
bit more elegant (platform independent) and just as valid. Can change
it if there are objections by OSL devs of course.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »