当前位置:网站首页>Compile 6relayd using the cross compiler
Compile 6relayd using the cross compiler
2022-06-25 20:49:00 【CharX】
Use mipsel Cross compiler compilation 6relayd
This is my first time to write an article , I am just a little white , If there is a mistake , Please ax .
Before the start
1、 Before we start , We need to be in github Download the 6relayd Source code :
github Address :
https://github.com/sbyx/6relayd
After downloading, you should get the following file :
2、 Get ready mipsel Cross compilation tool chain of , Due to the complexity of this process , And there are many online tutorials , So please Baidu yourself .
What needs to be said is , The cross compilation tool chain does not have to compile itself , You can directly use what others have compiled . At the same time, compilation can also be done in win10 Of ubuntu Under subsystem
To build a cross compilation tool chain, please refer to the following :
https://blog.csdn.net/wxh0000mm/article/details/85691111
It also gives the compiled compilation tools
https://www.uclibc.org/downloads/binaries/
compile
Refer to the online tutorial ,
You need to modify the "CMakeLists.txt":
Here in "
#Project Definition
project(6relayd C)
"
Lower join :
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_C_COMPILER “mipsel-linux-gcc”)
These two sentences , among , The first sentence tells us that the current cross compilation method is used , You have to configure ; The second sentence indicates the compiler , Modify according to your own cross compiler
In this way, the dynamic link library is used by default , In some devices, there may be a lack of dynamic link libraries and they cannot run , In this case, you can declare to use the static link library ( This compilation method will increase the target file size ), The method is to add... After the above two sentences :
set(CMAKE_C_FLAGS “-static ${CMAKE_C_FLAGS}”)

After the above modifications are completed and saved, the compilation can be executed .
cmake .
make

After that, there will be... In the directory 6relayd The file , Move this file to the router and run it with permission 

边栏推荐
- Installing mysql8 under centos8
- Introduction to event flow, event capture, and event bubbling
- Slenium tips: how to handle some dialog boxes that may appear on Web pages
- [untitled]
- JS forest leaf node non recursive depth first postorder traversal
- Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
- Leetcode daily [2022 - 02 - 17]
- Usage Summary of str.format() function [not 'str****{}'.Format()]
- Yunzhisheng atlas supercomputing platform: computing acceleration practice based on fluid + alluxio (Part I)
- Decryption of APP parameters of a cross-border export e-commerce - dunhuang.com
猜你喜欢

Jingxi Pinpin wechat applet -signstr parameter encryption

Slenium tips: how to handle some dialog boxes that may appear on Web pages

Leetcode daily question - 28 Implement strstr() (simple)
Cloud development practice of the small program for brushing questions in the postgraduate entrance examination - page design and production (home page of the question bank, ranking page, my)
Web components series (11) -- realizing the reusability of mycard

Several methods of obtaining function annotation text on pycharm
Yanjiehua, editor in chief of Business Review: how to view the management trend of business in the future?

E-commerce project environment construction

PIP command -fatal error in launcher: unable to create process using How to resolve the error after migrating the virtual environment?
Baidu AI Financing Innovation workshop enrollment!
随机推荐
laf. JS - open source cloud development framework (readme.md)
Interview records
Mysqldumpslow out slow statements in the database
Leetcode daily question - 28 Implement strstr() (simple)
Usage Summary of str.format() function [not 'str****{}'.Format()]
Decipher the AI black technology behind sports: figure skating action recognition, multi-mode video classification and wonderful clip editing
Robotium_ (clickbyid method)
Yanjiehua, editor in chief of Business Review: how to view the management trend of business in the future?
Feature Engineering in simple terms – a practice guide based on openmldb (Part 1)
MySQL lock
Is it safe for qiniu school to open an account in 2022?
Patrol script
Dice、Sensitivity、ppv、miou
[machine learning] machine learning from zero to mastery -- teach you to recognize handwritten digits using KNN
What is an app circle of friends advertisement
Day 29/100 local SSH password free login to remote
Local variables and global variables in C language
Install and initialize MySQL (under Windows)
Vbpr (visual Bayesian personalized ranking) paper summary
New generation engineers teach you how to play with alluxio + ml (Part 2)