OpenWrt Forum Archive

Topic: use cmake?

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi!

How do i tell my openwrt makefile to use cmake?

derdigge

see package/libubox/Makefile or package/netifd/Makefile

perfect thanks!
I want to point to

staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib | whats the variable? $(TARGET_DIR)/usr/lib ???
staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/lib - is  $(TOOLCHAIN_DIR)/usr/lib ???
$(staging_dir)/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-g++ - is ???
   -at the moment i have full path in but decide to change it!

any idea?

(Last edited by derdigge on 19 Sep 2012, 11:19)

gcc automatically searches the staging dir, you should not need to add explicit -L and -I flags.

if i dont do so, cmake takes gcc i686!
Dont know why but thats the way it is sad

Setting -L and -I flags has no impact on the choosen gcc, it would still compile your software using the i686 gcc but with headers for the corss compilation environment.
Also include/cmake.mk is supposed to set all those vars up for you, no need to override them.

The discussion might have continued from here.