unix compilation fix
Thanks Fabien.
Which specific unix distribution and versions were you having compile issues on?
Alex
Ubuntu 12.10 gcc 4.7.2
The error was: CtlInterpreter.cpp:175:44: error: 'F_OK' was not declared in this scope
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
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]
Where can i find this ctl_1.5_rc branch?
https://github.com/ampas/CTL/tree/ctl_1.5_rc
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.
closed by a0d9aec94d90a12d0701c377b428201323bc049a