Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linphone 'make' error: Could not find ndk-build, Could not find android

I've followed multiple solutions, but still have no resolution. This is what I have...

Linphone residing in eclipse project root directory:

:~/workspace/David2/linphone-android$ 

my .bashrc is as follows:

export PATH=${PATH}:/home/david/Desktop/android/android-sdk-linux/tools

export PATH=${PATH}:/home/david/Desktop/android/android-sdk-linux/platform-tools

export PATH=${PATH}:/home/david/Desktop/android/android-ndk-r10c

My android-sdk is in directory according to paths, same goes for the NDK..

The following is what I run in my Linphone dir...

~/workspace/David2/linphone-android$ sudo make
Could not find ndk-build. Please install android NDK.
Could not find android. Please install android SDK.

Running Dual boot with: "Ubuntu 14.04.3 LTS"

Linphone: sudo git clone git://git.linphone.org/linphone-android.git –recursive

Directory to show where SDK/NDK are located

~/Desktop/android$ dir android-ndk-r10c android-sdk-linux

I have no idea why it is not recognizing paths.. Only thing I could think of is that export PATH=${PATH}: is in wrong format...

Eclipse is set to corresponding paths also...

Eclipse NDK Location

Eclipse SDK Location

like image 228
Kaiser Avatar asked Feb 02 '26 11:02

Kaiser


1 Answers

Okay, so I have succeeded with $ make

  • NDK must be 10c (

EDIT - Built successfully with NDK 10e

  • SDK can be latest android sdk

1. Put all folders (including linphone-android in /home directory

2. .bashrc set is as follows:

     export PATH=${PATH}:/home/david/android-sdk-linux/tools
     export PATH=${PATH}:/home/david/android-sdk-linux/platform-tools
     export PATH=${PATH}:/home/david/android-ndk-r10c

                  (Download `android-ndk-r10c` from Google)

3. Next, change permissions on check_tools.sh located in linphone root directory.

4. chown -R user:user check_tools.sh -- replace user with your user/group etc...

Since I have dual boot + Windows/Ubuntu, I did this:

  `$ vi check_tools` --> add `set fileformat=dos` to top of file

or set fileformat=unix depending on your system to top of file...

5. Revert owner of check_tools.sh back to root:root

6. Open up new terminal Ctrl+Alt+T and type sudo apt-get install liblwp-protocol-https-perl -- Otherwise you will get a https error..

7. Finally, open up new terminal Ctrl+Alt+T, go to linphone-android root.. type make

 > `$ sudo make` displayed errors, but `$ make` seemed to work fine...

8. Leave makefile alone, did no changes to it...

Hopefully this helps anyone out who is experiencing "like" issues...

Thanks for the help!

like image 113
Kaiser Avatar answered Feb 04 '26 00:02

Kaiser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!