Hi,

I took some stuff from https://dev.openwrt.org/ticket/7649 to compile
gammu for OpenWRT on AVR32.

Most of it seems fine, but a few things fail:

- The compilation needs cmake on the host, which is not checked for.
OpenWRT does not provide support for cmake, but a host installed recent
cmake should do.

- The compilation is not cross compile aware. So the host cc is checked
for instead of the cross compiler

- Cmake fails because it cannot find libm.so. This is in
staging_dir/toolchain-*/lib. But there is no environement variable set
for this directory. The STAGING_DIR variable points to
staging_dir/target-* and something like STAGING_TOOLCHAIN_DIR is not
set. At least not when configuring the package.

- I peeked around and found that OpenEmbedded added the parameter
    -DCMAKE_FIND_ROOT_PATH=${STAGING_DIR_TARGET} to cmake. When I
manually let the root path point to the toolchain dir, it seems to
compile OK.


-- 
Bas
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to