-
Notifications
You must be signed in to change notification settings - Fork 566
build for android failed due to error: undefined symbol: __android_log_write #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please test the following patch: diff --git a/tests/unit_tests/CMakeLists.txt b/tests/unit_tests/CMakeLists.txt
index 01a3f6e0..90fd76c8 100644
--- a/tests/unit_tests/CMakeLists.txt
+++ b/tests/unit_tests/CMakeLists.txt
@@ -1,5 +1,9 @@
add_executable (unit_tests unit_tests.cxx)
target_link_libraries (unit_tests ${log4cplus})
+if (ANDROID)
+ find_library (log-lib log)
+ target_link_libraries (unit_tests ${log-lib})
+endif (ANDROID)
add_test(NAME unit_tests
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
COMMAND unit_tests) |
thanks for your effort. but this patch not work for me. |
wilx
added a commit
to wilx/log4cplus
that referenced
this issue
Dec 27, 2021
Look for Android's log library. Fixes log4cplus#543.
I think the change I just committed should fix this. Please test. |
can't work, error logs:
|
It did work for me. I configured from subdirecotry of the sources:
|
I find that your fix has been merged into |
wilx
added a commit
to wilx/log4cplus
that referenced
this issue
Dec 30, 2021
Look for Android's log library. Fixes log4cplus#543. (cherry picked from commit 2de9a22)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://downloads.sourceforge.net/project/log4cplus/log4cplus-stable/2.0.7/log4cplus-2.0.7.tar.xz
The text was updated successfully, but these errors were encountered: