yep pas bete ! (en fait il fallait que je fasse ça, car dans la SDK ca se présente sous la forme …/include/gtk-2.0/gtk/toto.h … et dans le code tu met include <gtk/toto.h>) … Enfin bref 
C’est un peu galère de reprendre de l’open source quand tu connait deja pas les bases de la compilation croisée …
Le main ressemble à ça : (bon la c’est bourrin le début parce que c’est la version où j’ai mis tous les -I ^^)
[code]export CC=gcc
export CFLAGS=-g -Wall -I/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/include/glib-2.0
-I/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/lib/glib-2.0/include -I/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/lib/gtk-2.0/include -I/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/include/libxml2 -I/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/include/gtk-2.0 -I/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/include/pango-1.0 -I/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/include/atk-1.0 -I/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/include/ -I./include/ -I…/include/ pkg-config --cflags gtk+-2.0 openssl libxml-2.0 glib-2.0 libcurl
LDFLAGS= -Ipwd
/include/ pkg-config --libs gtk+-2.0 openssl libxml-2.0 libcurl gthread-2.0
IREXLD=-L/usr/local/lib -L/usr/local/ssl/lib -lfreetype -lfontconfig -lpng12 -lXrender -lX11 -lerdm -leripc
all: iNewsStand
noiliad : iNewsStand_noiliad
iNewsStand: main
${CC} obj/*.o ${LDFLAGS} ${IREXLD} -o iNewsStand
iNewsStand_noiliad: main_noiliad
${CC} obj/*.o ${LDFLAGS} -o iNewsStand
main:
@(cd core && ${MAKE})
@(cd gui && ${MAKE})
@(cd libfeedbooks && ${MAKE})
${CC} -o obj/main.o -c main.c ${CFLAGS}
main_noiliad:
@(cd core && ${MAKE} CFLAGS="${CFLAGS} -DNOILIAD")
@(cd libfeedbooks && ${MAKE} CFLAGS="${CFLAGS} -DNOILIAD")
@(cd gui && ${MAKE} CFLAGS="${CFLAGS} -DNOILIAD")
${CC} -o obj/main.o -c main.c ${CFLAGS} -DNOILIAD
clean:
rm -rf obj/*.o iNewsStand
[/code]
Mais maintenant j’ai une erreur à l’édition des liens :
cd '/home/user/iNewsStand' && PKG_CONFIG_PATH="/home/user/iLiadToolKit/usr/local/arm/oe/arm-linux/lib/pkgconfig/" LC_MESSAGES="C" LC_CTYPE="C" make -k
Compilation main.c (gcc)
Édition des liens iNewsStand (gcc)
/usr/bin/ld: cannot find -lerdm
collect2: ld returned 1 exit status
make: *** [iNewsStand] Error 1
make: Target `all' not remade because of errors.
*** Sortie avec l'état : 2 ***
une idée ? (grrrr c’est énervant quand tu vas d’erreurs en erreurs)