Problems related to cross-compilation centos7

I would like to ask you a question. Our department"s project is currently compiled on x86 architecture, various software deployed and installed on centos7, using a lot of software nginx moongodb openssl curl sqlite3, and so on. After compilation, it can run on centos7 or above. Now we need to analyze whether it can run on MIPS machines and what needs to be done?

I analyzed and summarized several points of work as follows:

1. First of all, the compilation environment, must be made into cross-compilation (I just searched, I do not know how to do, online tutorials are mostly aimed at ubuntu, not related to centos. )

2. Secondly, whether the open source software used supports running on the mips architecture (I didn"t see it clearly on the official software website)

3. Are there any tutorials and materials for building a cross-compilation platform for centos7x64?

4. Thank you. If any big brother has done this, please move your fingers and save me

.
May.07,2022

Cross-compilation is used only when the compilation platform is inconsistent with the running platform.
in your case, you don't have to cross-compile.

check Debian's MIPS architecture distribution to see if there is any software you need, which means it supports MIPS architecture.

< H2 > Cross-compilation preparation < / H2 >
  • Compiler
    to use the compilation toolchain for the MIPS platform, whose file name is similar to cross-mipsel-linux-gnu-gcc
  • Software source code to be compiled
  • required class libraries, header files, configuration tools, etc.
Menu