×
Namespaces

Variants
Actions

如何在Harmattan上打包部署动态链接库

From Nokia Developer Wiki
Jump to: navigation, search

This article explains how to package dynamic library into Harmattan deb

Article Metadata

代码示例
文章
flycarl 在 10 Nov 2011 创建
最后由 hamishwillee 在 13 Jun 2012 编辑

steps

TO create and use shared library , one can create an new project from Qt Creator menu->file->new->New File or Project->Other Project->C++ library follow the instruction on Qt Help .

then we create a project to use the library, announce the library in project file like this:

LIBS += -L../aaa -laaa

-L parameter show the library path, -l show library name.

here is one thing to mention on Harmattan platform, we need deploy the library from PC disk to phone memory, to do so add the following code in project file

my_lib.files = ../aaa/lib/*.* 
my_lib.path = /usr/lib
INSTALLS += my_lib

example

File:Dllinclude.zip

相关链接

This page was last modified on 13 June 2012, at 13:59.
76 page views in the last 30 days.
×