当前位置:网站首页>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 

边栏推荐
- Log4j2 vulnerability battle case
- Share a billing system (website) I have developed
- Detailed explanation of unified monitoring function of multi cloud virtual machine
- "Space guard soldier" based on propeller -- geosynchronous geostationary orbit space target detection system
- [golang] leetcode intermediate - the kth largest element in the array &
- Robotium_ (clickbyid method)
- Chrome plugin installation
- Introduction to interface test, interface protocol and common interface test tools
- Besides using hackbar, how can I make post requests
- Introduction to event flow, event capture, and event bubbling
猜你喜欢

Idea implements hot deployment
How to play one to many in JPA?

TypeError: __ init__ () takes 1 positional argument but 5 were given
[golang] leetcode intermediate - the kth largest element in the array &

Interface automation -md5 password encryption

Nnformer reading notes

Log4j2 vulnerability detection tool list
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)
R language quantile autoregressive QAR analysis pain index: time series of unemployment rate and inflation rate

Splunk series: Splunk installation and deployment (I)
随机推荐
Server pressure troubleshooting top
JS canvas drawing an arrow with two hearts
Is it safe to open an account with a mobile phone? Where can I open an account to buy shares?
Baidu AI Financing Innovation workshop enrollment!
Cvpr2019 | the latest cvpr2019 papers are the first to read!
App battery historian master
How to buy the millions of medical insurance for children? How much is it a year? Which product is the best?
[distributed system design profile (1)] raft
Must see the summary! In depth learning era, you should read 10 articles to understand image classification!
SaaS privatization deployment scheme
Expand and check the specified node when loading ztree
Usage Summary of str.format() function [not 'str****{}'.Format()]
Log4j2 vulnerability battle case
Installing mysql8 under centos8
1.1-mq visual client preliminary practice
About eruake learning
Nine built-in objects of JSP and four scopes of Servlet
Xshell mouse configuration
Install and initialize MySQL (under Windows)
Ensure the decentralization and availability of Oracle network