How to build - getting started

470 views
Skip to first unread message

Lars Berner

unread,
Jan 18, 2014, 1:15:14 PM1/18/14
to csipsim...@googlegroups.com
Hello,

as I described in my post from 5th of January I was trying to open the provided VM in a Virtual Box on my Windows machine - without succes.
So I created my own Ubuntu 64 bit setup in a VM, installed SDK,NDK Eclipse and RabbitVCS in order to sync the Subversion repository of CSipSimple.
Some questions:
    In Eclipse I did:    File -> Import -> Existing Project into Workspace
    Result was having the following projects/directories loaded into my Eclipse Package Explorer:
    AndroidTest
    AudioDeviceAndroidTest
    pjsua
    PjsuaBB
    VideoCaptureModuleAndroidTest
    ViEAutoTest
   
1. Is this appearence as it should be in Eclipse or did I something wrong? If so: How should PackageExplorer look like?
   
2. Which of the projects are the relevant ones in order to run understand and run the application in Eclipse?

3.  Assuming the projects 'pjsua' and 'PjsuaBB' to be the important ones I unloaded the others.
 I face the following build errors and as I am quite new to native code I did not succeed in fixing them.
 In pjsua/MainActivity: PjsuaAppCallback cannot be resloved to a type. Also in handleMessage method pjsua cannot be resolved.
 In the terminal I navigated to the directory and ran ndk-build with the following output.
 
  me@me-VirtualBox:~/development/workspace01/CSipSimple$ ndk-build
Android NDK: No local settings... build all in release mode !   
Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 4 in ./AndroidManifest.xml   
jni/opus/android_toolchain/Android.mk:22: jni/opus/android_toolchain/../sources/silk_sources.mk: No such file or directory
jni/opus/android_toolchain/Android.mk:34: jni/opus/android_toolchain/../sources/celt_sources.mk: No such file or directory
jni/opus/android_toolchain/Android.mk:36: jni/opus/android_toolchain/../sources/opus_sources.mk: No such file or directory
jni/fdk_aac/android_toolchain/Android.mk:3: jni/fdk_aac/android_toolchain/../sources/Android.mk: No such file or directory
jni/Android.mk:25: jni/openssl/sources/Android.mk: No such file or directory
jni/openssl/android_toolchain/Android.mk:41: jni/openssl/android_toolchain/../sources//android-config.mk: No such file or directory
jni/openssl/android_toolchain/Android.mk:59: jni/openssl/android_toolchain/../sources//android-config.mk: No such file or directory
Android NDK: WARNING:jni/openssl/android_toolchain/Android.mk:crypto_ec_static: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip/android_toolchain/pjmedia/Android.mk:pj_video_android: non-system libraries in linker flags: jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/armeabi/lib/libavcodec.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/armeabi/lib/libavformat.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/armeabi/lib/libswscale.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/armeabi/lib/libavutil.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/x264/armeabi/lib/libx264.a   
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES   
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the   
Android NDK:     current module   
Android NDK: WARNING:jni/pjsip_mod_earlylock/android_toolchain/Android.mk:pjsip_mod_earlylock: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip_mod_reghandler/android_toolchain/Android.mk:pjsip_mod_reghandler: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip_mod_sipclf/android_toolchain/Android.mk:pjsip_mod_sipclf: LOCAL_LDLIBS is always ignored for static libraries   
jni/opus/android_toolchain/Android.mk:22: jni/opus/android_toolchain/../sources/silk_sources.mk: No such file or directory
jni/opus/android_toolchain/Android.mk:34: jni/opus/android_toolchain/../sources/celt_sources.mk: No such file or directory
jni/opus/android_toolchain/Android.mk:36: jni/opus/android_toolchain/../sources/opus_sources.mk: No such file or directory
jni/fdk_aac/android_toolchain/Android.mk:3: jni/fdk_aac/android_toolchain/../sources/Android.mk: No such file or directory
jni/Android.mk:25: jni/openssl/sources/Android.mk: No such file or directory
jni/openssl/android_toolchain/Android.mk:41: jni/openssl/android_toolchain/../sources//android-config.mk: No such file or directory
jni/openssl/android_toolchain/Android.mk:59: jni/openssl/android_toolchain/../sources//android-config.mk: No such file or directory
Android NDK: WARNING:jni/openssl/android_toolchain/Android.mk:crypto_ec_static: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip/android_toolchain/pjmedia/Android.mk:pj_video_android: non-system libraries in linker flags: jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/armeabi-v7a/lib/libavcodec.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/armeabi-v7a/lib/libavformat.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/armeabi-v7a/lib/libswscale.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/armeabi-v7a/lib/libavutil.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/x264/armeabi-v7a/lib/libx264.a   
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES   
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the   
Android NDK:     current module   
Android NDK: WARNING:jni/pjsip_mod_earlylock/android_toolchain/Android.mk:pjsip_mod_earlylock: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip_mod_reghandler/android_toolchain/Android.mk:pjsip_mod_reghandler: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip_mod_sipclf/android_toolchain/Android.mk:pjsip_mod_sipclf: LOCAL_LDLIBS is always ignored for static libraries   
jni/opus/android_toolchain/Android.mk:22: jni/opus/android_toolchain/../sources/silk_sources.mk: No such file or directory
jni/opus/android_toolchain/Android.mk:34: jni/opus/android_toolchain/../sources/celt_sources.mk: No such file or directory
jni/opus/android_toolchain/Android.mk:36: jni/opus/android_toolchain/../sources/opus_sources.mk: No such file or directory
jni/fdk_aac/android_toolchain/Android.mk:3: jni/fdk_aac/android_toolchain/../sources/Android.mk: No such file or directory
jni/Android.mk:25: jni/openssl/sources/Android.mk: No such file or directory
jni/openssl/android_toolchain/Android.mk:41: jni/openssl/android_toolchain/../sources//android-config.mk: No such file or directory
jni/openssl/android_toolchain/Android.mk:59: jni/openssl/android_toolchain/../sources//android-config.mk: No such file or directory
Android NDK: WARNING:jni/openssl/android_toolchain/Android.mk:crypto_ec_static: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip/android_toolchain/pjmedia/Android.mk:pj_video_android: non-system libraries in linker flags: jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/x86/lib/libavcodec.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/x86/lib/libavformat.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/x86/lib/libswscale.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/x86/lib/libavutil.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/x264/x86/lib/libx264.a   
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES   
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the   
Android NDK:     current module   
Android NDK: WARNING:jni/pjsip_mod_earlylock/android_toolchain/Android.mk:pjsip_mod_earlylock: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip_mod_reghandler/android_toolchain/Android.mk:pjsip_mod_reghandler: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip_mod_sipclf/android_toolchain/Android.mk:pjsip_mod_sipclf: LOCAL_LDLIBS is always ignored for static libraries   
jni/opus/android_toolchain/Android.mk:22: jni/opus/android_toolchain/../sources/silk_sources.mk: No such file or directory
jni/opus/android_toolchain/Android.mk:34: jni/opus/android_toolchain/../sources/celt_sources.mk: No such file or directory
jni/opus/android_toolchain/Android.mk:36: jni/opus/android_toolchain/../sources/opus_sources.mk: No such file or directory
jni/fdk_aac/android_toolchain/Android.mk:3: jni/fdk_aac/android_toolchain/../sources/Android.mk: No such file or directory
jni/Android.mk:25: jni/openssl/sources/Android.mk: No such file or directory
jni/openssl/android_toolchain/Android.mk:41: jni/openssl/android_toolchain/../sources//android-config.mk: No such file or directory
jni/openssl/android_toolchain/Android.mk:59: jni/openssl/android_toolchain/../sources//android-config.mk: No such file or directory
Android NDK: WARNING:jni/openssl/android_toolchain/Android.mk:crypto_ec_static: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip/android_toolchain/pjmedia/Android.mk:pj_video_android: non-system libraries in linker flags: jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/mips/lib/libavcodec.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/mips/lib/libavformat.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/mips/lib/libswscale.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/ffmpeg/mips/lib/libavutil.a jni/pjsip/android_toolchain/pjmedia/../../sources/pjmedia/../../../ffmpeg/build/x264/mips/lib/libx264.a   
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES   
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the   
Android NDK:     current module   
Android NDK: WARNING:jni/pjsip_mod_earlylock/android_toolchain/Android.mk:pjsip_mod_earlylock: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip_mod_reghandler/android_toolchain/Android.mk:pjsip_mod_reghandler: LOCAL_LDLIBS is always ignored for static libraries   
Android NDK: WARNING:jni/pjsip_mod_sipclf/android_toolchain/Android.mk:pjsip_mod_sipclf: LOCAL_LDLIBS is always ignored for static libraries   
make: *** No rule to make target `jni/openssl/android_toolchain/../sources//android-config.mk'.  Stop.
me@me-VirtualBox:~/development/workspace01/CSipSimple$
 
 
 Are you able to give me some hints what is going wrong please?
 

Régis Montoya

unread,
Jan 18, 2014, 2:32:30 PM1/18/14
to csipsim...@googlegroups.com
On 18/01/2014 19:15, Lars Berner wrote:
Hello,

as I described in my post from 5th of January I was trying to open the provided VM in a Virtual Box on my Windows machine - without succes.
So I created my own Ubuntu 64 bit setup in a VM, installed SDK,NDK Eclipse and RabbitVCS in order to sync the Subversion repository of CSipSimple.
Some questions:
    In Eclipse I did:    File -> Import -> Existing Project into Workspace
    Result was having the following projects/directories loaded into my Eclipse Package Explorer:
    AndroidTest
    AudioDeviceAndroidTest
    pjsua
    PjsuaBB
    VideoCaptureModuleAndroidTest
    ViEAutoTest
   
1. Is this appearence as it should be in Eclipse or did I something wrong? If so: How should PackageExplorer look like?
   
2. Which of the projects are the relevant ones in order to run understand and run the application in Eclipse?


It's not needed to import all these project into the workspace.
Please, re-read with more care the HowToBuild wiki page :
http://code.google.com/p/csipsimple/wiki/HowToBuild#Setup/import_application_in_your_IDE_%28Optional%29

"""Pick at least SipHome? and ActionBarSherlock?. Add CSipSimpleXXX-projects if needed."""

In most case SipHome and ActionBarSherlock are the only one needed. CSipSimpleXXX- projects are needed if you want to build the plugins.
Any other eclipse project that you see are *not* eclipse projects from CSipSimple but from external repositories (webrtc, pjsip etc etc etc).


3.  Assuming the projects 'pjsua' and 'PjsuaBB' to be the important ones I unloaded the others.
 I face the following build errors and as I am quite new to native code I did not succeed in fixing them.
 In pjsua/MainActivity: PjsuaAppCallback cannot be resloved to a type. Also in handleMessage method pjsua cannot be resolved.
 In the terminal I navigated to the directory and ran ndk-build with the following output.
No, it's not the good ones. These project comes from pjsip that start to have some support of Android. The port for Android from csipsimple project has been contributed back to pjsip trunk and there is now some android support on core pjsip/pjsua. However, if you want to build CSipSimple, you have to follow the steps indicated here :
http://code.google.com/p/csipsimple/wiki/HowToBuild

Read the steps of this wiki. You should not need extra steps than these. It contains all information and if there is something not clear in this wiki page, do not hesitate to ask here. Maybe the page can be improve / clarify some things. Normally it should not be necessary to guess any step ;)






Reply all
Reply to author
Forward
0 new messages