from these thread, i follow the this provided step, i stuck at number 2, to find gcc. i dont see any exact gcc in there, so which one should i choose?
i have tried choose gcc-core, but when i enter ./menu , i got this error:
Error: The application 'clear' is not installed - the kitchen
will not function properly without it. Ensure you did
not miss a step during installation! Refer to the
Android Kitchen FAQ at xda-developers.com for further
assistance.
i have no problem finding others (perl, cpio, util-linux, ncurses, zip, unzip and wget), only problem with gcc. please help
since no one helped me, i decide to check the gcc version at http://gcc.gnu.org/ and i install all the gcc in the list which has the same version.
and i googled how to check gcc after install, it work. and when i open cygwin shortcut, something appear in the command, help.
edit: i ignore that and follow the step on the thread, i have ./menu opened. solved
Related
I am using SDK to install drivers so I can take a picture of my Android screen.
Trying to use the following guide:
Follow these steps to install new SDK components in your environment:
1. Launch the Android SDK and AVD Manager as described in the section above.
2. Select Available Packages in the left panel. This will reveal all of the components that are currently available for download from the SDK repository.
3. Select the component(s) you'd like to install and click Install Selected. If you aren't sure which packages to select, read Which components do I need?.
4. Verify and accept the components you want and click Install Accepted. The components will now be installed into your existing Android SDK directories.
New platforms are automatically saved into the <sdk>/platforms/ directory of your SDK; new add-ons are saved in the <sdk>/add-ons/ directory; samples are saved in the <sdk>/samples/android-<level>/; and new documentation is saved in the existing <sdk>/docs/ directory (old docs are replaced).
_____________________________________________
I get to "Available Packages" then when trying to search or install drivers, it gives me the following message:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.
Any help? I just want to take a simple picture of my phone and the developers of this thing didn't have the foresight to just make it simple like iPhone?
Thanks.
nbakid2000 said:
I am using SDK to install drivers so I can take a picture of my Android screen.
Trying to use the following guide:
Follow these steps to install new SDK components in your environment:
1. Launch the Android SDK and AVD Manager as described in the section above.
2. Select Available Packages in the left panel. This will reveal all of the components that are currently available for download from the SDK repository.
3. Select the component(s) you'd like to install and click Install Selected. If you aren't sure which packages to select, read Which components do I need?.
4. Verify and accept the components you want and click Install Accepted. The components will now be installed into your existing Android SDK directories.
New platforms are automatically saved into the <sdk>/platforms/ directory of your SDK; new add-ons are saved in the <sdk>/add-ons/ directory; samples are saved in the <sdk>/samples/android-<level>/; and new documentation is saved in the existing <sdk>/docs/ directory (old docs are replaced).
_____________________________________________
I get to "Available Packages" then when trying to search or install drivers, it gives me the following message:
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings.
Any help? I just want to take a simple picture of my phone and the developers of this thing didn't have the foresight to just make it simple like iPhone?
Thanks.
Click to expand...
Click to collapse
ur posting this in the wrong section in the forums... go to the market and download a app that'll take a screenshot of your android device screen. i believe you need root for that though so make sure you have a rooted device. if not, check out the forums for the 3 step root process. so easy a caveman can do it. cheers.
I wasn't aware this was the wrong forum for this...especially since I'm attempting to install software that is specifically for the developers of Android.
My phone isn't rooted, either.
Although the app says you need root you actually don't.
So i found a great kitchen for cooking htc android roms: http://forum.xda-developers.com/showthread.php?t=633246 ...i would like to cook my own rom and try it out on the android emulator which i have installed on windows 7 (from here: http://gizmodo.com/5544988/how-to-try-android-froyo-on-your-computer)
Any one know how to do this? i have run command line prompts before but I am still a bit of a noob, so any one with tips that can be as detailed as possible are greatly appreciated!!!
thanks!!!
adeyo said:
So i found a great kitchen for cooking htc android roms: http://forum.xda-developers.com/showthread.php?t=633246 ...i would like to cook my own rom and try it out on the android emulator which i have installed on windows 7 (from here: http://gizmodo.com/5544988/how-to-try-android-froyo-on-your-computer)
Any one know how to do this? i have run command line prompts before but I am still a bit of a noob, so any one with tips that can be as detailed as possible are greatly appreciated!!!
thanks!!!
Click to expand...
Click to collapse
I believe you need to extract the rom image and install
http://android.modaco.com/content/general-discussion/289928/testing-getting-an-emulator-up-and-running-a-full-rom-with-the-market-etc/
extract rom image and install
i have actually looked at that link a few times...i guess i just needed someone to show me how to perform those steps in more detail. Ex, step #3 states: "Run a command prompt, and change to the 'tools' directory of the SDK (or add the tools directory to your path)." I actually needed someone to show me how to exactly type things in an open terminal, etc. I have run prompts before but i am still new to it all... also, do i run a prompt in the emulator itself?? or open up a windows terminal etc.
Thanks for the help, any more specifics appreciated.
Thanks
Setting up a development environment is really not that hard. I am using Windows 7 with a 64-bit processor, although the procedure is not terribly different across sytems, just make sure you choose the right download for your architecture.
The entire process can be broken down into four major steps. Let's get started.
1) Get Java
You can get the Java Standard Edition Software Development Kit through this link: http://www.oracle.com/technetwork/java/javase/downloads/
At the time of writing this post, the latest version available is 7u3. Click the download button under where it says 'JDK' and you will be taken to a list of installers. Make sure you get an installer from the group who's header is "Java SE Development Kit 7u3"; the other one is just sample code.
Make doubly sure that you choose the right architecture (x86 vs x64) as the wrong one will give you an error message and you will have to go uninstall everything and start over.
After the download has finished, run the installer.
Note: It may give the option to install JavaFX and the Ask Toolbar. While they won't hinder your development in any way, there won't be any need for them within the scope of this guide so you might find it worthwhile to not install them.
2) Get Eclipse
Once you've installed the Java DK, go get a copy of the Eclipse IDE here:
http://www.eclipse.org/downloads/ You can see that the IDE comes in many different flavors. Eclipse Classic will work fine.
Extract the folder and place the 'eclipse' subdirectory in a safe place. Try running eclipse by traversing this directory and running eclipse.exe. If you see the Eclipse splashscreen, everything is OK. If you see an error message then something may have gone wrong when you installed Java. If it complains about missing or corrupted DLLs, you probably have installed the wrong version of Java for your system. If it complains about not being able to find Java (for example, stuff about javaw.exe) you may need to manually add Java's location to your Path environmental variable. There is lots of documentation on how to do throughout the internet and most can probably explain it better than me. (^; Another method to fix the problem is to go find out where all the Java binaries are (Normally something like "C:\Program Files\Java\jdk~~~~~~~\bin"), copy the directory path, and add
Code:
-vm
<FOLDERPATH>\javaw.exe
to the end of the 'eclipse.ini' file that resides alongside 'eclipse.exe'
Note: You may notice that the version of Eclipse you downloaded isn't installed, but instead just runs out of a folder. You may want to consider creating a binaries folder in your home directory to keep all of software of this style in one place.
3) Get Android Plugins for Eclipse
Now that you have Eclipse up an running, you need to set it up for Android development. Start Eclipse up and click the 'Help' menu. Click 'Install New Software...'
In the window that comes up, you should see a combo box labelled 'Work with:' . Paste in:
Code:
https://dl-ssl.google.com/android/eclipse/
then hit enter.
Check 'Developer Tools' and click next. Let Eclipse do it's thing then click 'Finish'.
4) Get the API
Now that you have Eclipse's Android integration plugins, you need to grab an Android API. In Eclipse, under the 'Window' menu, click 'Android SDK Manager.'
The window that opens will automatically go to the internet and grab all the API packages available to download. The Nook Touch currently runs Android 2.1, so find that package set and check it. Click the 'Install <x> Packages' button and let it run.
You are finished! Now to create an Android program. In Eclipse's main menu, navigate File > New > Other... and select 'Android Project' from the 'Android' folder in the window. If you want to modify the source of an existing program, choose the appropriate radio button and browse to the parent directory of the 'src' folder. After you have created your project, you are going to want to make sure it has the right dependencies. On the lefthand pane ('Package Explorer') right click your project folder (The top one) and hit 'Properties.' Under the 'Android' screen, make sure 'Android 2.1' is checked and not another version. Click OK and you should be set.
To generate an APK, under 'File' click 'Export.' In 'Android' click 'Export Android Application.' Choose the right project, click next. If this is the first time you've exported an Android application, you will need to create a keystore. Select the appropriate radio button, navigate to a safe location, and give it your keystore a password. Click 'next' and add all the information you see fit. You will be able to reuse this keystore in future programs. After you've created a keystore, proceed through the export wizard, give your APK a filename, click finish and the file will be generated.
The rest is up to you. (^:
Thanks klausef!
For a non-dev (OK, I used to program short apps in BASIC on my commodore 64 when I was 8 years old), how much can I hope to achieve by setting this up? Do I need to understand a programming language? If so, which? Do you have any suggestions for a noob like me?
Haha I am no Java expert myself but I've been hacking around with the NoRefresh thing and other apps people have coded. You can do more than you think just by rummaging around online documentation.
I followed the instructions in the wiki to build a CM image for the grouper. When I do a "brunch grouper", I did not observe any errors, but there wasn't a recovery.img or a CM-[something].zip file as mentioned in the instructions.
What do I need to do in order to build those files? Looking at android/system/build/core/Makefile, I see targets like "recoveryimage" and "recoveryzip". Do I have to do something like "make recoveryimage" and "make recoveryzip" in order to get those files?
I searched on the XDA forums and on the net, but could not find anything similar to this.
Edit 1:
Doing a "make recoveryimage" created the recovery.img file but "make recoveryzip" did not create the CM-[something].zip
Thanks.
Building CM
bump
Generating CM*.zip file
Sarvavyapi said:
I followed the instructions in the wiki to build a CM image for the grouper. When I do a "brunch grouper", I did not observe any errors, but there wasn't a recovery.img or a CM-[something].zip file as mentioned in the instructions.
What do I need to do in order to build those files? Looking at android/system/build/core/Makefile, I see targets like "recoveryimage" and "recoveryzip". Do I have to do something like "make recoveryimage" and "make recoveryzip" in order to get those files?
I searched on the XDA forums and on the net, but could not find anything similar to this.
Edit 1:
Doing a "make recoveryimage" created the recovery.img file but "make recoveryzip" did not create the CM-[something].zip
Thanks.
Click to expand...
Click to collapse
I was able to generate the zip file. The main issue was that Ubuntu by default uses OpenJDK while Cyanogenmod needs Oracle JDK. Downloading and using Oracle JDK and following rest of the steps mention in this xda-developers forum thread (http://forum.xda-developers.com/showthread.php?t=2634726) generated the zip file. Also make sure that you have plenty of swap space (atleast as much as your ram or twice of that if possible)
I am planning to compile my own kernel for my device, I have seen relative guides and such but I am unable to compile even the stock one by xiaomi.
1)Has anyone got any success compiling such kernel.
2)Can you describe step by step your set-up the install.
What I have tried by now
1) Download and unpack Kernel source by xiaomi
2) Getting the 4.9 toolchain
3) Now my commands
export CROSS_COMPILE= (toolchain path (this is correct as no error has popped up))
export ARCH=arm64
export SUBARCH=arm64
Make clean
Make mrproper
Make ranchu64_defconfig (probably wrong)
Make -j4
About the error: Since trying for over two weeks of no success I abandoned it, but I do remember that make was saying error 2 if that somehow helps.
-Thank you for your time my fellow developers!
MimoPakou said:
I am planning to compile my own kernel for my device, I have seen relative guides and such but I am unable to compile even the stock one by xiaomi.
1)Has anyone got any success compiling such kernel.
2)Can you describe step by step your set-up the install.
What I have tried by now
1) Download and unpack Kernel source by xiaomi
2) Getting the 4.9 toolchain
3) Now my commands
export CROSS_COMPILE= (toolchain path (this is correct as no error has popped up))
export ARCH=arm64
export SUBARCH=arm64
Make clean
Make mrproper
Make ranchu64_defconfig(it's probably wrong)
Make -j4
About the error: Since trying for over two weeks of no success I abandoned it, but I do remember that make was saying error 2 if that somehow helps.
-Thank you for your time my fellow developers!
Click to expand...
Click to collapse
UPDATE: After some time, I figured out 2 things
1)The defconfig I was using is wrong, but I
have searched the folders and no other file
works (So how do I find my defconfig?)
2)Turns out that for my particular device the
exported files need to be outside of the
kernel, as doing that continued the
compiling process only to be stopped by a
file that wasn't found:
(built-in.o located in /arch/arm64/kernel/ )
(and this makes me suspicious about my defconfig)