How to include a raw image file into build output folder

How to include a raw image file into build output folder

BY 14 Jan 2015 Native Application Development

I have a head_32.png file in /res/images/, I want to use this image file in .c file, as the code

    Evas_Object *bg = elm_bg_add(obj);
    char buf[PATH_MAX];
    snprintf(buf, sizeof(buf), "%s/head_32.png", ICON_DIR);
    elm_bg_file_set(bg, buf, NULL);


#define ICON_DIR "/opt/usr/apps/org.tizen.myweixin/res/images"

The actually result is the bg set is unsuccess, I can’t see the background image. 

Also, I’ve checked my Debug folder(the building output folder), there is no images folder in its sub folder res.

I am used the Tizen SDK 2.3, did anybody know how to solve this issue?

Written by