语言

Menu
Sites
Language
Push Shared library to /usr/lib/ from Tizen IDE

Hi All,

I have created a shared library. Now I want to push it in /usr/lib/ location in Samsung Z1.

It says Read-Only file system while pushing the shared library.

I am not able to execute su command either. (After sdb shell)

Please help if anyone has done it earlier.

Thank you.

编辑者为: Dharmesh Guna 09 3月, 2015

响应

4 回复
Alex Ashirov

Hi,

You can’t change platform directory. It’s read-only.

If you need to use your shared library then you can place it in your application’s lib directory. Please read more:

https://developer.tizen.org/documentation/mobile-native-app-programming/basics-native-app-programming/native-application-model/application-directory-policy

If you want include you application and shared library into single package then you can create multi project application:

https://developer.tizen.org/documentation/mobile-native-app-programming/application-development-process/developing-multiple-projects-package

Dharmesh Guna

Hi Alex,

Thank you for the suggestion.

Currently I am going through first approach.

Second approach is fine for building application in IDE. But when I install this multi packaged app in Device, Application is failing to launch.

Is there any dirrectory in Samsung Z1 where I can put my own library and set LD_LIBRARY_PATH accordingly?

Thank you.

 

Alex Ashirov

Hi,

Have you tried to copy your library (*.so file) into <your project>/lib subfolder and then build your project? 

Dharmesh Guna

Hi Alex,

Yes It is working that way. But I think other apps will not be able to access that libs.

Giving all my ui/service app separate library (*.so) copy will increase the size of my tpk package.

Thank you.