From 56719e7bcd2da88062f122f686b1d73684044227 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Wed, 28 Sep 2016 13:02:54 -0700 Subject: [PATCH] Libcurl --- linux/build | 10 +++++----- src/lib_ccx/lib_ccx.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/linux/build b/linux/build index 556fdb07..54594edb 100755 --- a/linux/build +++ b/linux/build @@ -1,6 +1,6 @@ #!/bin/bash -BLD_FLAGS="-std=gnu99 -Wno-write-strings -DGPAC_CONFIG_LINUX -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DENABLE_OCR" -BLD_INCLUDE="-I../src -I /usr/include/leptonica/ -I /usr/include/tesseract/ -I../src/lib_ccx/ -I../src/gpacmp4/ -I../src/libpng/ -I../src/zlib/ -I../src/zvbi -I../src/lib_hash -I../src/protobuf-c -I../src/utf8proc" +BLD_FLAGS="-g -std=gnu99 -Wno-write-strings -DGPAC_CONFIG_LINUX -D_FILE_OFFSET_BITS=64 -DVERSION_FILE_PRESENT -DENABLE_OCR -DWITH_LIBCURL" +BLD_INCLUDE="-I../src -I /usr/include/leptonica/ -I /usr/include/tesseract/ -I../src/lib_ccx/ -I../src/gpacmp4/ -I../src/libpng/ -I../src/zlib/ -I../src/zvbi -I../src/lib_hash -I../src/protobuf-c" SRC_LIBPNG="$(find ../src/libpng/ -name '*.c')" SRC_ZLIB="$(find ../src/zlib/ -name '*.c')" SRC_ZVBI="$(find ../src/zvbi/ -name '*.c')" @@ -8,9 +8,9 @@ SRC_CCX="$(find ../src/lib_ccx/ -name '*.c')" SRC_GPAC="$(find ../src/gpacmp4/ -name '*.c')" SRC_HASH="$(find ../src/lib_hash/ -name '*.c')" SRC_PROTOBUF="$(find ../src/protobuf-c/ -name '*.c')" -SRC_UTF8PROC="../src/utf8proc/utf8proc.c" -BLD_SOURCES="../src/ccextractor.c $SRC_CCX $SRC_GPAC $SRC_ZLIB $SRC_ZVBI $SRC_LIBPNG $SRC_HASH $SRC_PROTOBUF $SRC_UTF8PROC" -BLD_LINKER="-lm -zmuldefs -l tesseract -l lept" +protobuf-c +BLD_SOURCES="../src/ccextractor.c $SRC_CCX $SRC_GPAC $SRC_ZLIB $SRC_ZVBI $SRC_LIBPNG $SRC_HASH $SRC_PROTOBUF" +BLD_LINKER="-lm -zmuldefs -l tesseract -l lept -lcurl" ./pre-build.sh gcc $BLD_FLAGS $BLD_INCLUDE -o ccextractor $BLD_SOURCES $BLD_LINKER diff --git a/src/lib_ccx/lib_ccx.h b/src/lib_ccx/lib_ccx.h index fd0d3c43..81e491e8 100644 --- a/src/lib_ccx/lib_ccx.h +++ b/src/lib_ccx/lib_ccx.h @@ -21,7 +21,7 @@ #include "avc_functions.h" #ifdef WITH_LIBCURL -// #include +#include #endif //#include "ccx_decoders_708.h"