Re: [Wireshark-dev] Issues with cross-compiling

2022-01-17 Thread Guy Harris
On Jan 16, 2022, at 6:01 PM, Glen Huang wrote: > I’m trying to create an OpenWrt package for Wireshark. > > I think I’m pretty close. However, I got stuck at lemon, which if I’m not > wrong, should be compiled by my build machine’s compiler. From the source > code, I found out it supports the

Re: [Wireshark-dev] Issues with cross-compiling

2022-01-17 Thread Glen Huang
This is really helpful, I managed to build without errors with this patch. Thanks a lot. Glen > On Jan 18, 2022, at 7:25 AM, Jaap Keuter wrote: > > Hi, > > Maybe buildroot can give some inspiration: > > https://git.buildroot.net/buildroot/tree/package/wireshark > > Thanks, > Jaap > >> On

Re: [Wireshark-dev] Issues with cross-compiling

2022-01-17 Thread Jaap Keuter
Hi, Maybe buildroot can give some inspiration: https://git.buildroot.net/buildroot/tree/package/wireshark Thanks, Jaap > On 17 Jan 2022, at 03:01, Glen Huang wrote: > > Hi, > > I’m trying to create an OpenWrt package for Wireshark. > > I think I’m pretty close. However, I got stuck at

Re: [Wireshark-dev] Issues with cross-compiling

2022-01-17 Thread João Valverde
The sad news is that the LEMON_C_COMPILER variable is a mini hack and I doubt it can be arm twisted to support your use case. On 17/01/22 16:14, Glen Huang wrote: Sure, This is the compilation error I got gcc -DNDEBUG -L/sdk/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib

Re: [Wireshark-dev] Issues with cross-compiling

2022-01-17 Thread Glen Huang
Sure, This is the compilation error I got gcc -DNDEBUG -L/sdk/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/sdk/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro -fPIE -pie CMakeFiles/lemon.dir/lemon.c.o -o ../../run/lemon /usr/bin/ld:

Re: [Wireshark-dev] Issues with cross-compiling

2022-01-17 Thread João Valverde
Hi, You would have a better chance of receiving helpful feedback on the CMake side of things if you also described the actual error in detail. On 17/01/22 02:01, Glen Huang wrote: Hi, I’m trying to create an OpenWrt package for Wireshark. I think I’m pretty close. However, I got stuck at