mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Bug Fix] fix win examples build error (#855)
* Update CMakeLists.txt * Update infer_rkyolo.cc
This commit is contained in:
@@ -51,6 +51,11 @@ function(add_fastdeploy_executable FIELD CC_FILE)
|
||||
if(TARGET gflags)
|
||||
if(UNIX AND (NOT APPLE) AND (NOT ANDROID))
|
||||
target_link_libraries(${TEMP_TARGET_NAME} PRIVATE gflags pthread)
|
||||
elseif(WIN32)
|
||||
target_link_libraries(${TEMP_TARGET_NAME} PRIVATE gflags)
|
||||
if (HAVE_SHLWAPI)
|
||||
target_link_libraries(${TEMP_TARGET_NAME} PRIVATE shlwapi.lib)
|
||||
endif()
|
||||
else()
|
||||
target_link_libraries(${TEMP_TARGET_NAME} PRIVATE gflags)
|
||||
endif()
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
#include "fastdeploy/vision.h"
|
||||
|
||||
void RKNPU2Infer(const std::string& model_file, const std::string& image_file) {
|
||||
struct timeval start_time, stop_time;
|
||||
|
||||
auto option = fastdeploy::RuntimeOption();
|
||||
option.UseRKNPU2();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user