Languages

Menu
Sites
Language
[CLOSED] Building an open-source library that uses autoconf?

Is there any tutorial or examples on how to use Tizen build tools/cross compiler to build an open source library which requires GNU autoconf/autotools to build? Tizen CLI documentation does not discuss this.
 

Edited by: James B on 20 Feb, 2017
View Selected Answer

Responses

3 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 u need to install

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

]

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

James B

Thank Yasin.

I read a bit more about "gbs build", it's interesting; however it seems to me that it is an automated and very heavyweight tool to actually build the entire Tizen operating system (and its associated packages); requiring gigabytes of downloads from git sources; instead of a tool utilising the cross compilers found in the Tizen SDK.

Is this the only option? (I hope not).

Mark as answer
James B

Turns out that the answer is standard cross-compilation stuff, no big deal. Add Tizen SDK cross compiler to PATH; apply sysroot to CFLAGS; and specify the correct platform tuple (arm-linux-gnueabi in this case) to --host; and away you go.