diff --git a/build/scripts/crc32.sh b/build/scripts/crc32.sh index b37eb13f51e44687e31421d62bc176b47624169f..f18d013d56e3577f3e421b2207ba210bdf0d3937 100755 --- a/build/scripts/crc32.sh +++ b/build/scripts/crc32.sh @@ -67,7 +67,7 @@ build_crc32() { c++ -O2 -O3 -shared -std=c++11 -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 \ -Wno-maybe-uninitialized -Wno-unused-parameter -Wall -Wl,-z,relro,-z,now,-z,noexecstack \ - -I"$THIRD_PARTY_DIR/securec/include" "${PYBIND11_INCLUDES[0]}" "${PYBIND11_INCLUDES[1]}" \ + -I"$THIRD_PARTY_DIR" "${PYBIND11_INCLUDES[0]}" "${PYBIND11_INCLUDES[1]}" \ -o "$CRC32_SO_FILE" crc32.cc "$BUILDDIR/libsecurec.a" if [ ! -f "$CRC32_SO_FILE" ]; then diff --git a/mindinsight/datavisual/utils/crc32/crc32.cc b/mindinsight/datavisual/utils/crc32/crc32.cc index 098e329896693676436e7d8052d547a7c6e34e93..f0584580d2f73b58786fe12fffd153d079230840 100644 --- a/mindinsight/datavisual/utils/crc32/crc32.cc +++ b/mindinsight/datavisual/utils/crc32/crc32.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "crc32.h" +#include "./crc32.h" static const uint32_t crc_table_o32[CRC_TABLE_SIZE] = { diff --git a/mindinsight/datavisual/utils/crc32/crc32.h b/mindinsight/datavisual/utils/crc32/crc32.h index 4f8d9d0b170dd0e3274020f4e05d61f01df37aac..1646576569d78f395148140cd858e2c9f903fc86 100644 --- a/mindinsight/datavisual/utils/crc32/crc32.h +++ b/mindinsight/datavisual/utils/crc32/crc32.h @@ -20,7 +20,7 @@ #include #include #include "pybind11/pybind11.h" -#include "securec.h" +#include "securec/include/securec.h" #define CRC_TABLE_SIZE 256 #define RIGHT_SHIFT 15