yeah, I read about cross-compiling, I just can't figure out why I have to do it in this case?
I mean, if I compile it on a x86 debian linux, why can't I use this binary on my openwrt x86 system?
Of course I have to cross-compile if I want the binary to run on a mipsel router for example.... but x86?
Actually I'm just trying to find another way to create ipk packages. My idea was:
I noticed that ipk packages are nearly equal to debian packages except the compression method, and that many ipkg packages contain a precompiled binary. So I just thought about grabbing an available mipsel package and replacing the mipsel binary with an available binary from a ..._i386.deb package, or to cut down the size of the debian packages and rebuild them as ipk packages. Well I have already done this, ipkg install is doing fine... unfortunately I cannot execute the binary...
See this link:
http://www.intrinsyc.com/support/i-linu … ckages.htm
So I tried it with a simple hello world prog that I compiled on my debian x86, copied it and well, I can't run it also.
Can someone please explain this to me? So I'm absolutely wrong with my idea?
actually the ipkg also contain precompiled binaries..
thx