On Jan 15, 2015, at 12:20 PM, Shane Ambler <[email protected]> wrote:

> This is to work with OSL 1.6.x only?

Yes, there was a compatibility break in the API of TextureSystem.  OSL 1.6 
wants to work with OIIO >= 1.5, and OSL 1.5 and earlier wants to work with OIIO 
<= 1.4.  (OSL is not quite ready to branch 1.6, but should be in the next few 
weeks.)


Both of the errors you get below appear to be from code in headers of 3rd party 
libraries we use. I don't get those errors on my end (and not having FreeBSD, 
no way to test any proposed fixes). Does anybody know the best way to address 
them?

        -- lg


> Just done testing builds on FreeBSD - two small things
> 
> [ 83%] Building CXX object 
> src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ffmpeg.imageio/ffmpeginput.cpp.o
> In file included from 
> /usr/ports/graphics/openimageio/work/OpenImageIO-oiio-7aace95/src/ffmpeg.imageio/ffmpeginput.cpp:33:
> In file included from /usr/local/include/libavformat/avformat.h:255:
> In file included from /usr/local/include/libavcodec/avcodec.h:31:
> In file included from /usr/local/include/libavutil/samplefmt.h:24:
> In file included from /usr/local/include/libavutil/avutil.h:289:
> /usr/local/include/libavutil/common.h:30:2: error: missing 
> -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
> #error missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS
> 
> This falls similar to __STDC_LIMIT_MACROS which we added to CXXFLAGS earlier.
> 
> 
> 
> If I enable USE_CP11 with clang 3.4.1 I get the following
> (would normally leave it off for now, just testing) -
> 
> [ 21%] Building CXX object 
> src/libOpenImageIO/CMakeFiles/OpenImageIO.dir/imagebufalgo_opencv.cpp.o
> /usr/ports/graphics/openimageio/work/OpenImageIO-oiio-7aace95/src/libOpenImageIO/imagebufalgo_opencv.cpp:75:10:
>  error: case value evaluates to 2147483664, which cannot be narrowed to type 
> 'int' [-Wc++11-narrowing]
>    case IPL_DEPTH_16S :
>         ^
> /usr/local/include/opencv2/core/types_c.h:443:23: note: expanded from macro 
> 'IPL_DEPTH_16S'
> #define IPL_DEPTH_16S (IPL_DEPTH_SIGN|16)
>                      ^
> /usr/ports/graphics/openimageio/work/OpenImageIO-oiio-7aace95/src/libOpenImageIO/imagebufalgo_opencv.cpp:71:10:
>  error: case value evaluates to 2147483656, which cannot be narrowed to type 
> 'int' [-Wc++11-narrowing]
>    case IPL_DEPTH_8S :
>         ^
> /usr/local/include/opencv2/core/types_c.h:442:23: note: expanded from macro 
> 'IPL_DEPTH_8S'
> #define IPL_DEPTH_8S  (IPL_DEPTH_SIGN| 8)
>                      ^
\
--
Larry Gritz
[email protected]



_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to