gomac / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

SipDroid-Build issues. #144

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using Eclipse (downloaded on 9/26) on Windows XP. I used SVN in Eclipse to 
get the SipDroid sources as you describe under the "Source" tab of the 
website.

In Eclipse under "Package Explorer" I can see the tree starting with SipUA, 
but there's a red X in the icon next to it. When I expand the "src" node, 
and select the first node "org.sipdroid.media" and the the G711.java file, 
I see a red X on the first line "package org.sipdroid.media;" and if I 
hover the mouse there, I see the message: The type java.lang.Object cannot 
be resolved. It is indirectly referenced from require .class files.

Further, there's also a red X on the AndroidManifest.xml file in the 
Package Explorer. On opening it, I see a few red X's. The first one is on 
the line: android:configChanges="orientation|keyboardHidden">, and the 
message I see when I hover my mouse over it is:

org.sipdroid.sipua.ui.Sipdroid does not extend android.app.Activity

I'm probably missing something simple.

I've also attached a screen shot of the "Properties for SipUA". The two 
obvious concerns are:

SipUA/gen (missing)
Unable to get system library for the project

Any clues?

Original issue reported on code.google.com by arete.c...@gmail.com on 28 Sep 2009 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago
Please discuss this in the developers' group. This is no bug!

Original comment by pmerl...@googlemail.com on 28 Sep 2009 at 8:19

GoogleCodeExporter commented 9 years ago
Do you have a document that explains the prerequisites for building the 
sources? I'm 
probably missing something simple here. Obtaining the sources seemed easy, but 
not sure 
how to proceed.

Original comment by arete.c...@gmail.com on 28 Sep 2009 at 9:15

GoogleCodeExporter commented 9 years ago
FAQ contains a link to the page describing setup of the Android SDK.

Original comment by pmerl...@googlemail.com on 28 Sep 2009 at 11:05

GoogleCodeExporter commented 9 years ago
If you're alluding to this line.

If you are interested in developing and contributing to the project please 
install 
Eclipse and Subclipse for building the source code.

Not sure if that suffices. I'd like to know what to point SVN to (the node in 
the 
source code tree), and then what if any mods that need to be made if one is 
building it 
in the Eclipse IDE.

Original comment by arete.c...@gmail.com on 28 Sep 2009 at 11:15

GoogleCodeExporter commented 9 years ago
A private mail says you fixed it. What was the reason? Maybe we should update 
the FAQ.

Original comment by pmerl...@googlemail.com on 2 Oct 2009 at 8:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
In Eclipse, I used SVN to download sources from the following link:

http://sipdroid.googlecode.com/svn/trunk/

After the sources are done downloading, you see the following in "Package 
Explorer" 
in Eclipse.

> SipUA 326 [http://sipdroid.googlecode.com/svn, Trunk: trunk]

Right click on SipUA and select Properties in the drop down menu (last option). 
Click 
on Android (assumes the Android SDK is installed and configured in Eclipse). In 
the 
"Project Build Target" select "Android 1.6" (Target Name). Click on the OK 
button, 
and now compile/run the project. The sources should now compile without any 
errors.

I am using the latest versions of both Eclipse Platform (v3.5.1.M20090917-
0800/v3.5.1.R35x_v200910) and Android 1.6 (Android Development Tools 
v0.9.3.v200909031112-12945). Not sure if this is what will work on earlier 
versions.

Original comment by arete.c...@gmail.com on 2 Oct 2009 at 6:12

GoogleCodeExporter commented 9 years ago
Thanks for documenting this. I have added it to the FAQ.

Original comment by pmerl...@googlemail.com on 3 Oct 2009 at 1:49

GoogleCodeExporter commented 9 years ago
I tried compiling the latest 2.0.1 version

The default.properties was missing so I was required to copy this file 
explicitly.

Secondly when I built the sipdroid the size of apk file is only 637 kb only. 
While when i look at the repositary file its size is 841 k.

After analyzing the issue I found the NDK generated files are not included.

There is no documentation for NDK compilation.

I am using the following version of Eclipse

Version: Helios Service Release 1
Build id: 20100917-0705

Original comment by sandeepg...@hotmail.com on 16 Dec 2010 at 9:03

GoogleCodeExporter commented 9 years ago
I was having the same problems with eclipse. A 3 step process worked for me.

1) When I tried to go to Project Properties> Android, there was no target 
selected. So I had to manually select android - 8 (2.2). 

2) I also had to manually copy the default.properties file from another 
successfully compiling android project (its just a 2 line file. Make sure the 
"target=android-8" in the file. 

3) This one was wierd. It did not seem to automatically pick up the android 8 
library in the build path. So i had to remove whatever was there in the 
Configure Build Path > Libraries and manually add android 8 Jar file found at 
android-sdk>platforms>android-8>android.jar. Once I did this, the gen folder 
was automatically created and "R" resolved too. 

Note: If it complaints about Conversion to dalvik format failing with error 1, 
go to build path again. You will find that eclipse has automatically added 
android2.2 library by looking at the project. So you can remove the android.jar 
added manually.

Hope this helps.  

Original comment by tanm...@gmail.com on 6 Apr 2011 at 10:00

GoogleCodeExporter commented 9 years ago
@comment 11 - Gold!! after 1 full day of trying to compile this ur comment 
saved me! cheers

Original comment by tommo...@hotmail.com on 9 Feb 2012 at 10:20