Sign in

Cross compiling related problems centos7

ynpxq edited in Fri, 17 Jun 2022

Let me ask you a question. At present, our department's projects are compiled on x86 architecture, and various kinds of software deployed and installed on centos7 use a lot of software, such as nginx moongodb OpenSSL curl SQLite3. After compilation, they can run on centos7 and above. Now we need to analyze whether they can run on MIPS architecture machines, and what needs to be done?

I analyzed and summarized the following work

1. First of all, the compiler environment must be cross compiled (I just searched, but I don't know how to do it. Most of the online tutorials are for Ubuntu, not CentOS.)

2. Secondly, whether the open source software used supports running on the MIPs architecture (I didn't see it on the official website of the software, and I didn't make it clear)

3. Are there any tutorials and materials for building cross compiling platform for centos7x64?

4. Thank you. If any elder brother has done this, please move your finger and help me

1 Replies
commented on Fri, 17 Jun 2022

Cross compiling is only used when the compiling platform is inconsistent with the running platform

Check out the MIPs architecture distribution of Debian , See if you have the software you need , It means that the software supports MIPS architecture .

Cross compile preparation

  • The compiler should use the compiler tool chain for MIPS platform, whose file name is similar to cross mipsel Linux GNU GCC
  • Source code of software to be compiled
  • Required class libraries, header files, configuration tools, etc
lock This question has been locked and the reply function has been disabled.