Languages

Menu
Sites
Language
3rd party library dynamic linking

Hi All,

i need to dynamically link the third party library in my native application.

Can you help me?

Best regards,

Mohan

 

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
youngsik yoon
please refer to https://developer.tizen.org/help/topic/org.tizen.native.appprogramming/html/app_dev_process/adding_libraries_and_library_search_paths.htm
Alex Dem
Hi, If you want to use 3rd party lib dynamic linking at runtime please use Tizen::Base::Runtime::Library class: Your code will looks like: ... //get a lib Path wchar_t const * const LIB_NAME = L"lib/libHybridServiceLib.so"; Tizen::App::App *pxApp = Tizen::App::App::GetInstance(); String libPath = pxApp-> GetAppRootPath(); libPath.Append(LIB_NAME); //get initialized instance of Library Tizen::Base::Runtime::Library library; result r = library.Construct(libPath); //get a function pointer void *pMethod = library.GetProcAddress(L"CalculateMd5"); pCalculateHash = reinterpret_cast(pMethod); //use the function pCalculateHash(pByteArray, byteArrayLength); ... Alexey.
Mohan Kumar
thanks for your answers. will try and let you know.