CTL icon indicating copy to clipboard operation
CTL copied to clipboard

unix compilation fix

Open fabiencastan opened this issue 13 years ago • 8 comments

fabiencastan avatar Nov 25 '12 15:11 fabiencastan

Thanks Fabien.

Which specific unix distribution and versions were you having compile issues on?

Alex

aforsythe avatar Nov 25 '12 16:11 aforsythe

Ubuntu 12.10 gcc 4.7.2

fabiencastan avatar Nov 25 '12 16:11 fabiencastan

The error was: CtlInterpreter.cpp:175:44: error: 'F_OK' was not declared in this scope

fabiencastan avatar Nov 25 '12 16:11 fabiencastan

I'm maintainer for FreeBSD and have this build failures

http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2013-10-03_02h55m30s/logs/ampasCTL-1.4.1_1.log

http://beefy1.isc.freebsd.org/bulk/head-i386-default/2013-10-03_03h09m26s/logs/ampasCTL-1.4.1_1.log

CtlInterpreter.lo -MD -MP -MF .deps/CtlInterpreter.Tpo -c -o CtlInterpreter.lo CtlInterpreter.cpp
libtool: compile:  c++ -DPACKAGE_NAME=\"CTL\" -DPACKAGE_TARNAME=\"ctl\" -DPACKAGE_VERSION=\"1.4.1\" "-DPACKAGE_STRING=\"CTL 1.4.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"ctl\" -DVERSION=\"1.4.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_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 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_COMPLETE_IOMANIP=1 -I. -D_THREAD_SAFE -I/usr/local/include/OpenEXR -I.. -pipe -O2 -pipe -fno-strict-aliasing -MT CtlInterpreter.lo -MD -MP -MF .deps/CtlInterpreter.Tpo -c CtlInterpreter.cpp  -fPIC -DPIC -o .libs/CtlInterpreter.o
CtlInterpreter.cpp:196:34: error: use of undeclared identifier 'F_OK'
                if (!access (fileName.c_str(), F_OK))
                                               ^
1 error generated.
*** Error code 1

nemysis avatar Oct 03 '13 10:10 nemysis

Please test the build system on the ctl_1.5_rc branch.

Thanks Alex

Alexander Forsythe - Imaging Engineering Manager - Science and Technology Council

Academy of Motion Picture Arts and Sciences - Tel 310-247-3000 x3310 Fax 310-247-3611 - www.oscars.org - [email protected]

aforsythe avatar Oct 03 '13 17:10 aforsythe

Where can i find this ctl_1.5_rc branch?

nemysis avatar Oct 03 '13 18:10 nemysis

https://github.com/ampas/CTL/tree/ctl_1.5_rc

scottdyer avatar Oct 03 '13 18:10 scottdyer

Thanks i have tried this Version, and see use Cmake this is great.

Only here in FreeBSD is not found

ampas-CTL-9cb69b8/lib/dpx/dpx_util.cc:58:10: fatal error: 'alloca.h' file not found

#include <alloca.h>
locate alloca.h  
/usr/freebsd/cddl/compat/opensolaris/include/alloca.h
/usr/freebsd/contrib/ofed/usr.lib/libibverbs/alloca.h
/usr/local/include/X11/Xalloca.h
/usr/local/include/glib-2.0/glib/galloca.h
/usr/local/include/libtorrent/alloca.hpp

alloca.h is used in these files

lib/dpx/dpx_util.cc lib/IlmCtl/CtlExc.cpp lib/IlmCtl/CtlTypeStorage.cpp ctlrender/tiff_file.cc ctlrender/tiff_file.cc

And when i use this patch to build ampasCTL good, but is then usable?

post-patch:
        @${REINPLACE_CMD} -e 's|#include <alloca.h>||' \
                ${WRKSRC}/lib/dpx/dpx_util.cc ${WRKSRC}/lib/IlmCtl/CtlExc.cpp \
                ${WRKSRC}/lib/IlmCtl/CtlTypeStorage.cpp ${WRKSRC}/ctlrender/tiff_file.cc

Please make FreeBSD compatible. Thanks.

nemysis avatar Oct 03 '13 22:10 nemysis

closed by a0d9aec94d90a12d0701c377b428201323bc049a

michaeldsmith avatar Dec 23 '22 22:12 michaeldsmith