Discussion:
[Openexr-user] missing half.h?
David Doria
2011-07-07 21:20:45 UTC
Permalink
When trying to compile OpenEXR, I am getting:
/home/ddoria/src/openexr-1.7.0/IlmImf/b44ExpLogTable.cpp:52:18: error:
half.h: No such file or directory

Any suggestions?

Thanks,

David
David Doria
2011-07-07 22:03:47 UTC
Permalink
On Thu, Jul 7, 2011 at 5:20 PM, David Doria <***@gmail.com> wrote:
> When trying to compile OpenEXR, I am getting:
> /home/ddoria/src/openexr-1.7.0/IlmImf/b44ExpLogTable.cpp:52:18: error:
> half.h: No such file or directory
>
> Any suggestions?
>
> Thanks,
>
> David
>

I guess all I had to do was install IlmBase 1.0.2. Shouldn't the
'configure' script check for this?

When building OpenEXR, it complained that memset was not defined, so I
had to add #include <cstring> to OpenEXR/ImathMatrix.

Then memcpy was not defined in exrenvmap/blurImage.cpp which could
again be fixed with: #include <cstring>

I am on Ubuntu 11.4 with g++ 4.5.2-8ubuntu4.

I hope these includes can be added so that the next person does not
run into the same problems.

David
Bill Elswick
2011-07-07 23:12:42 UTC
Permalink
At 03:03 PM 7/7/2011, David Doria wrote:
>When building OpenEXR, it complained that memset was not defined, so I
>had to add #include <cstring> to OpenEXR/ImathMatrix.
>
>Then memcpy was not defined in exrenvmap/blurImage.cpp which could
>again be fixed with: #include <cstring>
>
We just ran into these two same problems, in our case the solution
was to #include <string.h> which seemed reasonable since memset and
memcpy are C library functions. This is on Ubuntu 10.04.02

Does anyone know what version or package of Cg is required to make
openexr_viewers? Configure can't find it and unfortunately it does
not indicate specifically what is needed. We installed the NVidia Cg
Toolkit Installer from the Ubuntu repo and ran it, and it seems to
have worked, but the configure script still says it can't find Cg.

Thanks,
--Bill
Piotr Stanczyk
2011-07-08 05:35:10 UTC
Permalink
Hi Bill,

what are you seeing in the log file?
I'll check those missing includes for the viewers project; I though we scrubbed that one for those too ... (seems earlier versions of gcc were more sympathetic to these)

Piotr

________________________________________
From: openexr-user-bounces+pstanczyk=***@nongnu.org [openexr-user-bounces+pstanczyk=***@nongnu.org] on behalf of Bill Elswick [***@entertech.com]
Sent: 07 July 2011 16:12
To: David Doria; openexr-***@nongnu.org
Subject: [Openexr-user] Missing Cg for Viewers, was: missing half.h?

At 03:03 PM 7/7/2011, David Doria wrote:
>When building OpenEXR, it complained that memset was not defined, so I
>had to add #include <cstring> to OpenEXR/ImathMatrix.
>
>Then memcpy was not defined in exrenvmap/blurImage.cpp which could
>again be fixed with: #include <cstring>
>
We just ran into these two same problems, in our case the solution
was to #include <string.h> which seemed reasonable since memset and
memcpy are C library functions. This is on Ubuntu 10.04.02

Does anyone know what version or package of Cg is required to make
openexr_viewers? Configure can't find it and unfortunately it does
not indicate specifically what is needed. We installed the NVidia Cg
Toolkit Installer from the Ubuntu repo and ran it, and it seems to
have worked, but the configure script still says it can't find Cg.

Thanks,
--Bill
Bill Elswick
2011-07-08 23:16:44 UTC
Permalink
Hi Piotr,

Here is the relevant part of the configure script output:


> ./configure: line 20679: dnlCG_LD: command not found
> checking for Cg... no
> *** The Cg test program could not be compiled.
> *** Possible reasons:
> *** - The Cg libraries and includes are not installed.
> *** - configure cannot find Cg (use the
> *** --with-cg-prefix option to tell configure where
> *** to find it).
> *** - Your version of Cg is out of date. Please update it
> *** to the latest version.
> ***
> *** The exrdisplay program will not be built with fragment shader
> *** support because the fragment shader support depends on Cg.

And here is the relevant part of config.log:

> configure:20706: checking for Cg
> configure:20807: g++ -o conftest -g -O2 -lGL -lCg -lCgGL -lGLU -lpthread -lglut conftest.cc >&5
> /usr/bin/ld: cannot find -lGLU
> collect2: ld returned 1 exit status
> configure:20813: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME "OpenEXR_Viewers"
> | #define PACKAGE_TARNAME "openexr_viewers"
> | #define PACKAGE_VERSION "1.0.2"
> | #define PACKAGE_STRING "OpenEXR_Viewers 1.0.2"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "openexr_viewers"
> | #define VERSION "1.0.2"
> | #ifdef __cplusplus
> | extern "C" void exit (int) throw ();
> | #endif
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_DLFCN_H 1
> | /* end confdefs.h. */
> |
> | #include <GL/gl.h>
> | #include <Cg/cg.h>
> | #include <Cg/cgGL.h>
> | int
> | main ()
> | {
> |
> | cgCreateContext ();
> |
> | ;
> | return 0;
> | }
> configure:20854: result: no
>

Thanks,
--Bill

On Fri, 2011-07-08 at 05:35 +0000, Piotr Stanczyk wrote:
> Hi Bill,
>
> what are you seeing in the log file?
> I'll check those missing includes for the viewers project; I though we scrubbed that one for those too ... (seems earlier versions of gcc were more sympathetic to these)
>
> Piotr
>
> ________________________________________
> From: openexr-user-bounces+pstanczyk=***@nongnu.org [openexr-user-bounces+pstanczyk=***@nongnu.org] on behalf of Bill Elswick [***@entertech.com]
> Sent: 07 July 2011 16:12
> To: David Doria; openexr-***@nongnu.org
> Subject: [Openexr-user] Missing Cg for Viewers, was: missing half.h?
>
> At 03:03 PM 7/7/2011, David Doria wrote:
> >When building OpenEXR, it complained that memset was not defined, so I
> >had to add #include <cstring> to OpenEXR/ImathMatrix.
> >
> >Then memcpy was not defined in exrenvmap/blurImage.cpp which could
> >again be fixed with: #include <cstring>
> >
> We just ran into these two same problems, in our case the solution
> was to #include <string.h> which seemed reasonable since memset and
> memcpy are C library functions. This is on Ubuntu 10.04.02
>
> Does anyone know what version or package of Cg is required to make
> openexr_viewers? Configure can't find it and unfortunately it does
> not indicate specifically what is needed. We installed the NVidia Cg
> Toolkit Installer from the Ubuntu repo and ran it, and it seems to
> have worked, but the configure script still says it can't find Cg.
>
> Thanks,
> --Bill
>
>
> _______________________________________________
> Openexr-user mailing list
> Openexr-***@nongnu.org
> https://remote.lucasfilm.com/,DanaInfo=lists.nongnu.org,SSL+mailman/listinfo/openexr-user
Piotr Stanczyk
2011-07-18 20:15:27 UTC
Permalink
Hi Bill,

Sorry for the delay in getting back to you. I spent some time playing around on my system here. I downloaded the latest Cg toolkit, Feb2011, and added that to the --with-cg-prefix option to the ./configure command.

I tried various installation locations of the Cg toolkit to test this out and I get the build coming out just fine.

Looking at your log it looks like the GLU library cannot be found, do you have that installed in a specific location that the configure script cannot see?

Piotr




________________________________________
From: Bill Elswick [***@entertech.com]
Sent: 08 July 2011 16:16
To: Piotr Stanczyk
Cc: openexr-***@nongnu.org
Subject: RE: [Openexr-user] Missing Cg for Viewers, was: missing half.h?

Hi Piotr,

Here is the relevant part of the configure script output:


> ./configure: line 20679: dnlCG_LD: command not found
> checking for Cg... no
> *** The Cg test program could not be compiled.
> *** Possible reasons:
> *** - The Cg libraries and includes are not installed.
> *** - configure cannot find Cg (use the
> *** --with-cg-prefix option to tell configure where
> *** to find it).
> *** - Your version of Cg is out of date. Please update it
> *** to the latest version.
> ***
> *** The exrdisplay program will not be built with fragment shader
> *** support because the fragment shader support depends on Cg.

And here is the relevant part of config.log:

> configure:20706: checking for Cg
> configure:20807: g++ -o conftest -g -O2 -lGL -lCg -lCgGL -lGLU -lpthread -lglut conftest.cc >&5
> /usr/bin/ld: cannot find -lGLU
> collect2: ld returned 1 exit status
> configure:20813: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME "OpenEXR_Viewers"
> | #define PACKAGE_TARNAME "openexr_viewers"
> | #define PACKAGE_VERSION "1.0.2"
> | #define PACKAGE_STRING "OpenEXR_Viewers 1.0.2"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE "openexr_viewers"
> | #define VERSION "1.0.2"
> | #ifdef __cplusplus
> | extern "C" void exit (int) throw ();
> | #endif
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_DLFCN_H 1
> | /* end confdefs.h. */
> |
> | #include <GL/gl.h>
> | #include <Cg/cg.h>
> | #include <Cg/cgGL.h>
> | int
> | main ()
> | {
> |
> | cgCreateContext ();
> |
> | ;
> | return 0;
> | }
> configure:20854: result: no
>

Thanks,
--Bill

On Fri, 2011-07-08 at 05:35 +0000, Piotr Stanczyk wrote:
> Hi Bill,
>
> what are you seeing in the log file?
> I'll check those missing includes for the viewers project; I though we scrubbed that one for those too ... (seems earlier versions of gcc were more sympathetic to these)
>
> Piotr
>
> ________________________________________
> From: openexr-user-bounces+pstanczyk=***@nongnu.org [openexr-user-bounces+pstanczyk=***@nongnu.org] on behalf of Bill Elswick [***@entertech.com]
> Sent: 07 July 2011 16:12
> To: David Doria; openexr-***@nongnu.org
> Subject: [Openexr-user] Missing Cg for Viewers, was: missing half.h?
>
> At 03:03 PM 7/7/2011, David Doria wrote:
> >When building OpenEXR, it complained that memset was not defined, so I
> >had to add #include <cstring> to OpenEXR/ImathMatrix.
> >
> >Then memcpy was not defined in exrenvmap/blurImage.cpp which could
> >again be fixed with: #include <cstring>
> >
> We just ran into these two same problems, in our case the solution
> was to #include <string.h> which seemed reasonable since memset and
> memcpy are C library functions. This is on Ubuntu 10.04.02
>
> Does anyone know what version or package of Cg is required to make
> openexr_viewers? Configure can't find it and unfortunately it does
> not indicate specifically what is needed. We installed the NVidia Cg
> Toolkit Installer from the Ubuntu repo and ran it, and it seems to
> have worked, but the configure script still says it can't find Cg.
>
> Thanks,
> --Bill
>
>
> _______________________________________________
> Openexr-user mailing list
> Openexr-***@nongnu.org
> https://remote.lucasfilm.com/,DanaInfo=lists.nongnu.org,SSL+mailman/listinfo/openexr-user
Piotr Stanczyk
2011-07-08 05:33:10 UTC
Permalink
yep - these are fixed in the head. I'll try to find some time to dist out some of these minor fixes that went in.

Piotr

________________________________________
From: openexr-user-bounces+pstanczyk=***@nongnu.org [openexr-user-bounces+pstanczyk=***@nongnu.org] on behalf of David Doria [***@gmail.com]
Sent: 07 July 2011 15:03
To: openexr-***@nongnu.org
Subject: Re: [Openexr-user] missing half.h?

On Thu, Jul 7, 2011 at 5:20 PM, David Doria <***@gmail.com> wrote:
> When trying to compile OpenEXR, I am getting:
> /home/ddoria/src/openexr-1.7.0/IlmImf/b44ExpLogTable.cpp:52:18: error:
> half.h: No such file or directory
>
> Any suggestions?
>
> Thanks,
>
> David
>

I guess all I had to do was install IlmBase 1.0.2. Shouldn't the
'configure' script check for this?

When building OpenEXR, it complained that memset was not defined, so I
had to add #include <cstring> to OpenEXR/ImathMatrix.

Then memcpy was not defined in exrenvmap/blurImage.cpp which could
again be fixed with: #include <cstring>

I am on Ubuntu 11.4 with g++ 4.5.2-8ubuntu4.

I hope these includes can be added so that the next person does not
run into the same problems.

David
Loading...