Skip to content

Commit

Permalink
Merge pull request #73 from fourdollars/dfsg
Browse files Browse the repository at this point in the history
Correct plugin path and reduce the debug messages
  • Loading branch information
hao-yao authored Sep 1, 2023
2 parents 9a8bef2 + 4c1bacf commit 7964af4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hal/hal_adaptor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ add_compile_options(-Wall -Werror
add_definitions(-D__STDC_FORMAT_MACROS
-DHAVE_PTHREADS
-DHAVE_LINUX_OS
-DCAMHAL_PLUGIN_DIR=\"${CMAKE_INSTALL_LIBDIR}/libcamhal/plugins/\"
-DCAMHAL_PLUGIN_DIR=\"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/libcamhal/plugins/\"
)

set(HAL_ADAPTOR_LD_FLAGS "-fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wl,-z,relro -Wl,-z,now")
Expand Down
2 changes: 1 addition & 1 deletion src/hal/hal_adaptor/HalAdaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static void load_camera_hal_library() {
LOGE("%s, Not support the PCI device %s for hal adaptor API", __func__, pciID);
return VOID_VALUE;
}
LOGI("%s, the library name: %s", __func__, libName.c_str());
LOG1("%s, the library name: %s", __func__, libName.c_str());

gCameraHalLib = dlopen(libName.c_str(), RTLD_NOW);
CheckAndLogError(!gCameraHalLib, VOID_VALUE, "%s, failed to open library: %s, error: %s",
Expand Down

0 comments on commit 7964af4

Please sign in to comment.