Compiling LibUSB For Android

Aug 12, 2011

I'm writing an application that requires a custom USB driver, and i need LibUSB to be able to do it. I downloaded the following:

android.git.kernel.org Git - platform/external/libusb.git/summary

My problem is that when i try to cross compile using ./configure this lib, i get the error: unsupported operating system. I've been trying to configure like this:

Code:
./configure --host=arm-eabi CC=arm-linux-androideabi-gcc CPPFLAGS="-I$NDK_ROOT/platforms/android-3/arch-arm/usr/include/" CFLAGS="-nostdlib" LDFLAGS="-Wl,-rpath-link=$NDK_ROOT/platforms/android-3/arch-arm/usr/lib/ -L$NDK_ROOT/platforms/android-3/arch-arm/usr/lib/" LIBS="-lc"

The main aim is to be able to use the library with the Android NDK.

Compiling LibUSB for Android


General :: Compiling Android For ZT-282

Sep 2, 2012

If I have the source code compatible with the Zenithink ZT282 but its based on Android 2.3.4 can I use it to compile cm7.2 2.3.7 with the cm7 source.

View 1 Replies View Related

Android :: Adding New Src Folder For Compiling

Apr 9, 2009

I want to add a new src folder to android project,but there are so many file "android.mk",so are my src folder.I have no ideas how these make files are connected with each other while compiling, how could I do ?

View 2 Replies View Related

Android :: Compiling Platform On Desktop?

Feb 25, 2010

I'm compiling the android platform on my desktop. But, i have a problem:

============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=AOSP
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
============================================
/bin/bash: bison: command not found
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version of java.

Your version is: java version "1.6.0".

The correct version is: 1.5. Please follow the machine setup

instructions at: http://source.android.com/download
*********************************
build/core/main.mk:111: ** stop. Stop.

I don't know exactly how to compile it. my environment is Centos5. If it can't use java 1.6, how to be parallel between java1.6 and java1.5?

View 4 Replies View Related

Android :: Getting Error While Compiling Droid Pdf / Fix It?

Feb 26, 2010

I am using droid pdf reader in ndk. I am unable to generate libpdfreader.so file. while compiling i am getting following errors. code...

View 2 Replies View Related

Android :: Eclipse Slow When Compiling Resources

Jul 21, 2010

The last couple of weeks, my app is very slow compiling changes when the resources are modified in the project. Doesn't matter if it's strings or layout. Sometimes it takes as long as 30 seconds for the changes to apply. Compiling just the .java files are as fast as ever.

I used to have slowdowns after I having Eclipse open for the whole day, but restarting Eclipse always fixed that. Not this time. All my Eclipse and Android software is up-to-date. Has anyone experience this or have any suggestion as to what could be causing this and a fix? It's really cutting into my productivity.

View 2 Replies View Related

Android :: Compiling And Obfuscating By Command Line

Jul 30, 2010

I am going mad trying obfuscating my projects on Netbeans and it's not reasonable at the moment for me to switch to Eclipse I need a command line script that let me build and obfuscate my APK. Is there some example script, or some tutorial that could help me in this "intent"?

View 24 Replies View Related

Android :: Compiling Project In Eclipse 3.4.2 - Cannot Be Built

Sep 3, 2010

While compiling android project in eclipse 3.4.2, am getting The project cannot be built until the build path errors are resolved. I got a temporary solution from the blog http://www.scottdstrader.com/blog/ether_archives/000921.html

The resolution was to force a resave of the selected projects (and their .classpath files):
Open the project properties
Select Java Build Path > Libraries
Add a new, arbitrary library (to be deleted later) > OK
Wait for the workspace to refresh (or force a refresh of the project)
The error(s) will go away
Remove the dummy library

The only other references I could find were to make minor alterations of contents of the .classpath file.

View 1 Replies View Related

Android :: Compiling App With Full Source Code

Apr 29, 2009

I want to compile my application with full android source code. Its because If I compile it alone then I need different library with it and so .apk size will increase. So please tell me in which make file or configuration file should I do the change. I have placed my application inside ..mydroid/package/app . My application is developed in Eclipse and is compilable in eclipse.If there is other way by which .apk size can kept smaller please elaborate. Your help is highly appreciated.

View 2 Replies View Related

General :: Compiling Android Source Code

Mar 8, 2014

I'm compiling android from source. After compilation I have following output:

See attachment for output message. (could not post it here)

Did it compile? I suspect not. So, Why?

View 1 Replies View Related

Android :: Browser Plugin Development - How To Install After Compiling?

Jun 23, 2009

Are there any android focused tutorials for developing a plugin for the browser? I can find examples for webkit plugins but I want to try developing a plugin that will access resources on the phone so there is more to it than generic webkit requirements. Also, after compiling a plugin how can I install it into the browser on my phone?

View 2 Replies View Related

Android :: Compiling Code On Server / W/o Eclipse & With Script

Sep 30, 2009

Could someone help me? I want to compile a android code on a server with a script, so without eclipse. Could you give me some explanations to do this?

View 3 Replies View Related

Android :: Remove Compiling Warning The Mangling Of Va_list Changed In GCC 4.4

Jul 19, 2010

When I build Android source files, the compling warning "the mangling of 'va_list' has changed in GCC 4.4" occurs many time. It is really annoying. Does anyone know how to solve this issue?

View 2 Replies View Related

Android :: Internal Compiler Error When Compiling Native Code

Aug 9, 2010

Currently I am trying to compile native code for Android. The code is from the OpenCV port for Android. I pasted all the code correctly in my project and edited my make files accordingly. When I set android:debuggable to false everything works fine and I get my native library. When I try while android:debuggable is set to true I get an error.

Here is a part of the log:

CODE:....................

From what I have found on the internet this is caused by the optimization level of the compilation. As long as the code isn't compiled so that is is debuggable afterwards everything should be fine.

Now apparently it is possible to avoid this by setting APP-OPTIM := release in the Application.mk or adding -O2 to LOCAL_CFLAGS. I have tried both and still I get this error.

Right now I don't really care that much about debugging my native code, but I would like to have basic debugging enabled. And I don't want to keep switching android:debuggable in my manifest every time I want to compile. I'm not even sure if it is okay at all if I just set android:debuggable to false pre compiling and to true post compiling, but I am sure I will forget it every second run.

View 1 Replies View Related

General :: What Does Compiling Exactly Mean

Mar 26, 2013

i came across a word related to android "compiling". What does compiling exactly mean?

View 9 Replies View Related

Android : Skip Validation Of Single File In Eclipse / Need To Custom Compiling?

Oct 15, 2010

I've followed the steps given in the Android Developer Blog to generate a build.xml for building releases for an Android Application. I need to do a custom compiling so I have overwritten the target compile of the ant_rules_r3.xml as it is said in the generated build.xml.

<target name="compile" depends="-resource-src, -aidl, -pre-compile" ...

The script works fine and generates the apk, but the problem is that Eclipse shows an error because it cannot find targets -resource-src, -aidl and -pre-compile (which are loaded when executing the script but are not really present on the build.xml). As there are these errors I cannot work with the project in Eclipse.

How can I skip the validation of this single file in Eclipse?

View 2 Replies View Related

General :: CM9 Compiling Errors

Jun 6, 2012

I'm trying to compile CM9 for my Galaxy Mini, but I always get these errors:

Code:
frameworks/base/core/java/android/view/inputmethod/InputMethodManager.java:1485: cannot find symbol
symbol : variable config_symKeyShowsImePicker
location: class com.android.internal.R.bool
if (context.getResources().getBoolean(com.android.internal.R.bool.config_symKeyShowsImePicker)) {

[Code] .......

View 2 Replies View Related

General :: Cannot Find Symbol When Compiling CM 11.0

May 31, 2014

Cannot find symbol when compiling cm 11.0 on debian.

Code:
packages/apps/Settings/src/com/android/settings/hardware/DisplayColor.java:109: cannot find symbol
symbol : method getDefValue()
location: class org.cyanogenmod.hardware.DisplayColorCalibration
int defaultValue = DisplayColorCalibration.getDefValue();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

View 3 Replies View Related

General :: Compiling Framework And SystemUI

Apr 18, 2014

I'm very familiar with using APKTool and Compiling/Decompiling Apps. I've run into a problem with the framework-res and SystemUI apps.

Current ROM/App info:
Samsung Galaxy Tab 3 8.0
Android 4.2.2 (Samsung Touchwiz)
Framework Installed in APKTool: framework-res.apk, twframework-res.apk and SystemUI.apk
APKTool Version: 2.0 (I've tried almost every version of APKTool and AAPT)
Java Version: 1.7 (as required by APKTool 2.0)
OS: Windows and Linux (same results on each OS)

The framework and SystemUI apps decompile fine. No errors and all the XML/Smali files are perfect. The problem is that I can not recompile either of them. Each time I attempt, I get the same error regarding the Android Manifest file....

Code:

brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: c
rut_util_Jar_8264547236691306049.tmp, p, --forced-package-id, 127, --min-sdk-version, 17, --
me, 4.2.2-T310UEUAMH2, -F, C:UsersAdamAppDataLocalTempAPKTOOL3953045592385201216.tmp, -0
:UsersAdamDesktopProject_Tab3_4.15OriginalFilesSystemUI
es, -M, C:UsersAdamDesktopP
xml]

[code]...

I know some dev's have been able to sucessfully compile these apps .

FYI - I have even tried compiling the stock apps without any mods and I get the same errors.

View 9 Replies View Related

General :: Smali Changes Not Compiling - Transparent Status Bar

Aug 25, 2012

I'm trying to get my status bar transparent following this guide [URL] .....

I'm using wanams apk manager, I make the changes to the statusbar.smali file and the xml files, I compile and it doesn't work on my phone, so I decompiled the modified apk, and the changes to the xml files went through but the smali files go back to the originals.

when compiling I use yes on Is this a system apk, yes to copy additional files, go to keep, delete resources.arsc and finish.

It happens with any smali file when I compile, I use notepad++ to edit the files.

So what I ended up doing since my xml files were saving but my smali files weren't, I didn't realize that when compiling it asks to copy over files and the classes.dex file was overwriting all my changes to the smali files, so I compiled and when it asks to delete files from the keep folder I took the classes.dex from that folder, decompiled it seperatly made the changes to the smali files there. I still deleted my resources.arsc, then I finished making the apk opened the apk and replaced the classes.dex there with my modified one. pushed to my phone and everything works perfectly.

View 3 Replies View Related

General :: Compiling Kernel With Governor - Getting Errors

May 2, 2014

I am trying to compile a kernel for my device(kyleprods or GT-S7582 or Galaxy S duos 2) because I havent found any custom kernel out here. Im compiling from source. I tried compiling WITHOUT any tweaks or such, just plain compile after downloading the source, and it compiled successfully. I tried adding smartassv2 but I got these errors after running "make -j1" twice.

CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
Creating rdb link for Hawaii
CALL scripts/checksyscalls.sh

[Code] .....

cc1: some warnings being treated as errors
make[2]: *** [drivers/cpufreq/cpufreq_smartass2.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2

View 3 Replies View Related

General :: Compiling XML Results In Gibberish (still Works)

Oct 16, 2012

I'm having bit of a strange issue. I've been editing a Mms.apk by decompling it with apktool and then chaning png, editing xml files ( I Use dreamwaver cs6, but have tried with notepad++ too) and the likes.

But when I then recompile the apk something strange happens to the data stored in the xml files, like it gets encrypted or messed up somehow. They still work tho since Ive pushed the Mms.apk to my system/app and the changes I've made are clearly shown+working.

But it makes it difficult incase I want to redo some changes in the XML files by decompiling the new Mms.apk. I've uploaded one xml file with the changes ive made, and then the same after it has been recompiled to my dropbox.

[URL] ......

View 1 Replies View Related

General :: Linker Error When Compiling CM 10.2 For LG E970

Nov 20, 2013

I get this weird linker error when trying to compile CyanogenMod 10.2 for the LG Optimus G (e970 [AT&T]):

Code:
make[1]: Leaving directory `/home/greg/android/system/kernel/lge/gproj'
mdpath=`find /home/greg/android/system/out/target/product/e970/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`;
for i in $ko; do /home/greg/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-strip --strip-unneeded $i; mv $i /home/greg/android/system/out/target/product/e970/system/lib/modules/; done; fi

[URL] .....

I can't figure out which library or object file I'm missing that would resolve this reference. Btw, I've tried building it a couple ways: typical "brunch", and lunch / mka. Both produce the same error.

View 1 Replies View Related

General :: Errors Compiling MIUI SystemUi?

Jul 22, 2013

I installed android SDK and the apis

I use APK Tool

Galaxy Nexus on MIUI 3.7.12

I was trying to enable carrier logo

When decompiling, i install the 2 frameworks (framework-res.apk and framework-miui-res.apk)

View 1 Replies View Related

General :: Compiling Realtek Rtl8188ctv WiFi Module

May 20, 2012

I have a device labelled Superpad VI. everything was okay but when i tried firmware update, its wifi stopped working and started giving "error" when i try to turn it on. Now I have just figured out that the original superpad VI has ralink wifi chipset whereas this device has realtek rtl8188cus chipset. so when i try to install superpad VI firmware, everything else works but wifi doesn't. Now how do I need to install the drivers for wifi? I have found the Linux/Android drivers from Realtek website but they need to be compiled. I know nothing about compiling/programming and Linux itself.

The un-compiled drivers can be found here (under rtl8188cus) [URL] ....

View 4 Replies View Related

General :: Error While Compiling CM11 For Galaxy Fame

Apr 11, 2014

Downloaded all the sources of cyanogenmod for 4 and a half days, until then all right, when I tried the commands "brunch" and "breakfast" had some errors telling me you wouldn't find the repositories to the Galaxy Fame codenamed nevis ...

[URL] .....

View 1 Replies View Related

General :: New Rom Builder - How To Include Trinity Kernel When Compiling

Nov 3, 2012

I've started compiling AOKP roms for Toroplus and Maguro recently and I'd like to start including Trinity Kernel in my Rom.

I know it can be flashed after the rom but I'd like to have it come installed with it.

View 1 Replies View Related

General :: Compiling Power Control Widget (from Settings App)?

Apr 8, 2013

I've been trying to compile the original code for the power control widget from the "settings" app, but it won't because of the missing / hidden / internal classes,I remember with a modified Settings apk with more or modified buttons in the widget.

View 1 Replies View Related

Android :: Compiling Source Code Or Importing Private Class File Into Android.jar

Feb 16, 2010

Some classes are NOT PUBLIC like android.os.ServiceManager, android.view.IWindowManager, etc, they are implemented in the mobile devices, but not present in the SDK .jar. This is because these classes are private APIs . now please tell me is there any way like compiling source code or importing private class file into android.jar so that i can use this private APIs.

View 3 Replies View Related

Android :: Compiling Demo / Final Versions Of Android Application

Nov 1, 2010

Right now I've finished an application that I want to distribute on Android Market. It will have a payed version and a free version with some limited features. While developing it, I was doing obviously just the main project of fully featured release. And now after finished I've included a "boolean" DEMO_VERSION=true that restrict those features. My question is if it's possible to generate both apk from the same project? Or should I create new project with the same source but changing the Java package to tell android market that they're two different applications.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved