PcapPlusPlus icon indicating copy to clipboard operation
PcapPlusPlus copied to clipboard

`aarch64` support

Open seladb opened this issue 5 years ago • 6 comments

Continuing the discussion that started here: https://github.com/seladb/PcapPlusPlus/issues/732

@inSilo let's discuss here how we want to proceed

seladb avatar Oct 14 '21 08:10 seladb

Continuing the discussion that started here: #732

@inSilo let's discuss here how we want to proceed

Sorry, I have been too busy these few days, I haven't had time to come and see the reply. Today I saw "change the variable type that holds getopt_long result from char to int", which is pretty good, and the rest is to cross-compile to aarch64 platform. If you don't respect the integration of libpcap into the project and compile it is also possible. Cross-compilation is currently configured in platform.mk.linux.aarch64 and configure-linux.sh. The cross-target tool chain of aarch64 is configured in platform.mk.linux.aarch64, and then add a "--aarch64"to configure in configure-linux.sh. The "aarch64" option allows users to specify the cross-compilation target as the aarch64 platform. The author's idea is great, I hope the author can integrate it according to the idea of ​​my last post.👍👍👍

ghost avatar Oct 15 '21 00:10 ghost

In addition, I hope that the project can also provide a "--static" option, which can be achieved by getting the binary file out of the box and running directly on the openwrt platform without installing too many dependencies on the openwrt platform. I wonder if the author agrees with this idea. Do not? 😄😄😄😄

ghost avatar Oct 15 '21 00:10 ghost

@inSilo I agree with your approach, can you please open a PR with the changes?

seladb avatar Oct 15 '21 09:10 seladb

any update regarding this? I need PcapPlusPlus compiled for aarch64 (need to run it on ubuntu aarch64 - Raspberry pi) . I've been trying to cross-compile it but without success

ghost avatar Mar 11 '22 14:03 ghost

any update regarding this? I need PcapPlusPlus compiled for aarch64 (need to run it on ubuntu aarch64 - Raspberry pi) . I've been trying to cross-compile it but without success

sjdavalle avatar Mar 11 '22 14:03 sjdavalle

I added documentation here how to cross-compile or build for different architectures, please feel free to comment or suggest changes: https://pcapplusplus.github.io/docs/next/install/linux#cross-compilation-or-build-for-different-architectures

seladb avatar Mar 16 '22 09:03 seladb