Languages

Menu
Sites
Language
How to add tizen sdk to .mk file

I'm developing with mk file and linux make command.

 

mk file have content like below.

 

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := $(CONFIG_MODULE_...)

LOCAL_C_INCLUDES := \
        $(LOCAL_PATH)/src \

        ...

LOCAL_SRC_FILES := \
        $(wildcard $(CONFIG_DIR)/*.c)

LOCAL_CFLAGS := \
        $(CONFIG_LOCAL_EXPORT_CFLAGS) \
        $(CONFIG_COVERAGE_CFLAGS)

include $(BUILD_STATIC_LIBRARY)

 

In this file, there are a header file and the header have #include <tizen_error.h>

When I command make command, it show ....h:24:25: fatal error: tizen_error.h: No such file or directory

If I remove this file, command work well with dumy files.

 

How can I add tizen library or sdk to my mk config to work make command?

 

Responses

1 Replies
Yasin Ali

Hi~,

You may try with "gbs build".

Sharing concept:
1. gbs build any tizen project using your target repository
2. Copy the dependency of the project which you want to build to the packaging/spec file of the project on which you want to perform GBS build.

3. A gbs root will be created, which can be used as a device

copy your project to: $HOME/GBS-ROOT/local/BUILD-ROOTS/scratch.armv7l.0/home

in terminal: sudo chroot $HOME/GBS-ROOT/local/BUILD-ROOTS/scratch.armv7l.0

cd /home/yourproject directory

execute: autoreconf/auto

[

By the way this process will work on x86 GBS root

$HOME/GBS-ROOT/local/BUILD-ROOTS/scratch.i586.0
not arm GBS root
if you want to build for arm you need to install

apt-get install qemu binfmt-support qemu-user-static

]

..
For building check these links:
https://source.tizen.org/documentation/reference/git-build-system/usage/gbs-build
https://source.tizen.org/documentation/reference/git-build-system
..

Hope it will work.
If you find my post is helpful , please mark it as the Best Answer to
promote this post to others.