未验证 提交 8d316cd2 编写于 作者: H huzhiqiang 提交者: GitHub

[BUG FIX] Fix the issue that Paddle-Lite can not compile on armlinux backend (#4263)

上级 c70e2209
......@@ -436,14 +436,18 @@ if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
endif()
if (ARM_TARGET_OS STREQUAL "armlinux")
add_custom_target(publish_inference_armlinux_cxx_demos ${TARGET}
if (NOT LITE_ON_TINY_PUBLISH)
COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/demo/cxx/arm_linux_full"
COMMAND cp -r "${CMAKE_SOURCE_DIR}/lite/demo/cxx/arm_linux_full_demo" "${INFER_LITE_PUBLISH_ROOT}/demo/cxx/arm_linux_full"
endif()
COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/demo/cxx/arm_linux_light"
COMMAND cp -r "${CMAKE_SOURCE_DIR}/lite/demo/cxx/arm_linux_light_demo" "${INFER_LITE_PUBLISH_ROOT}/demo/cxx/arm_linux_light"
)
if (NOT LITE_ON_TINY_PUBLISH)
add_custom_target(publish_inference_armlinux_cxx_demos ${TARGET}
COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/demo/cxx"
COMMAND cp -r "${CMAKE_SOURCE_DIR}/lite/demo/cxx/armlinux_mobilenetv1_full_demo" "${INFER_LITE_PUBLISH_ROOT}/demo/cxx/mobilenetv1_full"
COMMAND cp -r "${CMAKE_SOURCE_DIR}/lite/demo/cxx/armlinux_mobilenetv1_light_demo" "${INFER_LITE_PUBLISH_ROOT}/demo/cxx/mobilenetv1_light"
)
else()
add_custom_target(publish_inference_armlinux_cxx_demos ${TARGET}
COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/demo/cxx"
COMMAND cp -r "${CMAKE_SOURCE_DIR}/lite/demo/cxx/armlinux_mobilenetv1_light_demo" "${INFER_LITE_PUBLISH_ROOT}/demo/cxx/mobilenetv1_light"
)
endif()
add_dependencies(publish_inference publish_inference_armlinux_cxx_demos)
endif()
......
mkdir ./build
cd ./build
cmake ..
make
cd ..
rm -rf ./build
mkdir ./build
cd ./build
cmake ..
make
cd ..
rm -rf ./build
cmake_minimum_required(VERSION 2.8)
set(TARGET arm_linux_full_api)
set(TARGET mobilenet_full_api)
# 1. path to Paddle-Lite lib
set(LITE_DIR "${PROJECT_SOURCE_DIR}/../../../cxx")
......
cmake_minimum_required(VERSION 2.8)
set(TARGET arm_linux_light_api)
set(TARGET mobilenet_light_api)
# 1. path to Paddle-Lite lib
set(LITE_DIR "${PROJECT_SOURCE_DIR}/../../../cxx")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册