-1

I have installed on CentOS the OpenWRT BuildRoot for crosscompile. In menu config I've chosen architecture of my OpenWRT device and now I don't know how to build a HelloWorld package to deploy on my device. Can someone tell me step-by-step instruction what actions I have to do?

[UPD]: I need *.ipk to install by opkg.

antropoff
  • 111
  • 2
  • 3
  • 14
  • 1
    Please edit your post to mention the package format you want, and the package managing tool you will use for installing the package. Example : Create a package.ipk http://dev.leipzig.freifunk.net/svn/firmware/packages/mkipkg , and install it with `opkg` https://wiki.openwrt.org/doc/techref/opkg – Knud Larsen Jul 09 '16 at 19:59
  • Yes, I need ipk package and it will be installed by opkg. I tried to make package with helloworld program compiled on CentOS, but it doesn't work on OpenWRT (other architecture is the reason) – antropoff Jul 10 '16 at 13:55
  • You will of course have to cross compile your program with the OpenWrt cross-compiler , before you make the package. – Knud Larsen Jul 10 '16 at 17:31
  • If I try to execute cross-compiled app on CentOS (not on target OpenWRT device), should it work? – antropoff Jul 11 '16 at 01:36
  • ? Which architecture is your "OpenWRT OS" ? arm ? armhf ? arm64 ? .... No executable for arm* will run with your x86 CentOS ( i686 or x86_64) – Knud Larsen Jul 12 '16 at 12:55

1 Answers1

0

Sorry for very broad question - I'm just a beginner in linux crosscompiling. Now I can build my own packages for target device. Problem was: Make command in openwrt buildroot directory was finished with errors, but some files for crosscompilation were built. I had to finish make command without errors and then compile my custom package. There were many simple problems while executing make command, but google and openwrt.org forum helped me.

Thanks to @Knud Larsen and his comments, that help me to find the solution!

antropoff
  • 111
  • 2
  • 3
  • 14