![]() |
Solved [Android] - Error 2 building on Mac OS X - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184) +---- Thread: Solved [Android] - Error 2 building on Mac OS X (/showthread.php?tid=215588) Pages:
1
2
|
[Android] - Error 2 building on Mac OS X - RBWare - 2015-01-19 I've been trying to get XBMC/Kodi building for a while now, and I finally got past the issue with 'specify SDK directory' or whatever, and the actual build starts after I use the ./bootstrap and ./configure (with parameters), but after several minutes of building, it fails with Error 2. I've also included the config log on pastebin Here's my ./configure setup Code: sudo ./configure --with-tarballs=/opt/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=/Users/ryan/Development/Android/sdk --with-ndk=/Users/ryan/Development/Android/Libraries/android-ndk-r9d --with-toolchain=/opt/arm-linux-androideabi-4.8-vanilla/android-14 --prefix=/opt/xbmc-depends After that I run the Code: sudo make -j 20 Here's the error Code: cp libcrypto.pc /opt/xbmc-depends/arm-linux-androideabi-android-14/lib/pkgconfig Here's the pastebin to my config.log Pastebin RE: Error2 building ARM (Android) on Mac OS X - Koying - 2015-01-20 Don't do the - j 20, the actual error will be more obvious. Also why sudo'ing? You don't need root to build. RE: Error2 building ARM (Android) on Mac OS X - Memphiz - 2015-01-20 sudo will poison your build root ... do it all again from scratch. Also why do you open yet another thread ... there are already 2 which are handling building for android on osx - yet a third one for the same thing? RE: Error2 building ARM (Android) on Mac OS X - RBWare - 2015-01-22 sudo-ing because local user doesn't have r/w for /opt/. I can change that path I guess, but this just seemed to make it easier. I opened a new thread because it was a different error than they had in the other threads. RE: Error2 building ARM (Android) on Mac OS X - RBWare - 2015-01-22 Alright, I cleared everything, created a brand new clone of xbmc on my local machine, followed every step to the letter, and it still won't build. Code: ./configure --with-tarballs=/Users/ryan/Development/Android/ndk/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=/Users/ryan/Development/Android/sdk --with-ndk=/Users/ryan/Development/Android/Libraries/android-ndk-r9d --with-toolchain=/Users/ryan/Development/Android/ndk/arm-linux-androideabi-4.8-vanilla/android-14 --prefix=/Users/ryan/Development/Android/ndk/xbmc-depends Error Code: checking whether make sets $(MAKE)... yes Config.log My config.log ends with exit 0 like there were no problems, however, if I try to run 'make' after running that previous config line, it builds for about 5 minutes, then gives the same Error 77 in make. [Edit] I've now managed to fix this error (I needed to run "sudo xcodebuild -license" and agree to the licensing information). However, now when I run it, I get a fresh set of errors. It's almost like the output is seeing my system as a Linux box, rather than OS X, based on the headers that it can't seem to find. Code: XBTFWriter.cpp:29:10: fatal error: 'malloc.h' file not found The first thing that it cannot find, is "malloc.h". However, in OS X it's located in "/usr/include/malloc/malloc.h", rather than "/usr/include/malloc.h". I copied the malloc header file into /usr/include, but then I end up with yet another issue. Code: Packer.o TexturePacker.cpp &&\ RE: Error2 building ARM (Android) on Mac OS X - Memphiz - 2015-01-23 Are you using the 64bit ndk for darwin by any chance? Please try again using this one: https://dl.google.com/android/ndk/android-ndk-r9-darwin-x86.tar.bz2 (64bit ndk will not work because of a damned typo in the NDK_VER define). RE: Error 2 building on Mac OS X - RBWare - 2015-01-23 It doesn't look like that was the issue... still seeing this: Code: XBTFWriter.cpp:29:10: fatal error: 'malloc.h' file not found Also, the URL for the link you posted needs to include "-x86" https://dl.google.com/android/ndk/android-ndk-r9-darwin-x86.tar.bz2 Building off of the latest master (the direct one, not a fork), OS X 10.10, rMBP 16GB ram, more than 100GB free space, etc. etc. RE: Error 2 building on Mac OS X - Memphiz - 2015-01-23 ok ... give me a bit ... i see the issue ... texturepacker and others are the issue ... RE: Error 2 building on Mac OS X - Memphiz - 2015-01-23 holy crap that toolchain is broken too ... google is to stupid to define the NDK_VER the same on all platforms *grrrrr* Error 2 building on Mac OS X - Memphiz - 2015-01-23 https://github.com/Memphiz/xbmc/commits/fixnative wip - still some hard nuts to crack here but this should get you going near to the end ... (i know this doesn't help you at all). Won't have time to work on it over the weekend... RE: Error 2 building on Mac OS X - RBWare - 2015-01-23 (2015-01-23, 03:42)Memphiz Wrote: https://github.com/Memphiz/xbmc/commits/fixnative That's okay! I appreciate you looking into this as much as you have already. RE: Error 2 building on Mac OS X - Memphiz - 2015-01-25 @RBWare you could do me a favour and try it out from my tree: https://github.com/Memphiz/xbmc/commits/fixnative before i do a pull request to mainline. Please follow the (adapted) docs/README.android as good as possible - this should work then. I think the trickiest part is to ensure to have java 1.6 running (you figure that one out with google pretty quick) - and that you ensure to do all the stuff inside of the case sensitive dmg image. Please report back. RE: Error 2 building on Mac OS X - RBWare - 2015-01-26 Started fresh using your updated docs/README.android, still seeing the same build errors with malloc.h. Here's the pastebin of the last part of the output before the "make" command failed. http://pastebin.com/HJV3sPic Here's the configure that I used. Code: ./configure --with-tarballs=/Volumes/android-dev/xbmc-depends/tarballs --host=arm-linux-androideabi --with-sdk-path=/Volumes/android-dev/sdk --with-ndk=/Volumes/android-dev/android-ndk-r10d --with-toolchain=/Volumes/android-dev/android-toolchain/android-14 --prefix=/Volumes/android-dev/android/xbmc-depends RE: Error 2 building on Mac OS X - Memphiz - 2015-01-26 I can see that you are not using my branch - its not enough to follow the readme - there are 3 commits in my branch in regard to adding NATIVE_ARCH_DEFINES - i can see that those are not in effect on your output because else it would never define -DTARGET_ANDROID for TexturePacker ... In a nutshell (just in case you are not aware) Code: cd <your xbmc source tree> After that start do it again from point 5.1 (your configure line looks good) RE: Error 2 building on Mac OS X - RBWare - 2015-01-26 Yeah I just realized that about 10 minutes ago... I messed that up pretty bad, my fault. The dependencies just built out correctly no problem. I'm having it build out the rest of the apk right now. I'll update this post with success/failure. [Edit] Code: mkdir -p xbmc/obj 100% functional on OS X (10.10), based on your fixnative branch. Thank you very much! |