Unable to run unittest on camera HAL using google-test framework on Android_x86_64.raven platform, it was...
How can I practically buy stocks?
How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?
Philosophical question on logistic regression: why isn't the optimal threshold value trained?
Function pointer with named arguments?
Don’t seats that recline flat defeat the purpose of having seatbelts?
Was Dennis Ritchie being too modest in this quote about C and Pascal?
What's the name of these pliers?
How to fry ground beef so it is well-browned
"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?
can anyone help me with this awful query plan?
Elements other than carbon that can form many different compounds by bonding to themselves?
"The cow" OR "a cow" OR "cows" in this context
Is the claim "Employers won't employ people with no 'social media presence'" realistic?
How to limit Drive Letters Windows assigns to new removable USB drives
Is this homebrew Wind Wave spell balanced?
If a planet has 3 moons, is it possible to have triple Full/New Moons at once?
Partitioning the Reals into two Locally Uncountable, Dense Sets
555 timer FM transmitter
What term is being referred to with "reflected-sound-of-underground-spirits"?
How to stop co-workers from teasing me because I know Russian?
Pre-plastic human skin alternative
Why do games have consumables?
Could the terminal length of components like resistors be reduced?
How to not starve gigantic beasts
Unable to run unittest on camera HAL using google-test framework on Android_x86_64.raven platform, it was asking libpthread.so.0
Using Linux on a virtual machine to run a LAMP test server?gcc --as-needed linker flag not workingCan I have server and client on the same machine and run network bandwidth test using iperf?Unable to locate package shred. Meaning, apt-get can't find it and neither can I using Googleunable to run my spring boot app using maven?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
My Android platform specifications:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=android_x86_raven
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_CPU_VARIANT=
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N2G48H
OUT_DIR=out
------***********************-----------------
My unit-test Android.mk file is below and I build it using Ninja-Kati:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := amdCamera3streamOps_unittest
LOCAL_C_INCLUDES +=
system/media/camera/include
device/amd/raven/camera/include
ndk/sources/third_party/googletest/googletest/include
LOCAL_SRC_FILES :=
TestAmdCamera3StreamOperations.cpp
raven/camera/amdCamera3Factory.cpp
raven/camera/amdCamera3Hal.cpp
raven/camera/amdCamera3Info.cpp
raven/camera/amdCamera3Hwi.cpp
raven/camera/amdCamera3Queue.cpp
raven/camera/amdCamera3ArbitrationEngine.cpp
raven/camera/amdCamera3DriverInterface.cpp
raven/camera/amdCamera3ResultThread.cpp
raven/camera/amdCamera3StreamOperations.cpp
raven/camera/amdCamera3Gralloc.cpp
LOCAL_SHARED_LIBRARIES :=
libcamera_client
liblog
libhardware
libutils
libcutils
libdl
libsync
libcamera_metadata
libgnustl_shared
libgoogletest_shared
libc
libgoogletest_main_shared
include $(BUILD_EXECUTABLE)
$(call import-module,third_party/googletest)
I have run test as mentioned below:
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell
raven:/ $ cp system/bin/amdCamera3streamOps_unittest data/local/tmp
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell chmod 777 /data/local/tmp/amdCamera3streamOps_unittest
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell "LD_LIBRARY_PATH=/data/local/tmp:/system/lib64 /data/local/tmp/amdCamera3streamOps_unittest"
CANNOT LINK EXECUTABLE "/data/local/tmp/amdCamera3streamOps_unittest": library "libpthread.so.0" not found
Aborted
Then I have copied those files in the location /home/ssannayila/SAHITHI_ANDROID/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/lib
and it has asked for some more files libc.so.6, libdl.so.2, libgcc_s.so.1, libm.so.6, libncurses.so.5, librt.so.1, libtinfo.so.5, ld-linux-x86-64.so.2. and I have copied same from above and met with the error:
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell "LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/amdCamera3streamOps_unittest"
WARNING: linker: /data/local/tmp/libpthread.so.0: unsupported flags DT_FLAGS_1=0x28
WARNING: linker: /data/local/tmp/libpthread.so.0: unsupported flags DT_FLAGS_1=0x28
CANNOT LINK EXECUTABLE "/data/local/tmp/amdCamera3streamOps_unittest": unknown reloc type 18 @ 0x759c3bced830 (60)
Aborted
I found that the error came because I used host files.
What should I do to resolve this error? Will NDK build helps? If yes please suggest ways to use it on this android_x86_64.raven platform.
Where I went wrong? Why these host libraries are required to runt this test?
Please help me, I have wasted almost 3 days looking for it.
linux shell ubuntu-14.04 android-x86 adb
New contributor
add a comment |
My Android platform specifications:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=android_x86_raven
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_CPU_VARIANT=
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N2G48H
OUT_DIR=out
------***********************-----------------
My unit-test Android.mk file is below and I build it using Ninja-Kati:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := amdCamera3streamOps_unittest
LOCAL_C_INCLUDES +=
system/media/camera/include
device/amd/raven/camera/include
ndk/sources/third_party/googletest/googletest/include
LOCAL_SRC_FILES :=
TestAmdCamera3StreamOperations.cpp
raven/camera/amdCamera3Factory.cpp
raven/camera/amdCamera3Hal.cpp
raven/camera/amdCamera3Info.cpp
raven/camera/amdCamera3Hwi.cpp
raven/camera/amdCamera3Queue.cpp
raven/camera/amdCamera3ArbitrationEngine.cpp
raven/camera/amdCamera3DriverInterface.cpp
raven/camera/amdCamera3ResultThread.cpp
raven/camera/amdCamera3StreamOperations.cpp
raven/camera/amdCamera3Gralloc.cpp
LOCAL_SHARED_LIBRARIES :=
libcamera_client
liblog
libhardware
libutils
libcutils
libdl
libsync
libcamera_metadata
libgnustl_shared
libgoogletest_shared
libc
libgoogletest_main_shared
include $(BUILD_EXECUTABLE)
$(call import-module,third_party/googletest)
I have run test as mentioned below:
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell
raven:/ $ cp system/bin/amdCamera3streamOps_unittest data/local/tmp
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell chmod 777 /data/local/tmp/amdCamera3streamOps_unittest
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell "LD_LIBRARY_PATH=/data/local/tmp:/system/lib64 /data/local/tmp/amdCamera3streamOps_unittest"
CANNOT LINK EXECUTABLE "/data/local/tmp/amdCamera3streamOps_unittest": library "libpthread.so.0" not found
Aborted
Then I have copied those files in the location /home/ssannayila/SAHITHI_ANDROID/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/lib
and it has asked for some more files libc.so.6, libdl.so.2, libgcc_s.so.1, libm.so.6, libncurses.so.5, librt.so.1, libtinfo.so.5, ld-linux-x86-64.so.2. and I have copied same from above and met with the error:
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell "LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/amdCamera3streamOps_unittest"
WARNING: linker: /data/local/tmp/libpthread.so.0: unsupported flags DT_FLAGS_1=0x28
WARNING: linker: /data/local/tmp/libpthread.so.0: unsupported flags DT_FLAGS_1=0x28
CANNOT LINK EXECUTABLE "/data/local/tmp/amdCamera3streamOps_unittest": unknown reloc type 18 @ 0x759c3bced830 (60)
Aborted
I found that the error came because I used host files.
What should I do to resolve this error? Will NDK build helps? If yes please suggest ways to use it on this android_x86_64.raven platform.
Where I went wrong? Why these host libraries are required to runt this test?
Please help me, I have wasted almost 3 days looking for it.
linux shell ubuntu-14.04 android-x86 adb
New contributor
add a comment |
My Android platform specifications:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=android_x86_raven
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_CPU_VARIANT=
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N2G48H
OUT_DIR=out
------***********************-----------------
My unit-test Android.mk file is below and I build it using Ninja-Kati:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := amdCamera3streamOps_unittest
LOCAL_C_INCLUDES +=
system/media/camera/include
device/amd/raven/camera/include
ndk/sources/third_party/googletest/googletest/include
LOCAL_SRC_FILES :=
TestAmdCamera3StreamOperations.cpp
raven/camera/amdCamera3Factory.cpp
raven/camera/amdCamera3Hal.cpp
raven/camera/amdCamera3Info.cpp
raven/camera/amdCamera3Hwi.cpp
raven/camera/amdCamera3Queue.cpp
raven/camera/amdCamera3ArbitrationEngine.cpp
raven/camera/amdCamera3DriverInterface.cpp
raven/camera/amdCamera3ResultThread.cpp
raven/camera/amdCamera3StreamOperations.cpp
raven/camera/amdCamera3Gralloc.cpp
LOCAL_SHARED_LIBRARIES :=
libcamera_client
liblog
libhardware
libutils
libcutils
libdl
libsync
libcamera_metadata
libgnustl_shared
libgoogletest_shared
libc
libgoogletest_main_shared
include $(BUILD_EXECUTABLE)
$(call import-module,third_party/googletest)
I have run test as mentioned below:
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell
raven:/ $ cp system/bin/amdCamera3streamOps_unittest data/local/tmp
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell chmod 777 /data/local/tmp/amdCamera3streamOps_unittest
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell "LD_LIBRARY_PATH=/data/local/tmp:/system/lib64 /data/local/tmp/amdCamera3streamOps_unittest"
CANNOT LINK EXECUTABLE "/data/local/tmp/amdCamera3streamOps_unittest": library "libpthread.so.0" not found
Aborted
Then I have copied those files in the location /home/ssannayila/SAHITHI_ANDROID/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/lib
and it has asked for some more files libc.so.6, libdl.so.2, libgcc_s.so.1, libm.so.6, libncurses.so.5, librt.so.1, libtinfo.so.5, ld-linux-x86-64.so.2. and I have copied same from above and met with the error:
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell "LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/amdCamera3streamOps_unittest"
WARNING: linker: /data/local/tmp/libpthread.so.0: unsupported flags DT_FLAGS_1=0x28
WARNING: linker: /data/local/tmp/libpthread.so.0: unsupported flags DT_FLAGS_1=0x28
CANNOT LINK EXECUTABLE "/data/local/tmp/amdCamera3streamOps_unittest": unknown reloc type 18 @ 0x759c3bced830 (60)
Aborted
I found that the error came because I used host files.
What should I do to resolve this error? Will NDK build helps? If yes please suggest ways to use it on this android_x86_64.raven platform.
Where I went wrong? Why these host libraries are required to runt this test?
Please help me, I have wasted almost 3 days looking for it.
linux shell ubuntu-14.04 android-x86 adb
New contributor
My Android platform specifications:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=android_x86_raven
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_CPU_VARIANT=
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N2G48H
OUT_DIR=out
------***********************-----------------
My unit-test Android.mk file is below and I build it using Ninja-Kati:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := amdCamera3streamOps_unittest
LOCAL_C_INCLUDES +=
system/media/camera/include
device/amd/raven/camera/include
ndk/sources/third_party/googletest/googletest/include
LOCAL_SRC_FILES :=
TestAmdCamera3StreamOperations.cpp
raven/camera/amdCamera3Factory.cpp
raven/camera/amdCamera3Hal.cpp
raven/camera/amdCamera3Info.cpp
raven/camera/amdCamera3Hwi.cpp
raven/camera/amdCamera3Queue.cpp
raven/camera/amdCamera3ArbitrationEngine.cpp
raven/camera/amdCamera3DriverInterface.cpp
raven/camera/amdCamera3ResultThread.cpp
raven/camera/amdCamera3StreamOperations.cpp
raven/camera/amdCamera3Gralloc.cpp
LOCAL_SHARED_LIBRARIES :=
libcamera_client
liblog
libhardware
libutils
libcutils
libdl
libsync
libcamera_metadata
libgnustl_shared
libgoogletest_shared
libc
libgoogletest_main_shared
include $(BUILD_EXECUTABLE)
$(call import-module,third_party/googletest)
I have run test as mentioned below:
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell
raven:/ $ cp system/bin/amdCamera3streamOps_unittest data/local/tmp
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell chmod 777 /data/local/tmp/amdCamera3streamOps_unittest
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell "LD_LIBRARY_PATH=/data/local/tmp:/system/lib64 /data/local/tmp/amdCamera3streamOps_unittest"
CANNOT LINK EXECUTABLE "/data/local/tmp/amdCamera3streamOps_unittest": library "libpthread.so.0" not found
Aborted
Then I have copied those files in the location /home/ssannayila/SAHITHI_ANDROID/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/lib
and it has asked for some more files libc.so.6, libdl.so.2, libgcc_s.so.1, libm.so.6, libncurses.so.5, librt.so.1, libtinfo.so.5, ld-linux-x86-64.so.2. and I have copied same from above and met with the error:
ssannayila@HYSSANNAYILA:~/SAHITHI_ANDROID$ adb shell "LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/amdCamera3streamOps_unittest"
WARNING: linker: /data/local/tmp/libpthread.so.0: unsupported flags DT_FLAGS_1=0x28
WARNING: linker: /data/local/tmp/libpthread.so.0: unsupported flags DT_FLAGS_1=0x28
CANNOT LINK EXECUTABLE "/data/local/tmp/amdCamera3streamOps_unittest": unknown reloc type 18 @ 0x759c3bced830 (60)
Aborted
I found that the error came because I used host files.
What should I do to resolve this error? Will NDK build helps? If yes please suggest ways to use it on this android_x86_64.raven platform.
Where I went wrong? Why these host libraries are required to runt this test?
Please help me, I have wasted almost 3 days looking for it.
linux shell ubuntu-14.04 android-x86 adb
linux shell ubuntu-14.04 android-x86 adb
New contributor
New contributor
edited yesterday
Nisse Engström
22337
22337
New contributor
asked yesterday
Sannayila SahithiSannayila Sahithi
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sannayila Sahithi is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429563%2funable-to-run-unittest-on-camera-hal-using-google-test-framework-on-android-x86%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sannayila Sahithi is a new contributor. Be nice, and check out our Code of Conduct.
Sannayila Sahithi is a new contributor. Be nice, and check out our Code of Conduct.
Sannayila Sahithi is a new contributor. Be nice, and check out our Code of Conduct.
Sannayila Sahithi is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429563%2funable-to-run-unittest-on-camera-hal-using-google-test-framework-on-android-x86%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown