当前位置:网站首页>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
边栏推荐
- Yanjiehua, editor in chief of Business Review: how to view the management trend of business in the future?
- Cvpr2020 | the latest cvpr2020 papers are the first to see, with all download links attached!
- Is it safe for qiniu school to open an account in 2022?
- A new paradigm for large model application: unified feature representation optimization (UFO)
- MySQL installation tutorial
- CiteSpace download installation tutorial
- The beginning of manjaro's journey
- 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)
- Flexible scale out: from file system to distributed file system
- Solution to big noise of OBS screen recording software
猜你喜欢
Feature Engineering in simple terms – a practice guide based on openmldb (Part 1)
[opencv] opencv from introduction to mastery -- detailed explanation of input and output XML and yaml files
Share a billing system (website) I have developed
Barrier of cursor application scenario
2022 oceanbase technical essay contest officially opened | come and release your force
Chrome plugin installation
Instant aesthetics of the Centennial Olympic Games: beauty in the air, condensed in minutes and seconds - Alibaba cloud video cloud AI editorial department "cloud smart scissors"
Tencent music knowledge map search practice
Yunzhisheng atlas supercomputing platform: computing acceleration practice based on fluid + alluxio (Part I)
E-commerce project environment construction
随机推荐
Lesson 3 urllib
Cvpr2020 | the latest cvpr2020 papers are the first to see, with all download links attached!
Tencent music knowledge map search practice
Causes and solutions of unreliable JS timer execution
Talking about the foundation of function test today
Is it safe to open an account with a mobile phone? Where can I open an account to buy shares?
Png to NII
Vbpr (visual Bayesian personalized ranking) paper summary
How to play one to many in JPA?
8 minutes to understand the wal mechanism of tdengine
MySQL lock
Recommend a free screen recording software
Svn various color states
Install JDK, MySQL and nexus under Linux (tar package installation)
Is it safe for qiniu school to open an account in 2022?
ZK implementation of distributed global counter for cursor application scenario analysis
How to close gracefully after using jedis
The secret of metaktv technology of sound network: 3D space sound effect + air attenuation + vocal blur
Idea implements hot deployment
Must see the summary! In depth learning era, you should read 10 articles to understand image classification!