linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] Linphone-android build fails


From: Sylvain Berfini
Subject: Re: [Linphone-developers] Linphone-android build fails
Date: Tue, 19 Apr 2016 17:12:26 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0

Hi Bilal,

I think you don't have any (or at least recent enough) Android SDK installed.

Run the android SDK manager and install the latest one.

Cheers.

Sylvain Berfini
Software Engineer @ Belledonne Communications
Le 19/04/2016 à 16:54, Bilal Baloch a écrit :
Dear Linphone developers,
 
I am trying to build linphone for android on linux using eclipse platform. But it fails with the following error. Looking forward for valuable suggestions. Thanks.

Steps followed to build are:
- Cloned project form github
- git submodule update --init --recursive
- ./prepare.py -C && ./prepare.p && make


Output

-compile:
    [javac] Compiling 219 source files to /linphone-android/bin/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:6: error: package android.hardware.camera2 does not exist
    [javac] import android.hardware.camera2.CameraAccessException;
    [javac]                                ^
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:7: error: package android.hardware.camera2 does not exist
    [javac] import android.hardware.camera2.CameraCharacteristics;
    [javac]                                ^
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:8: error: package android.hardware.camera2 does not exist
    [javac] import android.hardware.camera2.CameraManager;
    [javac]                                ^
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:9: error: package android.hardware.camera2.params does not exist
    [javac] import android.hardware.camera2.params.StreamConfigurationMap;
    [javac]                                       ^
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:24: error: cannot find symbol
    [javac]     @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    [javac]                                   ^
    [javac]   symbol:   variable LOLLIPOP
    [javac]   location: class VERSION_CODES
    [javac] /linphone-android/src/org/linphone/CallIncomingActivity.java:89: error: cannot find symbol
    [javac]         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT_WATCH) {
    [javac]                                                         ^
    [javac]   symbol:   variable KITKAT_WATCH
    [javac]   location: class VERSION_CODES
    [javac] /linphone-android/src/org/linphone/CallIncomingActivity.java:90: error: cannot find symbol
    [javac]             isActive = pm.isInteractive();
    [javac]                          ^
    [javac]   symbol:   method isInteractive()
    [javac]   location: variable pm of type PowerManager
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:55: error: cannot find symbol
    [javac]             .setVisibility(Notification.VISIBILITY_PRIVATE)
    [javac]                                        ^
    [javac]   symbol:   variable VISIBILITY_PRIVATE
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:54: error: cannot find symbol
    [javac]             .setCategory(Notification.CATEGORY_MESSAGE)
    [javac]                                      ^
    [javac]   symbol:   variable CATEGORY_MESSAGE
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:73: error: cannot find symbol
    [javac]             .setVisibility(Notification.VISIBILITY_PUBLIC)
    [javac]                                        ^
    [javac]   symbol:   variable VISIBILITY_PUBLIC
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:72: error: cannot find symbol
    [javac]             .setCategory(Notification.CATEGORY_CALL)
    [javac]                                      ^
    [javac]   symbol:   variable CATEGORY_CALL
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:91: error: cannot find symbol
    [javac]                 .setVisibility(Notification.VISIBILITY_SECRET)
    [javac]                                            ^
    [javac]   symbol:   variable VISIBILITY_SECRET
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:90: error: cannot find symbol
    [javac]                 .setCategory(Notification.CATEGORY_SERVICE)
    [javac]                                          ^
    [javac]   symbol:   variable CATEGORY_SERVICE
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:101: error: cannot find symbol
    [javac]                 .setVisibility(Notification.VISIBILITY_SECRET)
    [javac]                                            ^
    [javac]   symbol:   variable VISIBILITY_SECRET
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:100: error: cannot find symbol
    [javac]                 .setCategory(Notification.CATEGORY_SERVICE)
    [javac]                                          ^
    [javac]   symbol:   variable CATEGORY_SERVICE
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:122: error: cannot find symbol
    [javac]         .setVisibility(Notification.VISIBILITY_PRIVATE)
    [javac]                                    ^
    [javac]   symbol:   variable VISIBILITY_PRIVATE
    [javac]   location: class Notification
    [javac] /linphone-android/src/org/linphone/compatibility/ApiTwentyOnePlus.java:121: error: cannot find symbol
    [javac]         .setCategory(Notification.CATEGORY_MESSAGE)
    [javac]                                  ^
    [javac]   symbol:   variable CATEGORY_MESSAGE
    [javac]   location: class Notification
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:28: error: cannot find symbol
    [javac]             CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE);
    [javac]             ^
    [javac]   symbol:   class CameraManager
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:28: error: cannot find symbol
    [javac]             CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE);
    [javac]                                      ^
    [javac]   symbol:   class CameraManager
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:28: error: cannot find symbol
    [javac]             CameraManager manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE);
    [javac]                                                                                     ^
    [javac]   symbol:   variable CAMERA_SERVICE
    [javac]   location: class Context
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:37: error: cannot find symbol
    [javac]                     CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId);
    [javac]                     ^
    [javac]   symbol:   class CameraCharacteristics
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:38: error: cannot find symbol
    [javac]                     int camFacing = characteristics.get(CameraCharacteristics.LENS_FACING);
    [javac]                                                         ^
    [javac]   symbol:   variable CameraCharacteristics
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:40: error: cannot find symbol
    [javac]                     if (camFacing == CameraCharacteristics.LENS_FACING_FRONT) {
    [javac]                                      ^
    [javac]   symbol:   variable CameraCharacteristics
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:43: error: cannot find symbol
    [javac]                     int camOrientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION);
    [javac]                                                              ^
    [javac]   symbol:   variable CameraCharacteristics
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:44: error: cannot find symbol
    [javac]                     StreamConfigurationMap configs = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
    [javac]                     ^
    [javac]   symbol:   class StreamConfigurationMap
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:44: error: cannot find symbol
    [javac]                     StreamConfigurationMap configs = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
    [javac]                                                                          ^
    [javac]   symbol:   variable CameraCharacteristics
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:45: error: cannot find symbol
    [javac]                     android.util.Size[] supportedSizes = configs.getOutputSizes(ImageFormat.JPEG);
    [javac]                                 ^
    [javac]   symbol:   class Size
    [javac]   location: package android.util
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:48: error: cannot find symbol
    [javac]                         android.util.Size size = supportedSizes[j];
    [javac]                                     ^
    [javac]   symbol:   class Size
    [javac]   location: package android.util
    [javac] /linphone-android/submodules/linphone/mediastreamer2/java/src/org/linphone/mediastream/video/capture/hwconf/AndroidCameraConfigurationReader21.java:61: error: cannot find symbol
    [javac]             } catch (CameraAccessException exp) {
    [javac]                      ^
    [javac]   symbol:   class CameraAccessException
    [javac]   location: class AndroidCameraConfigurationReader21
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 29 errors
    [javac] 3 warnings

BUILD FAILED
/adt-bundle-linux-x86_64-20140321/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/adt-bundle-linux-x86_64-20140321/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 20 seconds
make: *** [generate-apk] Error 1



Bilal Baloch
Software Engineer, Sweden


On Thursday, April 14, 2016 12:12 PM, Bilal Baloch <address@hidden> wrote:


Dear Developers,

I have downloaded latest git repo for android and run the following commands.

- git pull
- git submodule update --recursive --init

When I try to build code, it fails with errors. I am attaching log file as an output for "./prepare.py -C && ./prepare.py && make" command.

Any help would be highly appreciated. Thanks
 
Bilal Baloch
Software Engineer, Sweden




_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

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