On 11/18/2010 06:53 PM, Jan Willies wrote:

> Unfortunately cmake picks up the host-gcc:
> 
> (cd
> /var/tmp/swjawill/openwrt-dockstar/build_dir/target-arm_v5te_uClibc-0.9.30.1_eabi/weechat-0.3.3;
> /var/tmp/swjawill/openwrt-dockstar/staging_dir/host/bin/cmake . || exit 1 );
> -- The C compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> [...]
> 
> Am I supposed to call it with some options or something?
> 

Now the fishy part begins. :-)

We need to tell cmake that we are cross compiling. Here is a good start:

http://www.cmake.org/Wiki/CMake_Cross_Compiling

I guess we need a toolchain file. I'm wondering if we can provide one
for all packages that use cmake (it should be). So that is something
that tools/cmake/Makefile could generate.

Package should than simply call

cmake -DCMAKE_TOOLCHAIN_FILE=.../staging_dir/somewhere/tc_file.cmake

I'll take a look at it over the weekend. Hopefully, I can get the gammu
package working as well.

Thanks for your feedback so far!

Regards,

Bas.

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

Reply via email to