On 13/09/10 02:54, Marco Trevisan (Treviño) wrote:
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

_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel
Thank you very much.
This fixed the problem for me, but now my question is what to do in my source distribution?

I am not sure I should tell people downloading my code they need to tweak their toolchain installation to compile it.
Is this considered a bug? Was it reported already?

If not, where should I report it? (I am not sure who is responsible for this package)

Best regards,
Lev
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to