Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenEXR_CTL not support OpenEXR 2.0.0 #15

Closed
nemysis opened this issue Jun 15, 2013 · 1 comment
Closed

OpenEXR_CTL not support OpenEXR 2.0.0 #15

nemysis opened this issue Jun 15, 2013 · 1 comment

Comments

@nemysis
Copy link

nemysis commented Jun 15, 2013

OpenEXR_CTL-1.0.1 compile good with OpenEXR-1.7.1

When i try to compile with OpenEXR2-2.0.0 get

using pkg-config to set OPENEXR_CXXFLAGS2 and OPENEXR_LDFLAGS2:
    OPENEXR_CXXFLAGS2 = -D_THREAD_SAFE -I/usr/local/include/OpenEXR2  
    OPENEXR_LDFLAGS2 = -L/usr/local/lib/OpenEXR2 -L/usr/local/lib/ilmbase2  
    OPENEXR_LIBS2 = -L/usr/local/lib/OpenEXR2 -lIlmImf -L/usr/local/lib/ilmbase2 -lImath -lHalf -lIex -lIexMath -lIlmThread -pthread  
test_prefix = NONE
checking for pkg-config... (cached) /usr/local/bin/pkg-config
using pkg-config to set CTL_CXXFLAGS2 and CTL_LDFLAGS2:
    CTL_CXXFLAGS2 = -D_THREAD_SAFE -I/usr/local/include/OpenEXR2  -I/usr/local/include/CTL2  
    CTL_LDFLAGS2 = -L/usr/local/lib/ilmbase2  
    CTL_LIBS2 = -lIlmCtlSimd -lIlmCtlMath -lIlmCtl -L/usr/local/lib/ilmbase2 -lImath -lHalf -lIex -lIexMath -lIlmThread -pthread   
checking for OpenEXR2... yes
Compiled and ran OpenEXR test program.
checking for CTL2... yes
The ctl test program succeeded.
checking for ANSI C header files... (cached) yes
checking for limits.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... (cached) yes
checking for gcc optimization flags... -pipe
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating OpenEXR_CTL2.pc
config.status: creating IlmImfCtl/Makefile
config.status: creating IlmImfCtlTest/Makefile
config.status: creating CtlModules/Makefile
config.status: creating exrdpx/Makefile
config.status: creating exr_ctl_exr/Makefile
config.status: creating vc/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands

---------------------------------------------
Summary for OpenEXR_CTL features:

No variable options in this package.  Configure completed successfully.
---------------------------------------------

===>  Building for openexr_ctl2-1.0.1
Making all in IlmImfCtl
/bin/sh /usr/local/bin/libtool --tag=CXX    --mode=compile c++ -DPACKAGE_NAME=\"OpenEXR_CTL\" -DPACKAGE_TARNAME=\"openexr_ctl\" -DPACKAGE_VERSION=\"1.0.1\" -D$
ACKAGE_STRING=\"OpenEXR_CTL\ 1.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openexr_ctl\" -DVERSION=\"1.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYP$
S_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DH$
VE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -I. @CTL_CXXFLAGS@ @OPENEXR_CXXFLAGS@    -pipe -O2 -pipe -fno-strict-aliasing -MT ImfCt$
ApplyTransforms.lo -MD -MP -MF .deps/ImfCtlApplyTransforms.Tpo -c -o ImfCtlApplyTransforms.lo ImfCtlApplyTransforms.cpp
libtool: compile:  c++ -DPACKAGE_NAME=\"OpenEXR_CTL\" -DPACKAGE_TARNAME=\"openexr_ctl\" -DPACKAGE_VERSION=\"1.0.1\" "-DPACKAGE_STRING=\"OpenEXR_CTL 1.0.1\"" -$
PACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"openexr_ctl\" -DVERSION=\"1.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLI$
_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -D$
TDC_HEADERS=1 -DHAVE_LIMITS_H=1 -I. @CTL_CXXFLAGS@ @OPENEXR_CXXFLAGS@ -pipe -O2 -pipe -fno-strict-aliasing -MT ImfCtlApplyTransforms.lo -MD -MP -MF .deps/ImfC$
lApplyTransforms.Tpo -c ImfCtlApplyTransforms.cpp  -fPIC -DPIC -o .libs/ImfCtlApplyTransforms.o
c++: @CTL_CXXFLAGS@: No such file or directory
c++: @OPENEXR_CXXFLAGS@: No such file or directory
In file included from ImfCtlApplyTransforms.cpp:43:
./ImfCtlApplyTransforms.h:187:22: error: ImathBox.h: No such file or directory
./ImfCtlApplyTransforms.h:188:26: error: ImfThreading.h: No such file or directory
In file included from ImfCtlApplyTransforms.cpp:44:
./ImfCtlCopyFunctionArg.h:46:26: error: ImfAttribute.h: No such file or directory
./ImfCtlCopyFunctionArg.h:47:28: error: ImfFrameBuffer.h: No such file or directory
./ImfCtlCopyFunctionArg.h:48:29: error: CtlFunctionCall.h: No such file or directory
ImfCtlApplyTransforms.cpp:45:23: error: ImfHeader.h: No such file or directory
ImfCtlApplyTransforms.cpp:47:28: error: CtlInterpreter.h: No such file or directory
ImfCtlApplyTransforms.cpp:48:27: error: IlmThreadPool.h: No such file or directory
ImfCtlApplyTransforms.cpp:49:28: error: IlmThreadMutex.h: No such file or directory
ImfCtlApplyTransforms.cpp:50:17: error: Iex.h: No such file or directory
In file included from ImfCtlApplyTransforms.cpp:43:
./ImfCtlApplyTransforms.h:209: error: expected ',' or '...' before '::' token
./ImfCtlApplyTransforms.h:215: error: ISO C++ forbids declaration of 'Imath' with no type
In file included from ImfCtlApplyTransforms.cpp:44:
./ImfCtlCopyFunctionArg.h:58: error: expected unqualified-id before '&' token
./ImfCtlCopyFunctionArg.h:58: error: expected ',' or '...' before '&' token
./ImfCtlCopyFunctionArg.h:65: error: expected ',' or '...' before '::' token
./ImfCtlCopyFunctionArg.h:69: error: ISO C++ forbids declaration of 'Imath' with no type
./ImfCtlCopyFunctionArg.h:71: error: expected ',' or '...' before '::' token
./ImfCtlCopyFunctionArg.h:75: error: ISO C++ forbids declaration of 'Imath' with no type
./ImfCtlCopyFunctionArg.h:81: error: expected unqualified-id before '&' token
./ImfCtlCopyFunctionArg.h:81: error: expected ',' or '...' before '&' token
./ImfCtlCopyFunctionArg.h:84: error: expected unqualified-id before '&' token
./ImfCtlCopyFunctionArg.h:84: error: expected ',' or '...' before '&' token
ImfCtlApplyTransforms.cpp:53: error: 'Iex' is not a namespace-name
ImfCtlApplyTransforms.cpp:53: error: expected namespace-name before ';' token
ImfCtlApplyTransforms.cpp:54: error: 'Imath' is not a namespace-name
ImfCtlApplyTransforms.cpp:54: error: expected namespace-name before ';' token
ImfCtlApplyTransforms.cpp:55: error: 'IlmThread' is not a namespace-name
ImfCtlApplyTransforms.cpp:55: error: expected namespace-name before ';' token
ImfCtlApplyTransforms.cpp:78: error: 'FunctionCallPtr' was not declared in this scope
ImfCtlApplyTransforms.cpp:78: error: template argument 1 is invalid
ImfCtlApplyTransforms.cpp:78: error: template argument 2 is invalid
ImfCtlApplyTransforms.cpp:78: error: invalid type in declaration before ';' token
ImfCtlApplyTransforms.cpp:84: error: expected ',' or '...' before '&' token
ImfCtlApplyTransforms.cpp:91: error: ISO C++ forbids declaration of 'Box2i' with no type
ImfCtlApplyTransforms.cpp: In function 'void ImfCtl::<unnamed>::callFunctions(const ImfCtl::<unnamed>::FunctionList&, int)':
ImfCtlApplyTransforms.cpp:103: error: 'FunctionCallPtr' was not declared in this scope
ImfCtlApplyTransforms.cpp:103: error: expected `;' before 'previousFunc'
ImfCtlApplyTransforms.cpp:105: error: request for member 'size' in 'funcs', which is of non-class type 'const int'
ImfCtlApplyTransforms.cpp:107: error: expected `;' before 'func'
ImfCtlApplyTransforms.cpp:114: error: 'func' was not declared in this scope
ImfCtlApplyTransforms.cpp:116: error: 'FunctionArgPtr' was not declared in this scope
ImfCtlApplyTransforms.cpp:116: error: expected `;' before 'arg'
ImfCtlApplyTransforms.cpp:119: error: 'arg' was not declared in this scope
ImfCtlApplyTransforms.cpp:128: error: 'previousFunc' was not declared in this scope
ImfCtlApplyTransforms.cpp:130: error: expected `;' before 'previousArg'
ImfCtlApplyTransforms.cpp:133: error: 'previousArg' was not declared in this scope
ImfCtlApplyTransforms.cpp:139: error: 'previousArg' was not declared in this scope
ImfCtlApplyTransforms.cpp:143: error: 'numSamples' was not declared in this scope
ImfCtlApplyTransforms.cpp:148: error: incomplete type 'Imf::FrameBuffer' used in nested name specifier
ImfCtlApplyTransforms.cpp:148: error: expected `;' before 'inSlice'
ImfCtlApplyTransforms.cpp:151: error: 'inSlice' was not declared in this scope
ImfCtlApplyTransforms.cpp:151: error: 'inFb' was not declared in this scope
ImfCtlApplyTransforms.cpp:155: error: 'transformWindow' was not declared in this scope
ImfCtlApplyTransforms.cpp:156: error: 'firstSample' was not declared in this scope
ImfCtlApplyTransforms.cpp:157: error: 'numSamples' was not declared in this scope
ImfCtlApplyTransforms.cpp:171: error: 'ArgExc' was not declared in this scope
ImfCtlApplyTransforms.cpp:174: error: 'THROW' was not declared in this scope
ImfCtlApplyTransforms.cpp:186: error: 'previousFunc' was not declared in this scope
ImfCtlApplyTransforms.cpp:188: error: expected `;' before 'previousArg'
ImfCtlApplyTransforms.cpp:191: error: 'previousArg' was not declared in this scope
ImfCtlApplyTransforms.cpp:197: error: 'previousArg' was not declared in this scope
ImfCtlApplyTransforms.cpp:206: error: incomplete type 'Imf::Header' used in nested name specifier
ImfCtlApplyTransforms.cpp:206: error: expected `;' before 'inAttr'
ImfCtlApplyTransforms.cpp:209: error: 'inAttr' was not declared in this scope
ImfCtlApplyTransforms.cpp:209: error: 'inHeader' was not declared in this scope
ImfCtlApplyTransforms.cpp:217: error: incomplete type 'Imf::Header' used in nested name specifier
ImfCtlApplyTransforms.cpp:217: error: expected `;' before 'envAttr'
ImfCtlApplyTransforms.cpp:220: error: 'envAttr' was not declared in this scope
ImfCtlApplyTransforms.cpp:220: error: 'envHeader' was not declared in this scope
ImfCtlApplyTransforms.cpp:236: error: 'ArgExc' was not declared in this scope
ImfCtlApplyTransforms.cpp:239: error: 'THROW' was not declared in this scope
ImfCtlApplyTransforms.cpp:247: error: 'func' was not declared in this scope
ImfCtlApplyTransforms.cpp:247: error: 'numSamples' was not declared in this scope
ImfCtlApplyTransforms.cpp:255: error: 'FunctionArgPtr' was not declared in this scope
ImfCtlApplyTransforms.cpp:255: error: expected `;' before 'arg'
ImfCtlApplyTransforms.cpp:258: error: 'arg' was not declared in this scope
ImfCtlApplyTransforms.cpp:264: error: incomplete type 'Imf::FrameBuffer' used in nested name specifier
ImfCtlApplyTransforms.cpp:264: error: expected `;' before 'outSlice'
ImfCtlApplyTransforms.cpp:267: error: 'outSlice' was not declared in this scope
ImfCtlApplyTransforms.cpp:267: error: 'outFb' was not declared in this scope
ImfCtlApplyTransforms.cpp:275: error: 'outSlice' was not declared in this scope
ImfCtlApplyTransforms.cpp:275: error: 'outFb' was not declared in this scope
ImfCtlApplyTransforms.cpp:279: error: 'transformWindow' was not declared in this scope
ImfCtlApplyTransforms.cpp:280: error: 'firstSample' was not declared in this scope
ImfCtlApplyTransforms.cpp:294: error: incomplete type 'Imf::Header' used in nested name specifier
ImfCtlApplyTransforms.cpp:294: error: expected `;' before 'outAttr'
ImfCtlApplyTransforms.cpp:297: error: 'outAttr' was not declared in this scope
ImfCtlApplyTransforms.cpp:297: error: 'outHeader' was not declared in this scope
ImfCtlApplyTransforms.cpp:305: error: 'outAttr' was not declared in this scope
ImfCtlApplyTransforms.cpp:305: error: 'outHeader' was not declared in this scope
ImfCtlApplyTransforms.cpp:315: error: 'previousFunc' was not declared in this scope
ImfCtlApplyTransforms.cpp: At global scope:
ImfCtlApplyTransforms.cpp:321: error: expected class-name before '{' token
ImfCtlApplyTransforms.cpp:325: error: expected `)' before '*' token
ImfCtlApplyTransforms.cpp:345: error: ISO C++ forbids declaration of 'Box2i' with no type
ImfCtlApplyTransforms.cpp:345: error: expected ';' before '&' token
ImfCtlApplyTransforms.cpp:353: error: ISO C++ forbids declaration of 'Mutex' with no type
ImfCtlApplyTransforms.cpp:353: error: expected ';' before '&' token
ImfCtlApplyTransforms.cpp:359: error: expected `)' before '*' token
ImfCtlApplyTransforms.cpp: In member function 'virtual void ImfCtl::<unnamed>::CallFunctionsTask::execute()':
ImfCtlApplyTransforms.cpp:406: error: request for member 'push_back' in 'funcs', which is of non-class type 'ImfCtl::<unnamed>::FunctionList'
ImfCtlApplyTransforms.cpp:406: error: invalid use of incomplete type 'struct Ctl::Interpreter'
./ImfCtlApplyTransforms.h:198: error: forward declaration of 'struct Ctl::Interpreter'
ImfCtlApplyTransforms.cpp:413: error: invalid use of incomplete type 'struct Ctl::Interpreter'
./ImfCtlApplyTransforms.h:198: error: forward declaration of 'struct Ctl::Interpreter'
ImfCtlApplyTransforms.cpp:423: error: '_transformWindow' was not declared in this scope
ImfCtlApplyTransforms.cpp:433: error: 'Lock' was not declared in this scope
ImfCtlApplyTransforms.cpp:433: error: expected `;' before 'lock'
ImfCtlApplyTransforms.cpp:438: error: 'Lock' was not declared in this scope
ImfCtlApplyTransforms.cpp:438: error: expected `;' before 'lock'
ImfCtlApplyTransforms.cpp: At global scope:
ImfCtlApplyTransforms.cpp:450: error: expected ',' or '...' before '&' token
ImfCtlApplyTransforms.cpp:456: error: ISO C++ forbids declaration of 'Box2i' with no type
ImfCtlApplyTransforms.cpp: In function 'void ImfCtl::applyTransforms(Ctl::Interpreter&, const ImfCtl::StringList&, int)':
ImfCtlApplyTransforms.cpp:464: error: invalid use of incomplete type 'struct Ctl::Interpreter'
./ImfCtlApplyTransforms.h:198: error: forward declaration of 'struct Ctl::Interpreter'
ImfCtlApplyTransforms.cpp:470: error: 'transformWindow' was not declared in this scope
ImfCtlApplyTransforms.cpp:489: error: 'Mutex' was not declared in this scope
ImfCtlApplyTransforms.cpp:489: error: expected `;' before 'exceptionMutex'
ImfCtlApplyTransforms.cpp:493: error: 'TaskGroup' was not declared in this scope
ImfCtlApplyTransforms.cpp:493: error: expected `;' before 'taskGroup'
ImfCtlApplyTransforms.cpp:495: error: 'numThreads' was not declared in this scope
ImfCtlApplyTransforms.cpp:502: error: 'ThreadPool' has not been declared
ImfCtlApplyTransforms.cpp:503: error: 'taskGroup' was not declared in this scope
ImfCtlApplyTransforms.cpp:509: error: 'envHeader' was not declared in this scope
ImfCtlApplyTransforms.cpp:510: error: 'inHeader' was not declared in this scope
ImfCtlApplyTransforms.cpp:511: error: 'inFb' was not declared in this scope
ImfCtlApplyTransforms.cpp:512: error: 'outHeader' was not declared in this scope
ImfCtlApplyTransforms.cpp:513: error: 'outFb' was not declared in this scope
ImfCtlApplyTransforms.cpp:514: error: 'exceptionMutex' was not declared in this scope
ImfCtlApplyTransforms.cpp:530: error: 'Iex' has not been declared
*** [ImfCtlApplyTransforms.lo] Error code 1

Stop in /var/tmp/ports/usr/local/ports/local/work/graphics/openexr_ctl2/work/ampas-CTL-ca179ca/OpenEXR_CTL/IlmImfCtl.
*** [all-recursive] Error code 1

Stop in /var/tmp/ports/usr/local/ports/local/work/graphics/openexr_ctl2/work/ampas-CTL-ca179ca/OpenEXR_CTL.
*** [do-build] Error code 1

Stop in /usr/local/ports/local/work/graphics/openexr_ctl2.
===> Error running make build
===> Cleaning up

But i have these libraries

ls /usr/local/include/OpenEXR2 
Iex.h                         ImathFrustum.h                ImfChannelList.h              ImfHuf.h                      ImfRgbaFile.h
IexBaseExc.h                  ImathFun.h                    ImfChannelListAttribute.h     ImfIO.h                       ImfRgbaYca.h
IexErrnoExc.h                 ImathGL.h                     ImfChromaticities.h           ImfInputFile.h                ImfStandardAttributes.h
IexExport.h                   ImathGLU.h                    ImfChromaticitiesAttribute.h  ImfInputPart.h                ImfStringAttribute.h
IexForward.h                  ImathHalfLimits.h             ImfCompositeDeepScanLine.h    ImfInt64.h                    ImfStringVectorAttribute.h
IexMacros.h                   ImathInt64.h                  ImfCompression.h              ImfIntAttribute.h             ImfTestFile.h
IexMathExc.h                  ImathInterval.h               ImfCompressionAttribute.h     ImfKeyCode.h                  ImfThreading.h
IexMathFloatExc.h             ImathLimits.h                 ImfConvert.h                  ImfKeyCodeAttribute.h         ImfTileDescription.h
IexMathFpu.h                  ImathLine.h                   ImfDeepCompositing.h          ImfLineOrder.h                ImfTileDescriptionAttribute.h
IexMathIeeeExc.h              ImathLineAlgo.h               ImfDeepFrameBuffer.h          ImfLineOrderAttribute.h       ImfTiledInputFile.h
IexNamespace.h                ImathMath.h                   ImfDeepScanLineInputFile.h    ImfLut.h                      ImfTiledInputPart.h
IexThrowErrnoExc.h            ImathMatrix.h                 ImfDeepScanLineInputPart.h    ImfMatrixAttribute.h          ImfTiledOutputFile.h
IlmBaseConfig.h               ImathMatrixAlgo.h             ImfDeepScanLineOutputFile.h   ImfMisc.h                     ImfTiledOutputPart.h
IlmThread.h                   ImathNamespace.h              ImfDeepScanLineOutputPart.h   ImfMultiPartInputFile.h       ImfTiledRgbaFile.h
IlmThreadExport.h             ImathPlane.h                  ImfDeepTiledInputFile.h       ImfMultiPartOutputFile.h      ImfTimeCode.h
IlmThreadForward.h            ImathPlatform.h               ImfDeepTiledInputPart.h       ImfMultiView.h                ImfTimeCodeAttribute.h
IlmThreadMutex.h              ImathQuat.h                   ImfDeepTiledOutputFile.h      ImfName.h                     ImfVecAttribute.h
IlmThreadNamespace.h          ImathRandom.h                 ImfDeepTiledOutputPart.h      ImfNamespace.h                ImfVersion.h
IlmThreadPool.h               ImathRoots.h                  ImfDoubleAttribute.h          ImfOpaqueAttribute.h          ImfWav.h
IlmThreadSemaphore.h          ImathShear.h                  ImfEnvmap.h                   ImfOutputFile.h               ImfXdr.h
ImathBox.h                    ImathSphere.h                 ImfEnvmapAttribute.h          ImfOutputPart.h               OpenEXRConfig.h
ImathBoxAlgo.h                ImathVec.h                    ImfExport.h                   ImfPartHelper.h               half.h
ImathColor.h                  ImathVecAlgo.h                ImfFloatAttribute.h           ImfPartType.h                 halfExport.h
ImathColorAlgo.h              ImfAcesFile.h                 ImfForward.h                  ImfPixelType.h                halfFunction.h
ImathEuler.h                  ImfArray.h                    ImfFrameBuffer.h              ImfPreviewImage.h             halfLimits.h
ImathExc.h                    ImfAttribute.h                ImfFramesPerSecond.h          ImfPreviewImageAttribute.h
ImathExport.h                 ImfB44Compressor.h            ImfGenericInputFile.h         ImfRational.h
ImathForward.h                ImfBoxAttribute.h             ImfGenericOutputFile.h        ImfRationalAttribute.h
ImathFrame.h                  ImfCRgbaFile.h                ImfHeader.h                   ImfRgba.h

@michaeldsmith
Copy link
Collaborator

@nemysis I'm not sure if this old issue still affects you, CTL compiles fine with OpenEXR 2.3 and 2.5 (see current github CI workflow or the included docker for example). Please try again with OpenEXR 2.3 or 2.5 and file a new issue if you encounter problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants