Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   Building Android on a MBP (need help with an error) (http://www.mac-forums.com/forums/os-x-development-darwin/269017-building-android-mbp-need-help-error.html)

Schoat333 03-08-2012 11:02 PM

Building Android on a MBP (need help with an error)
 
Hey guys, I know Android is probably a bad word here, but I was hoping you could help me with a problem I'm having.

I followed the android dev site tutorial for setting up my build environment in OSX lion, and it seemed to be ok. I could build apks from source code. The problem I'm having is when I try to compile the entire package for my galaxy nexus. I get this.

PHP Code:

make: *** [out/host/darwin-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile.oError 1
make
: *** Waiting for unfinished jobs....
1 warning generated

Not sure why it could be, but I get it when trying to build from AOSP source, and another rom developers source. I'm new to mac, but have experience with linux. Just can figure this out.

Thanks in advance for any help.

Schoat333 03-13-2012 07:51 AM

I found the solution to my problem. OSX lion can not build the emulator for Android.

I found this fix on the CyanogenMod wiki.

Quote:

Mac OS X Lion will fail to compile QEMU (Emulator) codes. You do the following to disable building QEMU components. cd /Volumes/CyanogenModWorkspace/android/system/ (or Whatever directory your external folder is in for your build)
vi external/qemu/Android.mk
You will need to append # at the start of the line to every lines on that file. Press i to insert and Esc + :wq to save and quit vi.
You can also just open the file with a text editor and do the same, if you have your finder set to show hidden files.

With this fix, I was able to compile a custom build of Android 4.0.3.

abhishektalwar1 08-07-2013 04:03 PM

Still getting the error
 
Hey Schoat333

I have mac OS 10.7.5 and Xcode 4.6 .
I did comment the Android.mk as you mentioned in your comment but i am still facing the issue . Can you tell me what else can i do to debug in terminal that what is missing
Apparently it does not through any error except :-
make: *** [out/host/darwin-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile.o] Error 1


All times are GMT -4. The time now is 02:46 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.