OpenWrt Forum Archive

Topic: Create my own package where I want to use libconfig

The content of this topic has been archived on 2 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I want to write my own C-program for OpenWRT 8.09. In this program I want to use functions found in libconfig.

How should the structure of the files look in the package directory?
../test-program/Makefile ?
../test-program/test-program.c
../test-program/test-program.h
Anything more or in another way?

How should the makefile look when I want to use functions from libconfig in test-program.c?

Is it right that the only thing I need to do in my c-code is to include libconfig.h (or must I point to any path etc)?

Plz give me some advices and some examples. I'm eager to start coding but I cant make the code compile.

e.g.

./<name>/Makefile
./<name>/src/test-program.c
./<name>/src/test-program.h

Yanira wrote:

e.g.

./<name>/Makefile
./<name>/src/test-program.c
./<name>/src/test-program.h

Oki. Thanks.
The rest of my questions. Anyone?

The discussion might have continued from here.