【修改】RISC-V架构编译错误
This commit is contained in:
parent
f4e6edcb76
commit
f834822250
|
@ -68,6 +68,8 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/libs/amd64/paddle_inference/paddle/li
|
|||
add_definitions(-DLOONGARCH64)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "loongarch64")
|
||||
add_definitions(-DLOONGARCH64)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "riscv64")
|
||||
add_definitions(-DLOONGARCH64)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "sw_64")
|
||||
add_definitions(-DLOONGARCH64)
|
||||
else()
|
||||
|
@ -181,6 +183,11 @@ elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "sw_64")
|
|||
add_library(kyocr SHARED libkyocr.cpp)
|
||||
target_link_libraries(kyocr ${kyocr_libraries})
|
||||
target_compile_options(kyocr PUBLIC ${kyocr_cflags})
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "riscv64")
|
||||
message(loongarch64)
|
||||
add_library(kyocr SHARED libkyocr.cpp)
|
||||
target_link_libraries(kyocr ${kyocr_libraries})
|
||||
target_compile_options(kyocr PUBLIC ${kyocr_cflags})
|
||||
else()
|
||||
add_library(kyocr SHARED libkyocr.cpp ocr_main.cpp utility.cpp preprocess_op.cpp postprocess_op.cpp)
|
||||
target_link_libraries(kyocr ${OpenCV_LIBS} ${DEPS})
|
||||
|
@ -205,6 +212,8 @@ elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64")
|
|||
install(FILES ${PROJECT_SOURCE_DIR}/libs/mips64el/paddle_inference/paddle/lib/libpaddle_inference.so DESTINATION lib/)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "loongarch64")
|
||||
install(FILES ${PROJECT_SOURCE_DIR}/libs/libpaddle_inference DESTINATION lib/libpaddle_inference.so)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "riscv64")
|
||||
install(FILES ${PROJECT_SOURCE_DIR}/libs/libpaddle_inference DESTINATION lib/libpaddle_inference.so)
|
||||
# install(FILES ${PROJECT_SOURCE_DIR}/libs/loongarch64/paddle_inference/paddle/lib/libpaddle_inference.so DESTINATION lib/)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "sw_64")
|
||||
install(FILES ${PROJECT_SOURCE_DIR}/libs/libpaddle_inference DESTINATION lib/libpaddle_inference.so)
|
||||
|
|
Loading…
Reference in New Issue