Accessing camera functions

Here for general support for E series TVs, request and problem solve area.
Post Reply

JoeyBiggins
Posts: 24
Joined: Tue Jan 22, 2013 10:29 am

Accessing camera functions

Post by JoeyBiggins »

Hi!

I'm playing around simply trying to load the libMoIPCamera.so files to gain access to simple camera functions. I can't seem to find anywhere on SamyGo where this has been done.

I'm attempting to do this by:

Code: Select all

		if ( (newHandle = dlopen("....libMoIPCamera_2058.so",RTLD_LAZY | RTLD_GLOBAL)) == NULL )
		{
			printf( "Could not open file : %s\n", dlerror() );	
			return 1;
		}
but all i receive is "Could not open file : ....libMoIPCamera_205b.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE"

Any thoughts on why the symbol is undefined.
E3V3A
Posts: 247
Joined: Wed Oct 31, 2012 2:31 am
Location: /dev/zero

Re: Accessing camera functions

Post by E3V3A »

I'm not the right person to answer this, but I suspect you're trying to load a kernel library that has been compiled for a different kernel version..or something like that. What are you trying to do exactly? Where did you get that .so from and what kernel are you on? etc..
HW: UE40ES5700SXXH
FW: T-MST10PDEUC-1029.0 Onboot: 1003
JoeyBiggins
Posts: 24
Joined: Tue Jan 22, 2013 10:29 am

Re: Accessing camera functions

Post by JoeyBiggins »

Im not sure about the kernel version but im on an E series EU40ES7000.

The libMoIPCamera_2058.so is a file found in the empCamera folder /mtd_rwcommon/emps/empCamera/
I am trying to load this library so that I can use the camera functions to create my own application.

I have managed to resolve the error I had by first opening some of the other library dependancies, but am now struggling to use the functions in the library.
Im trying to load the functions using the dlsym method similar to the way mentioned in this topic: viewtopic.php?f=1&t=1009

I am using the mangled function names from decompiling the library and seem to be able to call them. Has anyone made any progress in this area?
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Accessing camera functions

Post by arris69 »

JoeyBiggins wrote:Im not sure about the kernel version but im on an E series EU40ES7000.

The libMoIPCamera_2058.so is a file found in the empCamera folder /mtd_rwcommon/emps/empCamera/
I am trying to load this library so that I can use the camera functions to create my own application.

I have managed to resolve the error I had by first opening some of the other library dependancies, but am now struggling to use the functions in the library.
Im trying to load the functions using the dlsym method similar to the way mentioned in this topic: viewtopic.php?f=1&t=1009

I am using the mangled function names from decompiling the library and seem to be able to call them. Has anyone made any progress in this area?
this emp stuff is documented somewhere on samsungdforum.com.
if you plan to write a native application then you have to implement also the whole video/display engine...
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Accessing camera functions

Post by arris69 »

JoeyBiggins wrote:Hi!

I'm playing around simply trying to load the libMoIPCamera.so files to gain access to simple camera functions. I can't seem to find anywhere on SamyGo where this has been done.

I'm attempting to do this by:

Code: Select all

		if ( (newHandle = dlopen("....libMoIPCamera_2058.so",RTLD_LAZY | RTLD_GLOBAL)) == NULL )
		{
			printf( "Could not open file : %s\n", dlerror() );	
			return 1;
		}
but all i receive is "Could not open file : ....libMoIPCamera_205b.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE"

Any thoughts on why the symbol is undefined.
this symbole is in best case in some other library (.so file, then you need to link agains this library, but this can give you more unresolved symboles...) in worst case in exeDSP (statically)
JoeyBiggins
Posts: 24
Joined: Tue Jan 22, 2013 10:29 am

Re: Accessing camera functions

Post by JoeyBiggins »

this symbole is in best case in some other library (.so file, then you need to link agains this library, but this can give you more unresolved symboles...) in worst case in exeDSP (statically)
Thanks, I managed to get that bit working by linking the other required libraries before the one I wanted to use.

I will have a look on the samsungdforum forum but I dont want to write a graphics engine yet, just explore the possibilities.
So far I have been able to load two of the camera libraries but one of them requires the missing symbol _ZTI8PCThread and I havent had much luck finding this.. I am hoping it is not in exeDSP!

At the moment im just slowely looking through the .so files in the hope that I will find it. I dont know any better method of finding it!
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Accessing camera functions

Post by arris69 »

JoeyBiggins wrote:...
So far I have been able to load two of the camera libraries but one of them requires the missing symbol _ZTI8PCThread and I havent had much luck finding this.. I am hoping it is not in exeDSP!

At the moment im just slowely looking through the .so files in the hope that I will find it. I dont know any better method of finding it!
in one of my old experiments i have:
SpoilerShow

Code: Select all

/* libMMFCore.so: undefined symbol: _ZTI8PCThread */
/* typedef void *(*PCThread){
        void *(*SetPriority)(int);
        void *(*Create)(unsigned long);
        void *(*Destroy)(void);
}PCThread; */
typedef void PCThread(void);
PCThread *_ZTI8PCThread(void){
        printf("%s:\n",__FUNCTION__);
}

sou you end here in exeDSP...

Post Reply

Return to “[E] Support”