PJSIP for android installation on Mac OSX Mavericks

Hi all, 

I am trying to install PJSIP on Mac from many days but i got succeeded today. Here are the steps to be executed as they are not mentioned in website. 

Please have a look at the link 


This link is the starting point to get the source code and the instructions to make PJSIP  for android install. 

  • Do follow the sections Requirements, Build Preparation, Build PJSIP
  • In the section “Building and running PJSUA sample application” if we do the following steps, 
    $ cd /path/to/your/pjsip/dir
    $ cd pjsip-apps/src/pjsua/android
    $ ndk-build 
    Android NDK: WARNING:jni/Android.mk:pjsua: non-system libraries in linker flags: -    lpjsua-arm-unknown-linux-androideabi -lpjsip-ua-arm-unknown-linux-androideabi -lpjsip-simple-arm-unknown-linux-androideabi -lpjsip-arm-unknown-linux-androideabi -lpjmedia-codec-arm-unknown-linux-androideabi -lpjmedia-videodev-arm-unknown-linux-androideabi -lpjmedia-arm-unknown-linux-androideabi -lpjmedia-audiodev-arm-unknown-linux-androideabi -lpjmedia-arm-unknown-linux-androideabi -lpjnath-arm-unknown-linux-androideabi -lpjlib-util-arm-unknown-linux-androideabi -lresample-arm-unknown-linux-androideabi -lmilenage-arm-unknown-linux-androideabi -lsrtp-arm-unknown-linux-androideabi -lgsmcodec-arm-unknown-linux-androideabi -lspeex-arm-unknown-linux-androideabi -lilbccodec-arm-unknown-linux-androideabi -lg7221codec-arm-unknown-linux-androideabi -lpj-arm-unknown-linux-androideabi -lgcc -lgcc    
    This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
    current module    
    Invoking SWIG...
    swig -c++ -o jni/pjsua_wrap.cpp -package org.pjsip.pjsua -outdir src/org/pjsip/pjsua -java jni/pjsua.i
    Compile++ thumb  : pjsua <= pjsua_wrap.cpp
    SharedLibrary  : libpjsua.so
    arm-linux-androideabi-g++: error: /home/hadi/Development/pjproject/pjsip-    apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app.o: No such file or directory
    arm-linux-androideabi-g++: error: /home/hadi/Development/pjproject/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app_cli.o: No such file or directory
    arm-linux-androideabi-g++: error: /home/hadi/Development/pjproject/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app_common.o: No such file or directory
    arm-linux-androideabi-g++: error: /home/hadi/Development/pjproject/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app_config.o: No such file or directory
    arm-linux-androideabi-g++: error: /home/hadi/Development/pjproject/pjsip-apps/build/output/pjsua-arm-unknown-linux-androideabi/pjsua_app_legacy.o: No such file or directory
    make: *** [obj/local/armeabi/libpjsua.so] Error 1
  • In order to avoid the above error , do perform the following command " cd pjsip-apps/build " && "make pjsua" 
  • after the successful execution, then perform ndk-build in /pjsip-apps/src/pjsua/android directory.
  • This will result in the following output.
  • Invoking SWIG…

    swig -c++ -o jni/pjsua_wrap.cpp -package org.pjsip.pjsua -outdir src/org/pjsip/pjsua -java jni/pjsua.i

    [armeabi] Compile++ thumb: pjsua <= pjsua_wrap.cpp

    [armeabi] SharedLibrary  : libpjsua.so

    [armeabi] Install        : libpjsua.so => libs/armeabi/libpjsua.so


jps: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

I got the above error when tried to get the output of jps command.

solution : It happens when we point to wrong version of jdk.

$ sudo update-alternatives –config jps

select the correct the version of jdk from the output displayed. and try again. problem should be solved.

Is it correct to hang the accused???

One brutal incident which had led to death of DAMINI ( AMANAT) had changed the face of the country. Everyone is reacting right up to the point and making sincere efforts to prevent this from happening again.

Well this is fine, what about the accused ones?? Is Hanging is the correct and only one solution to make justice to the girl ? The accused ones are not cold blooded criminals nor they have any criminal history behind them. We don’t know what happened before and only we know is girl is severely hurt and she is no more today. This is a very pathetic situation.

We saw in many movies where the hero commits a crime initially and he realizes later and works for the welfare of the people in his society and takes care so that no one repeats the same mistake again in their lives. With the happened incident, are we sure that at least one of the accused will not change in the future?

Hanging is also one solution but not the only solution. One thing is pretty clear that the girl will never be back but its better to cultivate the good ideas in them rather than killing them. Who knows, the accused might work for the welfare of the women by realizing themselves.

A fruit can never the obtained on the day one when the seed is planted. Certain time is needed to change bad into good. Hope for the best.

Children should be brought up from childhood with good manners and should be far from the unwanted material in the internet and should be able to distinguish from good to bad, wrong to right, god to evil. India is a great country and we have given a great respect to the ladies from the childhood. Modern western culture, civilization, lack of responsible parents and schools are failing to teach the “ammathanam” towards a girl.

No one knows what the schools, colleges parents are trying to make students learn ? is it only subject printed in the books? subject can be available on internet but good manners should only be taught in home and from parents and elders.

If a teacher beats student in school & colleges, these days teachers are being kept in jail. How can a student know and distinguish between good & bad if he doesn’t accept scoldings from elders?? Media projects it in a way that teacher is  killing students and protects the child for that day. This leaves the student in darkness for the whole life without any morals and on one day when the same student commit a crime like what happened today…again media only projects that “Only hanging is only solution”

I dont know how to conclude this presentation but i feel it leaves an idea to think upon.


Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:assembly (default-cli) on project hadoop-mapreduce: Error reading assemblies: No assembly descriptors found. -> [Help 1]


When I am building Hadoop 0.23.1 on Mac, using Maven 3.0.3 and run this command.

> cd hadoop-mapreduce-project

> mvn clean install assembly:assembly -Pnative

received an error ” Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:assembly (default-cli) on project hadoop-mapreduce: Error reading assemblies: No assembly descriptors found. -> [Help 1]
Solution :

run the command

> mvn package -Pdist -DskipTests=true -Dtar

Then build succeeded.

Importance of Rudhraksha, Amla & Tulasi

Hi friends,

When i am reading few lines in Padma Purana, I came to know the importance of Rudhraksha, Amla & Tulasi. I am really thrilled and looked forward to spread among my friends.

Rudhraksha :

A Rudraksha bead bears features of a Linga and yoni on its surface. One should not wear a rudraksha on which above mentioned features are absent. Similarly two joint beads should never be worn. All the mantras become doubly powerful when chanted with the help of rudraksha-rosary.During Satya Yuga, there lived a mighty demon named Tripurasur. He had conquered the deities and was capable of moving in the space. The deities sought help of Lord Shiva, who killed Tripurasur by the sight of his third-eye. In the process, few drops of sweat, emanating from Shiva’s body fell down on the earth. These sweat drops got transformed into a large Rudraksha-tree.

Amla :

Amla is a very nutritious fruit and great religious significance has been attached to it. Amla fruit is very dear to Lord Vishnu and its use on the auspicious day of Ekadashi brings unmatched virtue. A person who regularly eats amla enjoys a long life.The following tale adequately describes the religious importance of amla —

Once upon a time, a chandala went into the forest for hunting. He hunted many deer and birds. Feeling hungry, he saw an amla tree and climbed up the tree. This way he satiated his hunger by eating sweet amla fruits. Unfortunately while he was climbing down the tree, he fell down and died.When the attendants of Yamaraj arrived to take back his soul, they could not do so even after repeated attempts. The attendants of Yamaraj became very surprised and went to the sages for clarification. The sages revealed to the attendants that they could not go near the chandala’s dead body, because he had eaten amla just before his death. Such is the glory of amla!

Tulasi  :

Once Kartikeya asked Lord Shiva about the holiest tree, which was capable of giving salvation. Lord Shiva replied—The Tulsi plant is supreme among all the vegetations. She is very dear to lord Vishnu and fulfills all the desires of a man. Lord Krishna dwells near the place where there is a Tulsi plant. Spirits and ghosts never dare to venture near the Tulsi plant. If a man attaches a Tulsi leaf to his Shikha at the time of his death, he is liberated from all his sins. One who worships Lord Vishnu by offering Tulsi-leaves attains salvation.

hadoop namenode format error : java.net.UnknownHostException

I am setting up Hadoop 0.23.1 in a pseudo distributed mode on Fedora 17,  when I tried to format the namenode using “bin/hadoop namenode -format” I came across the following error.

net.DNS (DNS.java:resolveLocalHostname(184)) – Unable to determine local hostname -falling back to “localhost”
java.net.UnknownHostException: XXXX:XXXX
This can be solved by the changing the hostname to localhost

check the hostname by the command

$ hostname


change the hostname to localhost

to permanently change the hostname

1) debian based systems( example : ubuntu)

edit etc/hostname and enter localhost in it  and run /etc/init.d/hostname.sh start

2) RedHat based systems

edit /etc/sysconfig/network to enter the new hostname and new hostname is preserved even on reboot also.

the same problem is occured in the following link.


What is correct?

In our lives We come across many choices every day among which we need to select and decide the right among them. It starts with birth(boy or girl) it continues in all phases of life like childhood( selecting clothes, shoes, toys, school) education( engineering,medicine, law, pharmacy, sports, commerce, business) marriage( spouse beauty , qualification , finance status, love, etc..) job( company, salary, reputation) so on. Like this we need to make many decisions out of choices present, which we need to select the CORRECT one.

What is the definition of CORRECT choice? Is there any choice which is a ‘wrong’ ? The decision which we make today might be a wrong some years later and vice versa. I saw individuals who felt that they took a correct decision on a particular day in their past repenting for the same decision they took at present. And at the same time I saw individuals who felt very depressed about the decision they took in past but they are very happy at present. What’s going wrong then?

It’s because every decision we take will have many interdependent results associated with the decision. For example , a student who aims for higher education in foreign countries have to miss their parents for some years. Is aiming for higher education is wrong decision? Because at times, due to our studies or job we cannot able to extend our hand to our parents when it is desperately needed. On the other side if we do not aim for higher studies we fear that we cannot lead a decent life in future . This is only side of thinking. On the other side if achieve decent financial stability we can look after our parents and children without any problem.
So it means that there is no decision that is correct and wrong. It’s all about how we take and how we build on it. One need not repent for the decision he took some years ago. One should dream for a better tomorrow and lead a satisfactory life. At the end of the day satisfaction counts. What’s the use of driving BMW and not getting satisfied and some satisfying even if they ride a bicycle.
We cannot quantify some,like stars, human desires, rain droplets etc. just enjoy them. One the other hand one should not compromise, if an individual compromises on everything we can never have one more Steve Jobs among us. So tag line is don’t compromise but satisfy even though both cannot share same shelter.