I need to compile this file for controlling usbrelay2
https://forum.openwrt.org/viewtopic.php … 64#p315564
It works in Ubuntu.
Anyway just to start somehow, I want to crosscompile an introductory Hello World. I have the program and Makefile, but it does not works.
I have this wifi router with openWrt Chaos Calmer:
I downloaded 15.05 branch (Chaos Calmer) into my Lubuntu:
git clone git://git.openwrt.org/15.05/openwrt.git
etc. up to:
This is the program:
in Ubuntu works this:
gcc -Wall hellowworld.c -o hellowworld
printf("\n Hello World \n\n");
My non functional Makefile:
TITLE:=Typical starting program "Hello World" written in C
#DESCRIPTION:=This variable is obsolete. use the Package/name/description define instead!
This is a tutorial, how to cross compile this simple program in C for OpenWrt distribution
$(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/
$(eval $(call BuildPackage,helloworld))
That is all I have. Can you help me a bit. All I need is program usbrelay on command line in ssh switching on off relays over HID USB. First I want to start with simple crosscompiling C programm of Hello world then I will fight with HID USB... :-)
I will provide you any additional information needed, and of course thank you a lot your patience in replying to this obviously trivial question. :-)