adb install --abi not working in linux emulator - adb

Wanna run androidTest.apk in x86 and exec adb install --abi x86 androidTest.apk. And started a x86_64 emulator in linux, exec the cmd above, there is output: can't find 'x86' to install. I'm sure the APK have x86 so files.
Change x86 to armeabi-v7a also get can't find 'armeabi-v7a' to install

Update: Used another way avoid this problem.
build.gradle make APK only x86 abi:
android {
...
defaultConfig{
ndk {
abiFilters "x86"
}
}
}

Related

netbeans8.2 + msys2_64 + mingw64 + cygwin64 + C project build errors

On new HP tower G4 workstation with Xeon E2224G processor, Windows 10 pro for wokstations OS build 19042.746.
install netbeans 8.2
Install msys2_64 and mingw64
set path e:\msys64\usr\bin; e:\msys64\mingw64\bin; %PATH%
Verify that make,sh,bash,rm and more are in e:\msys64\usr\bin
configure netbeans for C project and try to clean and build and get this error:
'No shell found. Cannot proceed. Please install either CYGWIN or Msys.'
OK then, install cygwin.
Now get this error:
'1 [main] rm (7980) E:\cygwin64\bin\rm.exe: *** fatal error - cygheap base mismatch detected - 0x180345408/0x180347408.'
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
cygcheck -c gives
base-cygwin 3.8-1 OK
base-files 4.3-2 OK
cygwin 3.1.7-1 OK
I have searched and there is only one cygwin1.dll
frank#FRANK_NEW ~
$ which cygwin1.dll
/usr/bin/cygwin1.dll
I have restarted the machine several times to no avail.
I have been using netbeans and mingw then msys/mingw for about 10 years and
have the combination working on other desktop and laptop machines, but have
not had this problem.
Thanks for the replies above. The problem here is the different ways that PATH is handled by Windows 10 Pro and Windows 10 Pro for Workstations.
For Win10 Pro
define a user variable 'MSYS_HOME' give it a value of 'E:\msys64\usr\bin'
now put that in the system path i.e.
some system path;%MSYS_HOME%;more system path
Netbeans will find the tools rm, sh, make, etc and complete the clean and build of the project.
for Win10 Pro for Worksations
the above did not work. Netbeans would not build the project and give the error
'No shell found. Cannot proceed. Please install either CYGWIN or Msys.'
the path has to be set in the system path directly i.e.
some system path;E:\msys64\usr\bin;more system path
this made Netbeans work correctly to perform clean and build.

How do I package up go code as an arm RPM?

I've got a go project that I'm building on OSX. I've compiled it for arm linux by using docker to run the linux compiler and GOARCH=arm64 to generate arm code. now I want to package it up as an RPM.
The problem is that I can't figure out how to get rpmbuild to give me an arm package. I've tried setting --target arm, --target arm64, --target arm-test-linux, and --target arm64-test-linux
All produce the same result,
file project.arm.rpm => project.arm.rpm: RPM v3.0 bin noarch
How do I get it to recognize the architecture instead of producing a noarch rpm?
use the BuildArch option in your spec file:
BuildArch: arm64
rpmbuild -bs project.spec
This will create project.src.rpm. And then:
sudo dnf install qemu-user-static
mock -r fedora-33-aarch64 project.src.rpm
which will use this feature: https://github.com/rpm-software-management/mock/wiki/Feature-forcearch
With the recent version of Mock you do not even need to specify --forcearch as it automatically detected.
If you omit the BuildArch then it will be automatically set using the chroot you use as a parameter for Mock.
BTW here is general guidance about packaging Go as an RPM. https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/

GDB stuck at “Configuring GDB Aborting configuring GDB”

I've installed (OSX Mojave 10.14.6.) Eclipse CDT and GNU MCU Eclipse plugin and finaly GNU Tools for ARM. My goal is to build and debug ARM code using GDB (arm-none-eabi-gdb).
I've created a Hello World project for Arm, which builds ok - but, debugging seems not to work with GDB (that comes with the Arm package). GDB gets stuck:
I have set the proper paths in Eclipse to arm-none-eabi-gdb.
I have signed the arm-none-eabi-gdb (with the same certificate that I used to sign GDB installed via brew into /usr/local/bin/gdb the day before - and it worked!).
I have also tried running Eclipse as root from command line.
Nothing helps.
The message is "Configuring GDB Aborting configuring GDB".
What to do?
Probably what is going on here is that you built to a given target (ARM based) and you're trying to run it (with gdb) on your mac (x86).
You'll need an emulator or QEMU to properly run on your mac or maybe a real board.

Install gcc in 32 bit ARM architecture

I've installed BuildRoot, to set a SoftetherVPN.
Well, my problem is that I necessary need to install GCC, in a 32-bit ARM Architecture, (obviously I've downloaded the 32 bit version).
I looked all over the internet, because of many problems:
My first idea was to install GCC using command sudo apt-get or sudo yum, but I can only find it in Debian Linux (Buildroot kernel, and its toolchain are very reduced).
At this point I tried to cross-compiling GCC but with no results, because it produced in shell output Library errors. And I also tried to paste those missing libraries yet achieve very little.
You could download some GCC cross-compiler. For example, if your PC is running some Debian-like Linux distribution -perhaps Ubuntu- you might install some gcc-7-arm-linux-gnueabi or similar (gcc-7-arm-linux-gnueabihf ...) package.
The SDK for your board is likely to provide some cross-GCC & cross-binutils.
You could build some cross binutils then some GCC cross-compiler from their source code (this is a bit more tricky).
Your cross-compiler would compile (for ARM) on your Linux-running PC, not on your ARM circuit board.

gdb package not appearing in Cygwin setup

I need to write some programs in C, so I've downloaded and installed cygwin and Eclipse Neon cpp.
I've installed the required Cygwin packages and my C programs are compiling and running but I can't debug them because GDB isn't installed.
I get "Error with command: gdb --version" when I try to debug in Eclipse.
I've opened the Cygwin setup again, searched but there's no GDB in the packages (Picture of the installation) list. How can I add the GDB package to the Cygwin setup and install it so that Eclipse can use it?
The difference between my question and the one that is suggested is that I entered the setup but can't find the package.
I'm running Windows 10, Eclipse Neon.1a Release 4.6.1 and Cygwin 2.6.0
Thanks

Resources