This commit is contained in:
amass 2025-02-09 06:04:05 +00:00
parent 881bc30f45
commit 52a32eca6e
4 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,8 @@
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/3rdparty/ds_pedestrian_mot_hisi/include",
"/opt/Libraries/boost_1_84_0/include",
"/opt/Libraries/boost_1_86_0/include",
"/opt/Libraries/libdatachannel-0.22.4",
"/opt/aarch64-v01c01-linux-gnu-gcc/lib/ZLMediaKit/include",
"/opt/aarch64-v01c01-linux-gnu-gcc/lib/LeakTracer/include",
"build/_deps/kylin-src/Universal"

View File

@ -17,11 +17,13 @@ endif()
set(OPENSSL_INCLUDE_DIR ${OPENSSL_ROOT_DIR}/include)
set(OPENSSL_LIBRARIES ssl crypto)
set(BOOST_ROOT ${Libraries_ROOT}/boost_1_84_0)
set(BOOST_ROOT ${Libraries_ROOT}/boost_1_86_0)
set(Boost_INCLUDE_DIR ${BOOST_ROOT}/include)
option(Boost_USE_STATIC_LIBS OFF)
find_package(Boost REQUIRED COMPONENTS log serialization)
set(MbedTLS_DIR ${Libraries_ROOT}/mbedtls-3.6.2/lib/cmake/MbedTLS)
set(ZLMediaKit_ROOT /opt/aarch64-v01c01-linux-gnu-gcc/lib/ZLMediaKit)
set(ZLMediaKit_INCLUDE_DIR ${ZLMediaKit_ROOT}/include)
set(ZLMediaKit_LIBRARY_DIRS ${ZLMediaKit_ROOT}/lib)

View File

@ -34,7 +34,7 @@ class Test {
int main(int argc, char const *argv[]) {
LOG(info) << "hello world.";
MemoryAllocationStackTracer::instance()->start();
MemoryAllocationStackTracer::instance()->start(".", "test", std::chrono::seconds(1));
auto a = new Test();
make_memory_leak();

View File

@ -4,7 +4,7 @@ TARGET_IP="192.168.3.220"
TARGET_PATH="/data/sdcard/PassengerStatistics"
base_path=$(pwd)
libraries_root="/opt/Libraries"
if [[ $base_path == /home/* ]]; then
if [[ $base_path == /home/* || $base_path == /root/* ]]; then
build_path=${base_path}/build
else
build_path=/tmp/build