Latest Open Source Build error!!

by John Cola » Sun, 22 Mar 2009 05:15:17 GMT


Sponsored Links
 Hi all
The latest open source, Master, build error with following message

In file included from external/opencore/oscl/oscl/osclio/src/
oscl_file_async_read.cpp:33:
external/opencore/oscl/oscl/osclio/src/oscl_file_native.h:141: error:
field 'sigbushandler' has incomplete type
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/
libosclio_intermediates/src/oscl_file_async_read.o] Error 1

Please Help!!!
--~--~---------~--~----~------------~-------~--~----~



Latest Open Source Build error!!

by Jean-Baptiste Queru » Sun, 22 Mar 2009 05:26:58 GMT


  http://groups.google.com/group/android-framework/browse_thread/thread/775582c99fa2980f 

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Latest Open Source Build error!!

by js » Sun, 29 Mar 2009 19:22:30 GMT


 Hi, I did repo sync yesterday, the build fails now when I do make.
Looks there was the similar problem before. What could be wrong and
how to fix it?

Regards
js

make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/
libosclio_intermediates/src/oscl_file_async_read.o] Error 1




> 



Latest Open Source Build error!!

by Jean-Baptiste Queru » Sun, 29 Mar 2009 19:24:53 GMT


 You need to specify "BUILD_WITHOUT_PV=true make" (and do "rm -rf out/"
before that to get rid of stuff that shouldn't have been built).

JBQ




>> 



Latest Open Source Build error!!

by wjcs » Sun, 29 Mar 2009 22:34:32 GMT


 Hi:
Following are the files that I changed to workaround the build problem without
setting the BUILD_WITHOUT_PV to true. Need to test the images built later
after I got back home. Good luck.

$ repo status
project external/opencore/                      (*** NO BRANCH ***)
 -m     Android.mk
 -m     android/android_surface_output.cpp
 -m     android/author/android_camera_input.cpp
 -m     android/mediascanner.cpp
 -m     android/playerdriver.cpp
 -m     tools_v2/build/make/android_make_extras.mk
 -m     tools_v2/build/make/platforms/android.mk
project frameworks/base/                        (*** NO BRANCH ***)
 -m     include/media/PVPlayer.h
 -m     media/libmediaplayerservice/MediaRecorderClient.cpp

Best Regards,
wjcs





> > 



Latest Open Source Build error!!

by John Cola » Mon, 30 Mar 2009 10:55:12 GMT


 Hi wjcs
Any update for the test result?

And Hi JBQ
Any schedule for steady OpenCore on Master?
We also find there is a video playback problem in previous release
when stop playing video and play other video subsequently, it show
something in Camera application not respond...
And some time there is a balck frame overlay the screen... :(

BR
John




> > >



Latest Open Source Build error!!

by Jean-Baptiste Queru » Mon, 30 Mar 2009 11:27:07 GMT


  don't have any ETA for a stable OpenCORE in master, sorry.

JBQ

On Mon, Mar 30, 2009 at 3:54 AM, John Cola <jt...@marvell.com> wrote:



--
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~---------~--~----~------------~-------~--~----~



Latest Open Source Build error!!

by wjcs » Tue, 31 Mar 2009 03:32:07 GMT


 i John:
Sorry for the late reply.

The image booted up fine on the ADP1 phone.
After playing around for a while with the vanilla configuration, I could
only say current master version still needs more time to cock.

Some notice-able issues are
1) SD card is unmountable even after replug-in the SD card.
2) Scanning for GSM service provider seemed work, but slow.
3) Unable to receive incoming call, but outgoing call seemed fine.
4) System volume is way too low, even with the maximum setting on the
media/ringtone volume.
5) Unable to set ring-tones.

There are still other issues in this build, and I just list some significant
ones above. Not sure if these issues have anything to do with BUILD_WITHOUT_PV
settings. Need more time to find the problems.

Thanks,

Best Regards,
wjcs

On Mon, Mar 30, 2009 at 6:54 AM, John Cola <jt...@marvell.com> wrote:


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. fail to prepare with MediaRecorder

Hello,

I have a problem with MediaRecorder. I want to record video. But fail
to prepare the MediaRecorder.
Here is the logs and source code. Is there anything wrong?

In the logs, [Failed to get camera(0x32e58) parameters].
I think that this is due to.
Why failed to get camera parameters?
Also, what should I do?

- Environment
-- Dev phone 1
-- OS 1.6

Thank you.

---- source code ----
private boolean initializeRecorder() {
    Log.i(TAG, "initializeRecorder");
    try {
        releaseMediaRecorder();
        mRecorder = new MediaRecorder();
        mRecorder.setCamera(mCameraDevice);
        mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
        mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
 
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
        mRecorder.setMaxDuration(30000);
        mRecorder.setOutputFile("/sdcard/sample.3gp");
        mRecorder.setVideoFrameRate(10);
        mRecorder.setVideoSize(176, 144);
        mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
        mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
        mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface());
        mRecorder.setMaxFileSize(50000000);
        mRecorder.prepare();                                            // <- 
occur exception
        Log.i(TAG, "initializeRecorder prepared");      // <- not called
        return true;
    } catch (IllegalStateException e) {
        releaseMediaRecorder();
        e.printStackTrace();
    } catch (IOException e) {
        releaseMediaRecorder();
        e.printStackTrace();
    }
    return false;
}
--------

---- logs ----

I/ActivityManager(72): Starting activity: Intent
{ cmp=com.wataru.test15/.RecordVideoActivity }
D/test15(1698): test15 onPause()
I/RecordVideoActivity(1698): startPreview
D/CameraService(51): CameraService::connect E (pid 1698, client
0x1c3f8)
D/CameraService(51): Client::Client E (pid 1698)
D/QualcommCameraHardware(51): createInstance: E
D/QualcommCameraHardware(51): createInstance: X created
hardware=0x20068
D/CameraService(51): Client::Client X (pid 1698)
D/CameraService(51): CameraService::connect X
D/CameraService(51): getParameters(antibanding=off;antibanding-
values=off;effect=none;effect-
values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;jpeg-
quality=100;jpeg-thumbnail-height=384;jpeg-thumbnail-quality=90;jpeg-
thumbnail-width=512;picture-format=jpeg;picture-size=2048x1536;picture-
size-values=2048x1536,1600x1200,1024x768;preview-
format=yuv420sp;preview-frame-rate=15;preview-
size=480x320;whitebalance=auto;whitebalance-
values=auto,incandescent,florescent,daylight,cloudy,twilight,shade)
D/CameraService(51): setParameters(jpeg-thumbnail-
width=512;antibanding-values=off;preview-frame-rate=15;preview-
size=176x144;picture-format=jpeg;antibanding=off;jpeg-thumbnail-
height=384;picture-size=2048x1536;effect=none;whitebalance=auto;jpeg-
thumbnail-quality=90;jpeg-quality=100;whitebalance-
values=auto,incandescent,florescent,daylight,cloudy,twilight,shade;preview-
format=yuv420sp;effect-
values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;picture-
size-values=2048x1536,1600x1200,1024x768)
D/Camera(1698): app passed NULL surface
D/CameraService(51): setPreviewDisplay(0x0) (pid 1698)
D/CameraService(51): startPreview (pid 1698)
D/CameraService(51): startCameraMode(0) (pid 1698)
D/CameraService(51): mSurface is not set yet.
D/CameraService(51): startPreviewMode (pid 1698)
I/QualcommCameraHardware(51): initPreview E: preview size=176x144
D/QualcommCameraHardware(51): frame_thread E
W/RecordVideoActivity(1698): surfaceCreated
D/CameraService(51): setPreviewDisplay(0x310c8) (pid 1698)
I/RecordVideoActivity(1698): initializeRecorder
D/CameraService(51): getParameters(antibanding=off;antibanding-
values=off;effect=none;effect-
values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;jpeg-
quality=100;jpeg-thumbnail-height=384;jpeg-thumbnail-quality=90;jpeg-
thumbnail-width=512;picture-format=jpeg;picture-size=2048x1536;picture-
size-values=2048x1536,1600x1200,1024x768;preview-
format=yuv420sp;preview-frame-rate=15;preview-
size=176x144;whitebalance=auto;whitebalance-
values=auto,incandescent,florescent,daylight,cloudy,twilight,shade)
I/RecordVideoActivity(1698): initializeRecorder manually call
camera.getParameters()
I/RecordVideoActivity(1698): releaseMediaRecorder
D/CameraService(51): Client::connect E (pid 51, client 0x32e5c)
W/CameraService(51): Attempt to use locked camera (client 0x1c3f8)
from different process  (old pid 1698, new pid 51)
W/CameraService(51): Tried to connect to locked camera (old pid 1698,
new pid 51)
I/MediaRecorderJNI(1698): prepare: surface=0x1f0be8 (id=2)
I/OMXVenc(51): component_init::292 Initializing component
OMX.qcom.video.encoder.h263
E/OMXVenc(51): get_parameter::922 unsupported index 267887431
E/OMXVenc(51): get_parameter::899 unsupported index 117440523
E/OMXVenc(51): set_parameter::1099 unsupported index in set_parameter
117440523
E/OMXVenc(51): get_parameter::922 unsupported index 100663301
E/OMXVenc(51): set_parameter::1142 unsupported index 100663301
E/OMXVenc(51): get_parameter::922 unsupported index 100663302
E/OMXVenc(51): set_parameter::1142 unsupported index 100663302
I/OMXVenc(51): send_command::690 attempt to move to new state 2
E/OMXVenc(51): Setting OMX_Video_ControlRateVariable
E/OMXVenc(51): process_state_change::2440 Rotation is: 0 in 258376
I/VENC_DRV(51): venc_drv_malloc::1155 /dev/pmem_adsp
I/VENC_DRV(51): venc_drv_malloc::1183 phys lookup success
virt=0x41364000 -- FD=27 -- size - 524288
W/InputConnectionWrapper.ICC(430): Timed out waiting on
IInputContextCallback
D/CameraInput(51): Intended mFrameWidth=176, mFrameHeight=144
E/CameraInput(51): Failed to get camera(0x32e58) parameters
E/MediaRecorder(1698): prepare failed: -2147483648
I/RecordVideoActivity(1698): releaseMediaRecorder
I/OMXVenc(51): send_command::690 attempt to move to new state 1
E/VENC_CONTEXT(51): VencContext_DestroyStatsThread::499 failed to join
stats thread
E/VENC_CONTEXT(51): VencContext_DeviceNotifyDestroy::532 Failed to
destroy stats thread
E/QCOmxcore(51): OMXCORE API :  Free Handle 3f0c4
I/OMXVenc(51): component_deinit::1912 deinitializing component...
E/QCOmxcore(51):  Unloading the dynamic library for
OMX.qcom.video.encoder.h263
W/System.err(1698): java.io.IOException: prepare failed.
--------

-- 

2. android ksoap2 Caused by: java.lang.RuntimeException: Cannot seralize (double data type)

Hi
In my project i am using ksoap2-android-assembly-2.4-jar-with-
dependencies.jar for web service purpose.

I got able to access the service and passing simple parameters and get
the objects and iterate it.

But the problem is i cant able to send the complex object. Can anybody
know how to pass the complex object with date and double values.

Employee object have string name, int number, double salary and Date
dateOfBirth.

And the employee object implements KvmSerializable
name="Mike"
number=2;
salary=20000
dateOfBirth = new Date();

and the code is

SOAP_ACTION = "http://xysed/GetHRA";
METHOD_NAME = "GetHRA";

TextView authenticate = new TextView(this);

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

PropertyInfo pi = new PropertyInfo();
pi.setName("employee");
Employee e = new Employee();
e.setNumber(4);
e.setName("Ananth");
e.setSalary(20000);
e.setDob(new Date());
pi.setValue(e);
pi.setType(Employee.EMPLOYEE_CLASS);
request.addProperty(pi);
request.addProperty("employee", e);


SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
Marshal dateMarshal = new MarshalDate();
dateMarshal.register(envelope);
//envelope.addMapping(Employee.NAMESPACE, "Employee", new
Employee().getClass());
try {
AndroidHttpTransport androidHttpTransport = new
AndroidHttpTransport(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);

//String fullName = (String)envelope.getResponse();
Log.v("Full String :", envelope.getResponse().toString());
Log.v("body in :", envelope.bodyIn.toString());
Log.v("body out :", envelope.bodyOut.toString());

authenticate.setText(envelope.getResponse().toStri ng());
this.setContentView(authenticate);

} catch (IOException ioe) {
ioe.printStackTrace();
} catch (XmlPullParserException xpe) {
xpe.printStackTrace();
}



I pass this employee object as a request i got an error like

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.oak.soap.test/com.oak.soap.test.WebserviceDisplay}:
java.lang.RuntimeException: Cannot serialize: 20000.0

here 20000.0 is a salary ( double value)

ERROR/AndroidRuntime(287): Caused by: java.lang.RuntimeException:
Cannot serialize: 20000.0


Can anybody provide samples for how to pass complex object as request
to web service

Thanks
mindus

-- 

3. Pinch-Zoom for Gallery.

4. Maps API and legacy

5. Input sound from Bluetooth Headset at time to recognize speech

6. Signature permissions level with a list of trusted key

7. Multi-touch for a Piano