Languages

Menu
Sites
Language
How to add external library in tizen native project

Hello Developers,

 

I'm trying to include LibPng library in my Tizen native project. I've added "png" then "z" in Libraries (-l) under  C/C++ Build -> Settings ->Tool Settings ->

C++ Linker -> Libraries

and: "...\libpng-1.6.24" then "...\zlib-1.2.8" in the Library search path (-L) but couldn't reach to any success.

I'm getting the following lines as error:

cannot find -lpng

ninja: build stopped: subcommand failed.

Appreciation for any kind of help regarding including externel libraries in tizen native project.

Regards.

Responses

3 Replies
Armaan-Ul- Islam

Hello,

Have you added the library to your Path variabels ?

Please check...Right click on the specific Native project from project Explorer > Properties > C/C++ Generals > Paths & Symbols >

Add the directory to Library Path.

You would find the libraries now on Libraries tab. Select & Add.

Screen shot shared below:

https://drive.google.com/file/d/0B6KEP_6UcxrAaXROZDhYWjZhSjQ/view

Anup DSouza

I'm also having the same issue, it shows

Description    Resource    Path    Location    Type
cannot find -l../lib/libstaticlibrary.a    StaticLibDemo             C/C++ Problem

I can confirm that the paths have been added in the required locations. What could be the issue?

 

Dev L

I am phasing the same issue please help. I did try Armaan-Ul- Islam solution but still i phasing the issue please help.