linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Error running Make for Linphone-Android


From: Sergio del Valle
Subject: [Linphone-developers] Error running Make for Linphone-Android
Date: Thu, 14 Aug 2014 11:31:13 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.0

Hello,

After having some trouble getting the files from the git repository (some servers were offline), I finally have a successful clone of the linphone-android project.

I've followed the README instructions, installing all the necessary components but when I run the Makefile everything works ok until almost the end, receving this error:

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for Linphone...
[gettarget] Project Target:   Android L (Preview)
[gettarget] API level:        L

BUILD FAILED
/home/sergio/android-sdk/sdk/tools/ant/build.xml:542: For 'L' SDK Preview, attribute minSdkVersion in AndroidManifest.xml must be 'L' (current: 8)

Total time: 6 seconds
make: *** [javah] Error 1



It seems to be one of the final steps (the APK generation) and I don't know why it insists in building for the latest API level. Even changing the manifest.xml doesn't seem to affect this error.

Also, when running the Makefile, several errors seems to be happening although none of them stops the compilation process.

Do I need to succesfully run the makefile so I can create my own Android SIP solutions? I've tried with "make linphone-sdk" as suggested in the README but it seems the documentation is wrong since it's not recognized as a valid command.

Here's the full output in subsequent runs of make after the initial failed execution:

address@hidden:~/linphone-android$ make
/home/sergio/android-sdk/sdk/tools/android update project --path . --target android-L
Updated project.properties
Updated local.properties
build.xml: Found version-tag: custom. File will not be updated.
Updated file ./proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
/home/sergio/android-sdk/sdk/tools/android update project --path liblinphone_tester --target android-L
Updated project.properties
Updated local.properties
Updated file liblinphone_tester/proguard-project.txt
mkdir -p /home/sergio/linphone-android/submodules/externals/openh264/include/wels
rsync -rvLpgoc --exclude ".git"  /home/sergio/linphone-android/submodules/externals/openh264/codec/api/svc/* /home/sergio/linphone-android/submodules/externals/openh264/include/wels/.
sending incremental file list

sent 150 bytes  received 12 bytes  324.00 bytes/sec
total size is 28,334  speedup is 174.90
mkdir -p /home/sergio/linphone-android/submodules/externals/build/openh264
mkdir -p /home/sergio/linphone-android/submodules/externals/build/openh264/arm
cd /home/sergio/linphone-android/submodules/externals/build/openh264/arm \
    && rsync -rvLpgoc --exclude ".git"  /home/sergio/linphone-android/submodules/externals/openh264/* .
sending incremental file list

sent 22,978 bytes  received 134 bytes  46,224.00 bytes/sec
total size is 13,677,783  speedup is 591.80
cd /home/sergio/linphone-android/submodules/externals/build/openh264/arm && \
    make libraries -j 2 OS=android ARCH=arm NDKROOT=/home/sergio/android-ndk-r9c TARGET=android-L
make[1]: Entering directory `/home/sergio/linphone-android/submodules/externals/build/openh264/arm'
make[1]: Nothing to be done for `libraries'.
make[1]: Leaving directory `/home/sergio/linphone-android/submodules/externals/build/openh264/arm'
mkdir -p /home/sergio/linphone-android/submodules/externals/build/openh264
mkdir -p /home/sergio/linphone-android/submodules/externals/build/openh264/x86
cd /home/sergio/linphone-android/submodules/externals/build/openh264/x86 \
    && rsync -rvLpgoc --exclude ".git"  /home/sergio/linphone-android/submodules/externals/openh264/* .
sending incremental file list

sent 22,978 bytes  received 134 bytes  46,224.00 bytes/sec
total size is 13,677,783  speedup is 591.80
cd /home/sergio/linphone-android/submodules/externals/build/openh264/x86 && \
    make libraries -j 2 OS=android ARCH=x86 NDKROOT=/home/sergio/android-ndk-r9c TARGET=android-L
make[1]: Entering directory `/home/sergio/linphone-android/submodules/externals/build/openh264/x86'
make[1]: Nothing to be done for `libraries'.
make[1]: Leaving directory `/home/sergio/linphone-android/submodules/externals/build/openh264/x86'
cd /home/sergio/linphone-android/submodules/mssilk/sdk && \
    make extract-sources \
    || ( echo "SILK audio plugin prepare state failed." ; exit 1 )
make[1]: Entering directory `/home/sergio/linphone-android/submodules/mssilk/sdk'
make[1]: Nothing to be done for `extract-sources'.
make[1]: Leaving directory `/home/sergio/linphone-android/submodules/mssilk/sdk'
unzip -oq "sqlite-amalgamation-3071700.zip" "*/sqlite3.?" -d  /home/sergio/linphone-android/submodules/externals/sqlite3/
mv "/home/sergio/linphone-android/submodules/externals/sqlite3/sqlite-amalgamation-3071700/sqlite3".? /home/sergio/linphone-android/submodules/externals/sqlite3/
rmdir "/home/sergio/linphone-android/submodules/externals/sqlite3/sqlite-amalgamation-3071700/"
ant javah
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-i386/lib/tools.jar
Buildfile: /home/sergio/linphone-android/build.xml

-check-env:
 [checkenv] Android SDK Tools Revision 23.0.2
 [checkenv] Installed at /home/sergio/android-sdk/sdk

-setup:
     [echo] Project Name: Linphone
  [gettype] Project Type: Application

-set-debug-mode:

-pre-build:
     [move] Warning: Could not find file /home/sergio/linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/MediastreamerActivity.java to copy.

-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for Linphone...
[gettarget] Project Target:   Android L (Preview)
[gettarget] API level:        L

BUILD FAILED
/home/sergio/android-sdk/sdk/tools/ant/build.xml:542: For 'L' SDK Preview, attribute minSdkVersion in AndroidManifest.xml must be 'L' (current: 8)

Total time: 1 second
make: *** [javah] Error 1

Best regards,
Sergio

reply via email to

[Prev in Thread] Current Thread [Next in Thread]