Closed
Bug 723418
Opened 13 years ago
Closed 13 years ago
in function GonkCameraInputStream::Init(nsACString_internal&, nsCaptureParams*):/home/cjones/mozilla/mozilla-central/netwerk/protocol/device/GonkCaptureProvider.cpp:263: error: undefined reference to 'HAL_getNumberOfCameras'
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: cjones, Assigned: fabrice)
References
Details
(Whiteboard: [inbound])
Attachments
(2 files)
(deleted),
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
This happens when I build b2g while configured for the emulator. Apparently the emulator doesn't have a libcamera.so to link against, at least our version of it.
Reporter | ||
Comment 1•13 years ago
|
||
Assignee: nobody → jones.chris.g
Attachment #593741 -
Flags: review?(gal)
Updated•13 years ago
|
Attachment #593741 -
Flags: review?(gal) → review+
Reporter | ||
Comment 2•13 years ago
|
||
Whiteboard: [inbound]
Assignee | ||
Comment 3•13 years ago
|
||
The previous patch will fail with devices that have only one camera and try to open the second one.
This patch dlsym() the HAL_getNumberOfCameras() instead.
Assignee: jones.chris.g → fabrice
Attachment #593864 -
Flags: review?(jones.chris.g)
Reporter | ||
Comment 4•13 years ago
|
||
So what?
Reporter | ||
Comment 5•13 years ago
|
||
Comment on attachment 593864 [details] [diff] [review]
followup
This doesn't make sense as a member method here, imho. I hacked because I didn't want to redactor so as to share the lib handle. I don't trust the linker.
But let's comprise. Make this a static method and r=me.
Attachment #593864 -
Flags: review?(jones.chris.g) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Comment 8•13 years ago
|
||
and the first part:
https://hg.mozilla.org/mozilla-central/rev/558ccc18ea2c
You need to log in
before you can comment on or make changes to this bug.
Description
•