Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Cross compile wireshark for OpenWRT

From: didier <dgautheron@xxxxxxxx>
Date: Fri, 29 May 2009 10:09:33 +0200
Hi,
Le vendredi 29 mai 2009 ᅵ 09:21 +0200, Burkhardt, Kersten a ᅵcrit :
> Hi,
> 

> `/home/kersten/Entwicklung/Router/8.09/build_dir/mips/wireshark-1.0.8'
> make[2]: *** [/home/kersten/Entwicklung/Router/8.09/build_dir/mips/wireshark-1.0.8/.built]
> Error 2
> make[2]: Leaving directory
> `/home/kersten/Entwicklung/Router/8.09/package/wireshark'
> make[1]: *** [package/wireshark/install] Error 2
> make[1]: Leaving directory `/home/kersten/Entwicklung/Router/8.09'
> make: *** [package/wireshark-install] Fehler 2
> 
> Because this is my first package for openwrt I don't know where or why
> I get the message ./rdps: ./rdps: cannot execute binary file.
Because wireshark makefiles aren't cross compiler friendly, they try to
run compiled executables and mips executables don't run on x86 or
whatever.


> 
> Can anybody give mi a hint on where I can fix the error?
I don't have 1.0.8 and rdps doesn't seem to be in HEAD. Maybe there's a
configure option for not compiling it, otherwise you have to modify the
makefile. search Makefile.am for the rdps rule. Moreover:

- There's other rules trying to run generated executable, man pages.

- Running tshark on a mips router? I'm afraid it's hopeless, not enough
RAM.

Didier