Open lars18th opened 1 year ago
@lars18th XFRPC has already been adopted by the OpenWRT project, which supports a wide range of hardware platforms such as ARM, MIPS and so on.
Hi @liudf0716 ,
Yes, I know it. However, I need to compile it statically for a different platform (not OpenWRT). So, you know how to compile it inside the Docker container for mips32 device?
Thank you.
@lars18th I haven't done the research yet, maybe someone else can do it for you.
You are talking about cross compiling.There will be a document describing how to cross-compile the corresponding binary through arm-gcc or mips-gcc.
You are talking about cross compiling.There will be a document describing how to cross-compile the corresponding binary through arm-gcc or mips-gcc.
Thank you. I want to see this document soon. Regards.
Now supports cross-compiling xfrpc for mips architecture or arm architecture on x86. See pr https://github.com/liudf0716/xfrpc/pull/36 . Execute the following command in ubuntu 22.04:
sudo apt-get install gcc-mips-linux-gnu # install mips-gcc compiler
mkdir build && cd build
cmake -DTHIRDPARTY_STATIC_BUILD=mips -DCMAKE_C_COMPILER=mips-linux-gnu-gcc ..
make
get mips xfrpc.
Hi @helintongh ,
Thank you. I'll check it with the docker image.
Hi,
Now we can compile xfrpc inside a container with static support. However, I need to know how to compile not only for x86, but for example ARM for Android device, mips32 for OpenWRT device, etc.
Any idea?