openexr-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openexr-user] Test for OpenEXR_CTL always fails on Ubuntu


From: Bill Elswick
Subject: [Openexr-user] Test for OpenEXR_CTL always fails on Ubuntu
Date: Fri, 08 Jul 2011 16:25:47 -0700

Hi Piotr,

Here's another issue with the config script for openexr_viewers:

The test for the presence of OpenEXR_CTL always fails, because the test
code cannot compile. Following is the relevant part of config.log. It's
another case of needing to include a header file, this time for the
'system' function from the C RTL.

Cheers,
--Bill


> configure:20179: checking for OpenEXR_CTL
> configure:20239: g++ -o conftest -g -O2  -I/usr/local/include/OpenEXR 
> -I/usr/local/include/CTL   -L/usr/lib64 -L/usr/local/lib conftest.cc  
> -lIlmImfCtl -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -lpthread 
> -lIlmCtlSimd -lIlmCtlMath -lIlmCtl >&5
> conftest.cc: In function 'int main()':
> conftest.cc:51: error: 'system' was not declared in this scope
> configure:20242: $? = 1
> configure: program exited with status 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 <ImfCtlApplyTransforms.h>
> | #include <CtlSimdInterpreter.h>
> | #include <ImfHeader.h>
> | #include <ImfFrameBuffer.h>
> | #include <ImathBox.h>
> | #include <vector>
> |     using namespace Ctl;
> |     using namespace Imf;
> |     using namespace Imath;
> | 
> | int
> | main ()
> | {
> | 
> |     SimdInterpreter interpreter;
> |     std::vector<std::string> transformNames;
> |     Box2i transformWindow (V2i (0, 0), V2i (0, 0));
> |     Header envHeader;
> |     Header inHeader;
> |     Header outHeader;
> |     FrameBuffer inFb;
> |     FrameBuffer outFb;
> | 
> |     ImfCtl::applyTransforms (interpreter, transformNames, transformWindow,
> |                              envHeader, inHeader, inFb, outHeader, outFb);
> |    ; system("touch conf.testprogram");
> |   ;
> |   return 0;
> | }
> configure:20267: result: no
> configure:20313: g++ -c -g -O2  -I/usr/local/include/OpenEXR 
> -I/usr/local/include/CTL  conftest.cc >&5
> configure:20319: $? = 0
> configure:20323: test -z 
>                        || test ! -s conftest.err
> configure:20326: $? = 0
> configure:20329: test -s conftest.o
> configure:20332: $? = 0
> configure:20386: g++ -o conftest -g -O2  -I/usr/local/include/OpenEXR 
> -I/usr/local/include/CTL   -L/usr/lib64 -L/usr/local/lib conftest.cc  
> -lIlmImfCtl -lIlmImf -lz -lImath -lHalf -lIex -lIlmThread -lpthread 
> -lIlmCtlSimd -lIlmCtlMath -lIlmCtl >&5
> configure:20392: $? = 0
> configure:20396: test -z 
>                        || test ! -s conftest.err
> configure:20399: $? = 0
> configure:20402: test -s conftest
> configure:20405: $? = 0
> configure:20446: result: The OpenEXR_CTL package could not be found.  Will 
> build and install playexr and exrdisplay without ctl support. 

~~~EOM





reply via email to

[Prev in Thread] Current Thread [Next in Thread]