yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] sparksco:
That could be it since host GCC is used for some things. If you look in out/host/linux-x86/lib you'll notice some GCC libs like libgccdemangle.so and probably other files I'm not aware of that are connected to the host GCC.

You can install it:

sudo apt-get install gcc-4.7 g++-4.7

Also was curious where you got this link from?

https://groups.google.com/forum/?fromgroups=#!topic/mx-videoplayer/YiD3q_jL0u0

I'm enjoying reading the discussion there :)

Is that what this is all about is helping Paranoid Android figure out how to compile their Roms?
[Nexus 7 Android Development] eug89:
It was the first result when I googled the error I was getting with MXplayer.

Tried this too but MX Player still doesn't work
[Nexus 7 Android Development] TWong1200:
Trying to build for the first time. The instructions show this.

"mkdir -p ~/android/system</pre>"

I'm getting this error: "bash: syntax error near unexpected token `newline'"

Anyone know why? Thanks
[Nexus 7 Android Development] fattire:
mkdir -p ~/android/system

is the command... I don't know why you're seeing the </pre>?
[Nexus 7 Android Development] TWong1200:
Wow, weird. On Ubuntu using Chrome, I see the </pre>. On Chrome on Win7, I don't! Thanks!
[Nexus 7 Android Development] TWong1200:
I'm having the worst luck so far. Was able to repo sync -j16 and took about two hours to finish. At least I think it's finished. I'm stuck in Terminal with "Fetching projects: 100% (353/353), done" but am not getting back to a command prompt to continue with the next step of "cd ~/android/system/vendor/cm". Do I just wait it out?

I used the file browser just to check to see if this directory exists and it does not. All I have is /android/system with one file named 'ync-j16'. Not other folders in it.

Any insight appreciated.

Thanks
[Nexus 7 Android Development] .torrented:
try it again with " repo sync -j16 "

OR

Maybe try it again with " repo sync " (will take much longer)
[Nexus 7 Android Development] TWong1200:
Thanks for the tip. Just tried it and didn't take long at all (because I just synced, I assume). I still get stuck at the same message that 353/353 100% complete but don't get back to a command prompt. Still no other folders in /android/system either.

Any other ideas?

Thanks again!

EDIT: I'm going to reinstall Ubuntu. I'm not using 64bit and noticed that the instructions state to use 64bit.
[Nexus 7 Android Development] .torrented:
Yeah you need 64-bit and as for that message it always says that for me. I recently installed it and mine says the same thing except im on 1.18 and it wants me to upgrade to 1.19.
[Nexus 7 Android Development] TWong1200:
Success so far! Now I'm stuck at the build portion. I'm getting this error.

I've Googled and haven't been able to figure out how to get to this correct version. Any insight?
[Nexus 7 Android Development] apascual89:
Follow directions in this thread : http://xdaforums.com/showthread.php?t=1947412
[Nexus 7 Android Development] .torrented:
mine works fine with Java 1.7
[Nexus 7 Android Development] eug89:
@sparksco

I just noticed I missed to patch android_external_quake with linaro's c++11 patch... don't know if that's the cause of MX Player but as I missed that one I could have missed some other patches...

The problem is that github sometimes doesn't show all the available repositories, that's why I missed that one
[Nexus 7 Android Development] sparksco:
@eug89 You can check all of linaro's patches on their gitweb the same way I do. How am I supposed to know what will/won't work on your builds?

---------- Post added at 07:16 PM ---------- Previous post was at 07:11 PM ----------

Your SIG amuses me since your on the cm thread :silly:
[Nexus 7 Android Development] TWong1200:
Thanks for the link. I followed those instructions but now I'm getting this.

I think it's finally building. So far, so good.
[Nexus 7 Android Development] eug89:
You're not supposed to and I think I haven't asked you that.

Actually, I already cherry-picked some patches from http://android.git.linaro.org/gitweb that I couldn't find on your github.

I'm just going crazy trying to find out what's breaking MX player, this doesn't mean I'm pretending you to solve the issue for me.
[Nexus 7 Android Development] TWong1200:
So I thought I was home-free. Any help with this is appreciated. This is what happens at the end of the 'brunch grouper' command

This has been solved using this found here: http://xdaforums.com/showpost.php?p=31435742&postcount=195

sudo apt-get install libxml2-utils
[Nexus 7 Android Development] .torrented:
Just to double check everything you've done the following (assuming you are on ubuntu 12.04 or higher):

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl

sudo apt-get install libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool

. build/envsetup.sh

lunch

Then Select Grouper by typing in its number.

cd ~/android/system/vendor/cm

./get-prebuilts

cd ~/android/system/device/asus/grouper

./extract-files.sh

Go back to ~/android/system/

. build/envsetup.sh

brunch grouper
[Nexus 7 Android Development] TWong1200:
I didn't do all those steps as some of those were not in the guide http://wiki.cyanogenmod.org/index.php?title=Build_for_grouper

I was able to run all of those commands just fine except the last one again and I'm wondering if that's the reason.

Brunch Grouper

Based on the guidance you've given, am I to run that in /android/system/device/asus/grouper? If so, I'm unable to do so. I get the following error.

No such item in brunch menu. Try 'breakfast'

The guide is having me run it in /android/system/ and is the only place i can run it but still fails.
[Nexus 7 Android Development] .torrented:
Im sorry, you have to go back to android/system/ and then run ". build/envsetup.sh" then "brunch grouper"

and the reason that some of those arent in the wiki is because you have to go to google's site and install the packages this next quote is from the wiki

Which are the first two blocks in my other post

Try doing that and we'll see what it does from there... I gotta run to class and I'll be back in a little bit to see whats going on
[Nexus 7 Android Development] TWong1200:
Sorry for the late reply. I've tried all that and am still receiving this error. I think I will wipe the drive, start over, and see how it goes. If not, I'll just give up! Doing it just for fun. :) Thanks again!
[Nexus 7 Android Development] fattire:
are you capitalizing "Brunch" and "Grouper"?

both should be lowercase.
[Nexus 7 Android Development] davisac:
Thanks for the guide. I'm downloading Ubuntu now. Hope everything goes well.
[Nexus 7 Android Development] EnemyOfGlaDOS:
Finally taking a stab at this.. I mean.. so far so good. Not entirely understanding how to check and make sure I have everything installed correctly or where things should be?.. but I'm taking my time and haven't run into any real errors yet. There was a command with "curl" and I didn't have it installed, I was prompted to install it by using the command "sudo apt-get install curl". After installing I tried the "curl" command again and it worked :o

I think I'm downloading the source code for CyanogenMod and android 4.2.1.. is that what the "repo sync" command does? ..and that will DL the latest source every time?

<sent from my quad-core S3>
[Nexus 7 Android Development] fattire:
Yup. Sounds like you are doing it right... Let us know how it goes...
[Nexus 7 Android Development] davisac:
@ the same point. Waiting for it to download. Good thing tomorrow is Sat I have a feeling I'll be playing all night with this. Part of the fun though.
[Nexus 7 Android Development] EnemyOfGlaDOS:
Cool.. thanks again for this. This is a great starting point for me! :cool:

<sent from my quad-core S3>

**UPDATE** Finally got the source code dowloaded and am getting stuck at "Prepare device specific code".. I've run the first command build/envsetup.sh

but get stuck on the next one "breakfast {{{device}}}" Am I supposed to replace 'device' with device name or code? If so.. is it grouper? lol.. sorry.. I tried to read ahead in the directions but didn't get any answers for this speedbump I'm stuck on..

**UPDATE** I've gone ahead and run the command "breakfast grouper" and it appears to have worked

**UPDATE** Getting stuck on installing Clockworkmod recovery. I've verified that my PC sees my device in fastboot mode by using the command "sudo fastboot devices".. it shows my serial number. But I'm not entirely sure what the next command should be. #5 of this step is: Flash ClockworkMod Recovery onto your device by entering the following command: fastboot flash recovery your_recovery_image.img where the latter part is the name of the file you downloaded.

I've tried looking around the file system and cannot find the CMzip or the recovery img. so I don't know what to type and can't find anything. Not even sure my files and stuff are in the correct directory, meaning where they should be. Everything else seemed to go without a hitch.. a couple times in the terminal it said I needed to install (a couple things, fastboot was one of them) so I just ran the "sudo apt-get install" command and then picked up where I left off. Everything went through.. I did see a couple errors in the terminal feed, but nothing that stopped it. In fact it all was happening fast I had a hard time reading what was erroring. But .. I continued and with the steps including making a "build" (I think ;)) and everything to my knowledge was successful.. I guess lol.

(I apologize for my noobness. I've never used linux or attempted anything like this.) I'm very familiar with the android os and know my way around CWM and rooting/ROM'ing yadda yadda, but I wanted to take the next step so please bare with me! :)
[Nexus 7 Android Development] hallowed.mh:
Just to make sure, did you download the clockworkmod zip separately? It isn't included in the AOSP source, so it won't be in any of the directories in your repo.

EDIT: Here's a link to the CWM thread for N7: http://xdaforums.com/showthread.php?t=2063522

EDITv2: I'm an idiot and didn't remember which thread I was looking at... I've been reading up on building both AOSP and CM. Sorry for my confusion. Obviously CM10 isn't AOSP. However, you can still get clockworkmod from that thread if you need it.
[Nexus 7 Android Development] EnemyOfGlaDOS:
Lol ya know.. I didn't. I was going to but I really didn't want to deviate from the the set of directions in fear of doing something wrong haha..

Cool.. thank you very much. I'm gonna pick back up this morning and see how it goes. Thanks again! :)

Oh.. also.. where is the CM zip that I supposedly built? I cannot find it in my file system? :confused:
[Nexus 7 Android Development] .torrented:
Ok so a few things to check, I was once where you were I had no knowledge of linux except for sudo su and some other simple commands, but tell me if you have done the following:

You are running 64-Bit 12.10 Correct?

CLICK HERE!

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl

sudo apt-get install libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool

. build/envsetup.sh

lunch

Then Select Grouper by typing in its number.

cd ~/android/system/vendor/cm

./get-prebuilts

cd ~/android/system/device/asus/grouper

./extract-files.sh

Go back to ~/android/system/

. build/envsetup.sh

brunch grouper

And after all of this, if it builds correctly, you should have a bunch of folders and files in the "~/android/system/out/product/grouper/" directory

You will see in the terminal it will say at the bottom when/if it finishes, something like running releasetool.... then it will give you and MD5 and cm.zip
[Nexus 7 Android Development] azoller1:
I'm getting a bunch of sync errors does this require 64 bit Ubuntu?
[Nexus 7 Android Development] davisac:
From the wiki:
[Nexus 7 Android Development] azoller1:
Yeah that's what I thought but when I try a VM Ubuntu image it won't boot up Ubuntu with the 64 bit version cause it says my computers kernel isn't supported or something
[Nexus 7 Android Development] EnemyOfGlaDOS:
hi there.. firstly thank you for helping! Looking at the codes or commands you have, I tried to match them up with the instructions and it doesn't look like they are exactly the same. A few match up but not every one. And yeah.. I'm running 64 bit, Ubuntu 12.10

So I thought the build had finished, but I guess not. I didn't see any errors after running "croot" and "brunch grouper" :confused:

Can I get away with running these commands you posted or am I better off starting over?
[Nexus 7 Android Development] davisac:
Helpful tip: If you are running a virtual machine check the USB settings. Mine wasn't set up to connect and I spent about 10 min trying to find my tablet. Just needed to click connect in the VM. [duh]
[Nexus 7 Android Development] .torrented:
Yea you should be ok to stay where you are at. Just go ahead and enter the First four Code Sections, they are from google's site . The WIKI instructions tell you to go get them, just open a terminal and run them, they are essential packages needed. The first one is all one piece so copy and past all of it in.
[Nexus 7 Android Development] EnemyOfGlaDOS:
Alright cool. My internet connection.. For some odd reason wasn't working.. Got held up in terminal for awhile till I figured it out :p

Everything seems to be going through.. We'll see :D

Thank you again for the help!
[Nexus 7 Android Development] davisac:
Question: It's building now but I have Open_Java or such installed. Told me to install Sun Java but then kept building. Should I stop it or is it OK to use?
[Nexus 7 Android Development] .torrented:
Open a terminal. Type in " java -version " and if it spits out something like:

java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

you need it to say java version "1.6.0_xx"

if not you need to install version 6

Java 6 instructions:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
[Nexus 7 Android Development] EnemyOfGlaDOS:
hmm.. after running:

. build/envsetup.sh

I get no such file or directory. I then realized I should be running it from cd ~/android/system. I tried it again and it worked. Proceeded to continue and got stuck on Brunch Grouper.. for a sec. I remember seeing a note that it should be in lowercase so I made that change and it seems to be ...building?
[Nexus 7 Android Development] .torrented:
ok well as long as it keeps spitting out a bunch of stuff that doesnt make sense and doesnt stop just let it go for a while and see if you get a build. It does take a while so you might want to make some popcorn and watch a movie or two haha... with my 8 core cpu at 3.8GHz and 16GB of 1600MHz ram it takes me about 40 minutes to pump out a fresh one...

---------- Post added at 12:29 PM ---------- Previous post was at 12:26 PM ----------

Thanks I didnt realize that when I typed it out in my other post. I made the fix incase anybody else come across it.

I made the changes lol
[Nexus 7 Android Development] EnemyOfGlaDOS:
Yep.. that's the post I remember reading :p

..and yep, its spittin out a bunch if stuff that doesn't make any sense to me.. :D

What's funny is I just built my first PC.. not quite as beefy as your setup but still pretty nice all around. And it would probably build in twice the time as yours ...maaaybe a little longer than yours so not twice as long... but I installed Ubuntu on my HP laptop so.. movie or two it is :D

I really appreciate your help in here. Thank you again!:cool:

<sent from my quad-core S3>
[Nexus 7 Android Development] norcal61:
Thanks you very much for this! Ive always wanted to learn about building Rom's and now Im rocking cm10.1 on my nexus 7 that I built myself! Im so proud *blush* lol. I made it without in major hiccups the first time around and ended up with an unofficialcm10.1.zip that I flashed to my device and its running smooth. Now I feel that im ready to move up to the next level. Can you guys please point my in the direction of someplace I can learn to build my own custom Rom's from either cm, aosp, or aokp source code? Now that ive built cm10.1 I would like to know how to add and/or remove things from it i.e kernel, aroma installer and other customization's. Thanks!
[Nexus 7 Android Development] fattire:
The wiki has some good info... Maybe I'll write a " stuff to try after you've built" type of article too....

Congrats!
[Nexus 7 Android Development] gbohm:
hey fattire thsnk you for your work on the n7 and nook color (great in keeping it relevant) waht do you think about cornerstone do you think it is possible to get it running with cm10.1 i tried it with cm10 but because of my lacking knowledge i couldn'tget it running

Gesendet von meinem Nexus 7 mit Tapatalk 2
[Nexus 7 Android Development] .torrented:
www.xda-university.com may have some stuff worth looking into.

this too: http://wiki.cyanogenmod.org/index.php?title=Development
[Nexus 7 Android Development] AidenM:
Hey,

just ran this build under Ubuntu. It build successfully, but in the out folder there are no zips, only system folders and stuff.

The only issue I every saw is running breakfast I had to manually select cm_grouper_userdebug
[Nexus 7 Android Development] .torrented:
go back a page or two and find my post with a [SHOW] box and go back through the commands to double check you did all the steps

You most likely missed the steps from googles site that tell you to get some packages
[Nexus 7 Android Development] sparksco:
Just a heads up for those of you that are building with Google's 4.7 master branch toolchain. With their latest toolchain changes you'll need a new oprofile patch or the build will fail with errors.

https://android.googlesource.com/pl...le/+/bcc580e7c43f25928d29d9362829e3cd6490dd5b
[Nexus 7 Android Development] .torrented:
How do we know chich toolchain we are using? and how to do what we need to do so it doesnt break the build?
[Nexus 7 Android Development] EnemyOfGlaDOS:
After all that.. took a few hours to build and it finished but finished with an error 1 and I think its because I ran out of space..so it probably didn't even finish! Man, that sucks.

So.. not sure what I can do from here. If anyone familiar with ubuntu can tell me where to look to see how much space I have, and/or tell me how to make more space that would be awesome. When I installed linux I installed it on my external hd because I didn't have any blank dvd's, or even a usb stick so I used my external hd which was formatted before installing. I believe there's a bunch of space on here. Not sure how I goofed this up. Everything was running fine until the end. Anyway... if someone feels like shooting ma a PM so we keep this thread clean, it would be sooo appreciated! Thanks guys :o

here's where it error 1:

LIBRARIES/libwebcore_intermediates/Source/WebCore/rendering/RenderHTMLCanvas.o] Error 1
make: *** Waiting for unfinished jobs....
/tmp/ccAArOJv.s: Assembler messages:
/tmp/ccAArOJv.s:304543: Fatal error: can't write /home/rootworkx/android/system/out/target/product/grouper/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/rendering/RenderIFrame.o: No space left on device
/tmp/ccAArOJv.s:304543: Fatal error: can't close /home/rootworkx/android/system/out/target/product/grouper/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/rendering/RenderIFrame.o: No space left on device
make: *** [/home/rootworkx/android/system/out/target/product/grouper/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/rendering/RenderIFrame.o] Error 1
rootworkx@ubuntu:~/android/system$
[Nexus 7 Android Development] eug89:
I've never updated google's toolchain so far, probably that's why I've never faced this error.

Also, looking in oprofile source, in common.mk I found these lines:

ifeq ($(findstring prebuilt,$(TARGET_TOOLS_PREFIX)),prebuilt)

ifeq ($(TARGET_ARCH),arm)

toolchain := prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-linux-androideabi-4.6

I changed it to point to the 4.7 GCC and then it gave me a couple of build errors that I fixed by adding #include <config.h> in libpp/symbol.h and in libutil++/bfd_support.h

Don't know if this was really needed but I just want to be sure that everything uses the new toolchain
[Nexus 7 Android Development] sparksco:
Yeah I think they just updated the toolchain not to long ago. I noticed that too in common.mk it points to 4.6 toolchain but since AOSP never changed it on their master branch which uses 4.7 I decided to keep it the same as they have it. Could you submit the new changes to their gerrit master branch? That is if it doesn't break anything. I'll test it also and if you'd like I could submit it if everything works good. Thanks.

Edit: Here's a list of current open oprofile patches: https://android-review.googlesource.com/#/q/status:open+project:platform/external/oprofile,n,z
[Nexus 7 Android Development] eug89:
Feel free to submit it, I have repo set to upload changes to CyanogenMod's gerrit and I suppose I would need to download all the source from AOSP in order to upload commits.

You'll need to add that line before #include <bfd.h>
[Nexus 7 Android Development] sparksco:
Actually you can just do a git clone of the oprofile repo ;)

git clone https://android.googlesource.com/platform/external/oprofile -b master

make changes and commit then push to their gerrit. Awesome thanks for the tip. The way I figure it we should submit things to aosp as well as cm since aosp eventually will make it's way down to cm :)
[Nexus 7 Android Development] EnemyOfGlaDOS:
Totally bummed about the lack of space. I've decided to just install Linux straight onto my labtop and just start from scratch with more than enough space.. hopefully :D I'll be back.. :)

<sent from my quad-core S3>
[Nexus 7 Android Development] fattire:
If you're using a Virtual Machine, you may just be able to resize the hard drive and partition...
[Nexus 7 Android Development] fattire:
I had cornerstone working on cm10 for the Nook color (you can probably find details in the cm10 thread for encore on xda), but I think overall there was some resistance to including it with official CM mainstream... I dunno if there's a patch against 10.1 or not...

It's cool, but not that cool :)