Is mediacapture extension working with Rhodes 5.0.25 free version ?

T Thierry Leloup 3 years 7 months ago
1 0 0

Hello everybody,

I am trying to use the mediacapture API in order to capture images from the embedded device with Rhodes 5.0.25 free version.

I have added "mediacapture" to my Build.yml extensions section, cleaned everything and tried to build android application adding the online documentation example (Rhomobile | Camera).
and I have the following compilation error :

CMD: /Library/Java/Home/bin/javac -g -d /Users/thierry/dev/eTechDemonstrator/bin/tmp/Rhodes -source 1.6 -target 1.6 -nowarn -encoding latin1 -classpath /Users/thierry/android-sdk-macosx/platforms/android-21/android.jar:/Users/thierry/dev/eTechDemonstrator/bin/tmp/Rhodes:/Users/thierry/android-sdk-macosx/extras/android/support/v4/android-support-v4.jar @/Users/thierry/dev/eTechDemonstrator/bin/tmp/RhodesSRC_build.files
platform/android/Rhodes/src/com/rhomobile/rhodes/camera/ImageCapture.java:102: cannot find symbol
symbol  : variable surface
location: class com.rhomobile.rhodes.R.id
                surfaceView = (SurfaceView) findViewById(R.id.surface);
                                                             ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

rake aborted!
Error compiling java code

My javac vesion is 1.8.0_25.

When I tried to build an iPhone app, I have the following errors :

Undefined symbols for architecture armv7:
  "_get_camera_max_width", referenced from:
      -[CameraSingleton enumerate:] in libmediacapture.a(CameraSingleton.o)
      -[CameraSingleton getCameraByType:methodResult:] in libmediacapture.a(CameraSingleton.o)
      -[CameraFactory createCameraByID:] in libmediacapture.a(CameraFactory.o)
  "_get_camera_max_height", referenced from:
      -[CameraFactory createCameraByID:] in libmediacapture.a(CameraFactory.o)
  "_camera_choose_picture", referenced from:
      -[CameraSingleton choosePicture:methodResult:] in libmediacapture.a(CameraSingleton.o)
  "_camera_take_picture", referenced from:
      -[Camera takePicture:methodResult:] in libmediacapture.a(Camera.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could anybody help me here ?

Thanks,
Thierry

CONTACT
Can’t find what you’re looking for?