Need a little guidance compiling library code for the Vogue, Kaiser, & Polaris users
I'm working on updating libgps.so for the aforementioned group, and I'm pretty green when it comes to linux. I'm doing my best to help myself, but (hopefully understandably) I'm a little hung up on compiling code for the ARM architecture using Linux binaries.
Specifically, I have my build environment (Ubuntu 9.10 x86) with GCC installed, and I have my source code prepared (.c, .h, and a .mk that I was provided with, I'm not familiar with it.) I need to compile these into a .so file that we can incorporate with Android to hopefully improve our GPS functionality.
Is anyone willing to lend me a hand or point me to a newbie-friendly guide to ensuring I have the cross-compiler installed and setup correctly, and the appropriate switches to use when I compile to ensure my .so file is compiled for ARM?
Thanks much for any help you can offer,
Shidell
[Q] Hey guys, I just updated to Ubuntu 10.10 and now my SDK is gone! I tried to look into why it wasn't working and the software manager tool in Eclipse says that Android is installed. I don't even have any of the Android SDK buttons showing anymore? Can someone help a fellow dev?
[SOLVED] Go to the eclipse website, download Eclipse for linux, uninstall your old eclipse, extract your new eclipse wherever and go into the folder and click the application button titled eclipse. Then reinstall all the android stuff.
At the informal android developer's meetup tonight, there were two of us with this same problem.
One issue that I found was that PATH in .profile got broken.
We suspect that using the version of eclipse that came with ubuntu, rather than 3.5 downloaded directly from eclipse might also be causing problems.
I have the same problem; ellarsee, can you be more specific how you got it running again?
(what is .mprofile and where is it, for example? (Googling isn't helping me find out))
Same thing happened to me
Upgrade to Ubuntu 10.10 broken my Android SDK as well.
Is it possible the Java packages are not installed anymore in Ubuntu?
I tried this...
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
Updated a lot of stuff but Eclipse Android is still gone...
Does anyone have this figured out yet??????????????????????????????? I NEED TO GET MOVING ON SOME APPS! THIS IS SO FRUSTRATING!
Removal and re-install of ADT plugin does not help
This is the error that appeared in my project the first time I ran eclipse after the 10.10 upgrade from 10.04.
Code:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
I attempted to fix the build path (Properties->Java Build Path) and noticed that
com.adroid.ide.eclipse.adt.ANDROID_FRAMEWORK was not checked. I checked it but this made no difference.
Going to try complete uninstall of eclipse...
It's still not working for me
Not .mprofile .profile, it's like .bashrc, a script that is run when you log in, and can set your $PATH variable, or other environment variables.
emacs ~/.profile
or
vi ~/.profile
should enable you to edit it.
Has anyone tried just a fresh reinstall of everything to work on android apps?
Someone asked about java, it's still in /usr/bin/java
SOLUTION
Can't post outside links. So you'll have to google the bug numbers I give.
Ubuntu bug is here: bugs.launchpad # 633198
This points at a debian bug: bugs.debian.org # 587657
Debian bug contains a workaround where you edit the file:
~/.eclipse/org.eclipse.platform_*/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
And you change the concurrent package location (I had too entries, I had to remove them both and insert the line in the debian bug)
and then things magically worked for me again!
Best of luck everyone
Someone else?
Someone else found a way to fix it?
Cuz, everything up till now didnt work for me
What all the ways to video chat with the G2?
I know there's skype, but what else is there? i want to specifically video chat from my phone to a pc.
how can i use my phone as a webcam when connected to my linux computer?
thanks for any input guys!
Download droidcam from the market place and follow the intructions for webcam.
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
Will do, thanks!
I'll post back with my results.
Edit: couldn't find it on the market :/
Sent from my T-Mobile G2 using XDA App
Huh... looks like the dev pulled the app down. How lame! I thought he would finish the dam project. Now I have to email him and find out wtf!
There are other apps out there that can do this I just don't know any I'm sorry sir.
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
the best one that i know of is OOVOO , the android version
is out its in beta but so far its been working well for me you can video chat with pc or mac or android i think its availible on the market now but if not here is the QR http://www.oovoo.com/Mobile.aspx?pname=GetooVooMobile the only problem with oovoo is it doesnt have linux client and you cant get it to work on wine either and the 6-way video chat is only free for a month after that you need to pay. 2-way video chat is free though
durps said:
how can i use my phone as a webcam when connected to my linux computer?
Click to expand...
Click to collapse
there is a project called SmartCam that can make it happen. here you can download the .deb file http://sourceforge.net/projects/smartcam/
Oovoo, tango, fring, skype, yahoo, qik (may be not)
those enough for ya ;-) ?
bahmanxda said:
there is a project called SmartCam that can make it happen. here you can download the .deb file http://sourceforge.net/projects/smartcam/
Click to expand...
Click to collapse
What do I do with this file???
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
elracing21 said:
What do I do with this file???
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
Click to expand...
Click to collapse
I am not sure what you are asking here , what do mean by that?
are you having problem installing it ? if the distro you are using is not base on
debian you can get the source code from the same website .
funkadesi said:
Oovoo, tango, fring, skype, yahoo, qik (may be not)
those enough for ya ;-) ?
Click to expand...
Click to collapse
Oovoo and yahoo don't seem to work on my G2. I heard that many people have problems with Qik draining their batteries.
Will try Tango and Fring.
thanks for the suggestions guys!
EDIT: Tango and Fring seem like they could work, but I need something that can either make my device's camera into a webcam for my linux pc, or where I can video chat from a phone to a pc.
elracing21 said:
What do I do with this file???
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
Click to expand...
Click to collapse
I don't know what to do either lol, I'm on linux.
durps said:
I don't know what to do either lol, I'm on linux.
Click to expand...
Click to collapse
well you need to download the .deb file and install it (if you are using a debian base distro) or you can get the source code otherwise .
if you are using 64bit linux you have to force install it .
and then get the android file and install that on your phone .
after that install the driver from the source code.
connect your phone to your pc via bluetooth or wifi from the menu .
again i dont understand what you are asking could you please be more specific about where you are running into problem?
bahmanxda said:
well you need to download the .deb file and install it (if you are using a debian base distro) or you can get the source code otherwise .
if you are using 64bit linux you have to force install it .
and then get the android file and install that on your phone .
after that install the driver from the source code.
connect your phone to your pc via bluetooth or wifi from the menu .
again i dont understand what you are asking could you please be more specific about where you are running into problem?
Click to expand...
Click to collapse
I don't know how to install anything on Linux, I'm new to this.
I installed the apk to my phone and it works well, set it up to my wifi.
I installed the linux file of smartcam, but when i open the file, it immediately closes. I'm guess I did it wrong. Linux just makes everything so complicated. The easiest tasks become complicated.
can you explain to me to how install this on here from scratch? i'm using ubuntu 9.10 i think.
Does this work on 64bit windows 7?
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
durps said:
I don't know how to install anything on Linux, I'm new to this.
I installed the apk to my phone and it works well, set it up to my wifi.
I installed the linux file of smartcam, but when i open the file, it immediately closes. I'm guess I did it wrong. Linux just makes everything so complicated. The easiest tasks become complicated.
can you explain to me to how install this on here from scratch? i'm using ubuntu 9.10 i think.
Click to expand...
Click to collapse
Ok i will write a guide for you when i get home .meanwhile i need to know which ubuntu version and linux kernel you are using because you need a patch for some kernels and since you are not sure go to applications>accesories>terminal
Then type : cat /etc/lsb-release
This will give you your ubuntu version then type :
Uname -a this will give you your kernel version
Post the outputs for this 2 commands and will try to write a guide for you when i get back to my pc .
Sent from my HTC Vision using XDA App
elracing21 said:
Does this work on 64bit windows 7?
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
Click to expand...
Click to collapse
Yes it does its actually very simple to set it up on Windows7
Sent from my HTC Vision using XDA App
bahmanxda said:
Yes it does its actually very simple to set it up on Windows7
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
Sorry if its too much to ask for but can you write a guide for the windows7 too?
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
elracing21 said:
Sorry if its too much to ask for but can you write a guide for the windows7 too?
HTC Vision S-OFF CM6.1 Stable Oc'd to 1.5ghz on Pershoots Kernel
Click to expand...
Click to collapse
here is how to use your G2 (any android phone with camera and wifi) as a portabable webcam (windows)
1-Downlaod "SmartCam_v1_4.exe" and "SmartCam_v1_4_src.zip" from here
http://sourceforge.net/projects/smartcam/files/smartcam_windows/SmartCam_v1_4/ (you probebly wont need the .zip file but you might need
it if you run in to problem later)
2-install SmartCam_v1_4.exe on your windows pc
3-download SmartCamAndroid_v1_4_0.apk from here
http://sourceforge.net/projects/smartcam/files/smartcam_android/SmartCamAndroid_v1_4_0/
4-copy the .apk file to your sd card and install it on your phone.
5-on your pc click start go to all programmes and launch smartcam.
6-click file>settings choose wifi, port number is 9361 by default leave it that way and click ok.
7-launch smartcam on your phone press menu and then settings
8-On connection type select TCP/IP(wifi)
9-still in settings press remote server and type in your computer ip address on your wireless network (if you are not sure about that, click start run cmd
and type the command "ipconfig" a list on information will appear under
"Wireless LAN adapter Wireless Network Connection" you can see your IP address from there)
10- still on settings press on port number and make sure it maches the one smartcam from your pc ,its usually 9361 as well.
11-come out of settings ,press menu and Connect wifi
Thats it. now you can use you phone as portable webcam to use skype msn or
anything else that you want .
You can also ajust the camera resolution from settings but remember the maximum res that smartcam support is 800x480.
EDIT: I will write a guide for linux too. i am just waiting on durps to post his linux version so i will write the guide according to that.
Thanks bahmanxda, I really really appreciate the help. Here's what I got from the terminal.
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
Kernal: 2.6.31-22-generic
ok i wrote a step by step guide on how to get smartcam working on ubuntu
1-Download "smartcam_1.4.0_i386.deb" and "smartcam-1.4.0.tar.gz" from here:
http://sourceforge.net/projects/smartcam/files/smartcam_linux/smartcam_linux_v_1.4.0/
2-install the .deb file (deb files are easy to install and it should work by double clicking on them however you need to have a deb package manager installed if you dont already have one installed,you can get them from software centre gdebi package manager is a good one .
Or you can just install the .deb file from terminal
to do that
A-log in as root (sudo -s and then put in your password)
B-navigate to the folder that you Downloaded smartcam_1.4.0_i386.deb
(by using cd command)
C-inter the following command : dpkg -i smartcam_1.4.0_i386.deb
once the installation is done:
3-extract the tar.gz file (right click and extract here) and remember the location because you have to navigate to it later from terminal
4-download the 9.10 Karmic patch from here http://forum.ubuntu.ru/index.php?PH...67&action=dlattach;topic=66320.0;attach=16643
5-extract it, there is a file called Karmic.patch ,copy that into driver_src which is located in the first folder that you extracted (smartcam-1.4.0)
6-now open the terminal navigate to driver_src folder, so for example if you extracted smartcam-1.4.0 in your downloads folder the command is gonna be like this:
[email protected]:~$ cd Downloads
[email protected]:~/Downloads$ cd smartcam-1.4.0
[email protected]:~/Downloads/smartcam-1.4.0$ cd driver_src
[email protected]:~/Downloads/smartcam-1.4.0/driver_src$
7- now you can apply the patch by typing this command
patch -p0 < karmic.patch smartcam.c
8-then type this command
make -C /lib/modules/`uname -r`/build M=`pwd`
9- now open driver_src if the file smartcam.ko is there it means you have done it correctly.
10-now open terminal again, type sudo -s and put in your password (so you are logged in as root.
11-navigate to driver_src folder again
then type the following 3 commands one by one.
/sbin/modprobe videodev
/sbin/insmod smartcam.ko
sudo chmod 0666 /dev/video0
now go to Applications/sound & video/and launch smartcam
and the rest is same as windows guide
If you have any problem with the installation let me know.
Edit: i forgot to ask you if you are running 32bit or 64bit if you are running 64bit you need to force install the .deb file
so in step 2-C instead of dpkg -i smartcam_1.4.0_i386.deb enter dpkg -i --force-architecture smartcam_1.4.0_i386.deb
I've tried compiling CM7 from source using Ubuntu 10.10 and 11.10 both on dual boot and Virtual box. I get the message "git-core:unknown command" whenever i give the build package command. Already have installed the Android sdk and java6. Have installed sample sdk tools and the 2.3.3 platform and all extras. Any idea what the problem maybe?
Edit:Used Gedit. All's fine. Downloading the source code.
Sent from my Blade using XDA app
I don't want to spam any of those "How to install Linux" on our A500 Development forum and if I can get a good step-by-step I'll then edit this post to include it.
I am using both Ubuntu 11.10 Native and Backtrack (Ubuntu 10.04) in Chroot.
What I'd like is a procedure to build the module like I found here:
http://forum.xda-developers.com/showthread.php?t=1484339
[infernix] is refering to this post for the method : http://forum.xda-developers.com/showthread.php?t=1455382
I am a good learner and able to Google a lot but I can't find it...
I need a step-by-step to build my Realtek RTL8187 USB modules...
The linux headers are not the same as the kernel version and not too sure about the procedure to fix this.
Anyone who can provide me a good tutorial on how to fix this out Please?
How could I install the linux headers if I have untar the source code from Acer in /linux and not /usr/src ?
When I try to "make" the realtek drivers downloaded from Realtek it doesnt work as in /lib/modules I don't have the Acer kernel source files neither...
I know I'm not too far from the solution but starting to need help from experts ;-)
I would prefer to have the native method as it is quicker and I'll use it in native more than in chroot. It's about the same thing the missing files or wrong directory if you need the exact errors let me know and I'll retry it and paste here.
If the winner has paypal I will send you 10$
So basically, I need a Complete step-by-step on how to build modules for my Realtek RTL8187 USB using the Ubuntu 11.10 Native on my ROM: KJY2010_3.2.1_Honeylicious_Icy_Faux_Final_Rev_FZ
Thanks in advance to the winner
First off: For Linux Native the procedure is exactly the same as for any other Linux, i. e. compile, link, install and modprobe the module as usual... If you don't get the source for the driver or at least a usable blob, i. e. one that's been compiled for ARM and is compatible with your kernel, you're pretty much out of luck. If you do get the source, just hope it compiles and works on ARM...
Second: If you're running chrooted, the android kernel handles all I/O for you -- including network. So all you have to do is to set /proc/sys/net/ipv4/ip_forward (on android) to be a file just containing a single "1" and set up your nameserver in resolv.conf (inside chroot)... 8.8.8.8 (Google public DNS) will do.