-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compile in docker to different architecture? #30
Comments
@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. |
Thank you. I want to see this document soon. |
Now supports cross-compiling xfrpc for mips architecture or arm architecture on x86. 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?
The text was updated successfully, but these errors were encountered: