This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Description
luarocks make
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/opt/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/opt/torch/install/lib/luarocks/rocks/thrift/scm-1" -DCMAKE_C_FLAGS=-fPIC -DCMAKE_CXX_FLAGS=-fPIC;
make
-- Found Torch7 in /opt/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Downloads/torch-thrift/build
[ 25%] Building C object CMakeFiles/thrift.dir/src/thrift.c.o
/root/Downloads/torch-thrift/src/thrift.c: In function ‘thrift_read_rcsv’:
/root/Downloads/torch-thrift/src/thrift.c:243:16: error: implicit declaration of function ‘betoh64’ [-Werror=implicit-function-declaration]
i64 = betoh64(i64);
^
/root/Downloads/torch-thrift/src/thrift.c:257:16: error: implicit declaration of function ‘betoh16’ [-Werror=implicit-function-declaration]
i16 = betoh16(i16);
^
/root/Downloads/torch-thrift/src/thrift.c:271:16: error: implicit declaration of function ‘betoh32’ [-Werror=implicit-function-declaration]
i32 = betoh32(i32);
^
cc1: all warnings being treated as errors
CMakeFiles/thrift.dir/build.make:62: recipe for target 'CMakeFiles/thrift.dir/src/thrift.c.o' failed
make[2]: *** [CMakeFiles/thrift.dir/src/thrift.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thrift.dir/all' failed
make[1]: *** [CMakeFiles/thrift.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Error: Build error: Failed building.