Il giorno sab, 11/09/2010 alle 19.51 +0300, Lev M ha scritto:
> Hello all.
> I am using Elementary widgets in a small app 
> (http://code.google.com/p/scr-rotate).
> I am building the app using the precompiled toolchaing and not OE.
> In order for it to compile properly I need to add the following include 
> path:
> 
> ELM_INCLUDES=-I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/efreet-1\
>   -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/ecore-1\
>   -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/eina-1\
>   
> -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/eina-1/eina\
>   -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/eet-1\
>   -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/edje-1\
>   -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/evas-1\
>   -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/dbus-1.0\
>   
> -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/dbus-1.0/include\
>   -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/e_dbus-1\
> -I/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/include/elementary-0
> 
> even though I only include Elementary.h and create a few buttons in a 
> window.
> 
> I tried using pkg-config to reduce this mess, but it says lua.pc is mussing.
> I verified that lua-dev is installed (with opkg-target).

I'd suggest you to compile using
gcc $(pkg-config --cflags --libs elementary)

Put the attached lua.pc (it's missing in the .opk devel package) file in
your /usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib/pkgconfig path.

If you've upgraded/installed devel packages using opkg-target you could
get troubles when linking (also if mostly using libtool based sources),
however you can fix your lib*.la files using these sed replacements:

sed -i "s;-L/usr/lib;-L$SDK_PATH/$TARGET_SYS/usr/lib;g" \
        $SDK_PATH/${TARGET_SYS}/usr/lib/*.la
sed -i "s; /\(usr/lib/[^ ]\+\.la\); $SDK_PATH/$TARGET_SYS/\1;g" \
        $SDK_PATH/${TARGET_SYS}/usr/lib/*.la

Bye 
# lua.pc -- pkg-config data for Lua

# vars from install Makefile

# grep '^V=' ../Makefile
V= 5.1
# grep '^R=' ../Makefile
R= 5.1.4

# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
prefix= /usr/local
INSTALL_BIN= ${prefix}/bin
INSTALL_INC= ${prefix}/include
INSTALL_LIB= ${prefix}/lib
INSTALL_MAN= ${prefix}/man/man1
INSTALL_LMOD= ${prefix}/share/lua/${V}
INSTALL_CMOD= ${prefix}/lib/lua/${V}

# canonical vars
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Lua
Description: An Extensible Extension Language
Version: ${R}
Requires: 
Libs: -L${libdir} -llua -lm
Cflags: -I${includedir}

# (end of lua.pc)
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to