Page 1 of 1
Accessing camera functions
Posted: Wed Jan 30, 2013 5:41 pm
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.
Re: Accessing camera functions
Posted: Thu Jan 31, 2013 11:04 pm
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..
Re: Accessing camera functions
Posted: Fri Feb 01, 2013 11:39 am
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?
Re: Accessing camera functions
Posted: Fri Feb 01, 2013 12:44 pm
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...
Re: Accessing camera functions
Posted: Fri Feb 01, 2013 12:47 pm
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)
Re: Accessing camera functions
Posted: Fri Feb 01, 2013 5:49 pm
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!
Re: Accessing camera functions
Posted: Fri Feb 01, 2013 6:06 pm
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:
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...