monorailcat / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

failed to make csipsimple under android #1735

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.checkout the last sources:
svn checkout http://csipsimple.googlecode.com/svn/trunk/CSipSimple/ 
csipsimple_svn
2.edit jni/Application.mk to remove x86 and mips in APP_ABI due to NDK error 
report
3.fetch sources of opus and openssl
4.ndk-build in csipsimple_svn

What is the expected output? What do you see instead?
i wish NDK can produce some lib files such as .so or .a, but NDK report:
Compile thumb : pjsipjni <= pjsua_jni_addons.c
In file included from 
/home/firstime/csipsimple_svn/jni//csipsimple-wrapper/android_toolchain/..//src/
/pjsua_jni_addons.c:18:
/home/firstime/csipsimple_svn/jni//csipsimple-wrapper/android_toolchain/..//incl
ude/pjsua_jni_addons.h:4:28: error: pj/config_site.h: No such file or directory

What version of the product are you using? On what operating system?
i use 1501 version, on ubuntu, cross compiler is ndk_r6

Please provide any additional information below.

Original issue reported on code.google.com by gr...@163.com on 14 May 2012 at 3:13

GoogleCodeExporter commented 9 years ago
Did you try step 0 : read the HowToBuild wiki page? ;)
http://code.google.com/p/csipsimple/wiki/HowToBuild

Project is a little bit more complex than regular ndk projects. So read the how 
to build wiki page (also you can join the developer google group).

Update to android ndk r8 too (to have mips and x86 support) or add a Local.mk 
with APP_ABI := armeabi armeabi-v7a 
I've this file on my local dev machine to not build everything at every build. 
But the nightly build server builds everything.

I also use ubuntu, so if you following the steps of the how to build it's 
without surprise ;).
Also restart from a clean workspace, as you apparently tried to guess things, 
you have probably messed up things, while the makefile does everything for you.

Original comment by r3gis...@gmail.com on 14 May 2012 at 3:36

GoogleCodeExporter commented 9 years ago
thx for your answer, i try it again.

Original comment by gr...@163.com on 15 May 2012 at 2:00

GoogleCodeExporter commented 9 years ago
i am sorry for there is another error:
make[1]: swig2.0: Command not found

but there is swig in my ubuntu, and the swig version is 2.0.4, the path is 
/usr/local/bin. i am confused for that why csipsimple can't find swig.

Original comment by gr...@163.com on 17 May 2012 at 1:55

GoogleCodeExporter commented 9 years ago
Which version of Ubuntu you are running?
Normally the package swig2.0 is different from the swig one.
If you installed swig2.0 by hand (not from repos) you should create a symbolic 
link.
sudo ln -s /usr/local/bin/swig /usr/local/bin/swig2.0

Original comment by r3gis...@gmail.com on 17 May 2012 at 6:47

GoogleCodeExporter commented 9 years ago
Which version of Ubuntu you are running?
Normally the package swig2.0 is different from the swig one.
If you installed swig2.0 by hand (not from repos) you should create a symbolic 
link.
sudo ln -s /usr/local/bin/swig /usr/local/bin/swig2.0

Original comment by r3gis...@gmail.com on 17 May 2012 at 6:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes, i installed swig2.0 by hand. Your solution is ok, thanks.
And, another solution that when make csipsimple, using shell command "make 
SWIG=swig" instead of "make" works well, too.

Original comment by gr...@163.com on 17 May 2012 at 7:46

GoogleCodeExporter commented 9 years ago
Indeed, but I often propose the ln -s solution because it's easier to keep code 
up to date (since no code modification).
But you're right, that's the purpose of my declaration of a SWIG constant here 
;). Some ubuntu release ago swig2.0 was not yet in repos and so it was changed 
here.

Original comment by r3gis...@gmail.com on 17 May 2012 at 3:28

GoogleCodeExporter commented 9 years ago
I am also having the error:
make[1]: swig2.0: Command not found

I think I am having problem with swig installation on windows.
Please help me out.

Original comment by singhman...@gmail.com on 24 Sep 2012 at 7:43

GoogleCodeExporter commented 9 years ago
It's not recommended to build under windows. This platform is not made to 
develop.

However, about the problem you can pass your swig name to the make using "make 
SWIG=swig.exe" for example.
But you'll face many other problems. So I advise you to use a virtual machine 
with a linux installed on it. An ubuntu for example will be easier way to start.

Original comment by r3gis...@gmail.com on 24 Sep 2012 at 7:53