我正在开发一个项目,我需要为Android修改dd
,但我无法弄清楚如何构建它。我使用arm-linux-gnueabi-gcc dd.c -o dd
尝试了一种简单的方法,但当然这不起作用。我也找不到makefile。
是否可以构建dd
或者是否需要构建toolbox
或整个系统?无论如何,我该怎么做?
我找到了源代码here。
编辑:
是否可以为arm
构建GNU core utils?我尝试使用./configure --host=arm-linux --target=arm-linux && make
,但file dd
仍然返回executable, x86-64
。
答案 0 :(得分:1)
经过大量的谷歌搜索后,我终于能够为[{
"studPersonalDetails": {
"id": 0,
"name": "Digvijay",
"middleName": "",
"lastName": "Singh",
"fatherName": "abac",
"motherName": "abc",
"dob": "5/7/1990 12:00:00 AM"
},
"clients": {
"clientID": 1,
"clientName": null,
"clientDescriptions": null
},
"studentAddress": {
"address1": "12",
"address2": "12",
"city": "21",
"state": "212",
"pin": 2
},
"courseDetails": {
"courseID": 12,
"courseName": "12",
"courseDetail": null
},
"studentContacts": {
"email": "12",
"alternatePhone": "12",
"phone": "qw"
}
}, {
"studPersonalDetails": {
"id": 0,
"name": "Anil",
"middleName": "kumar",
"lastName": "Sharma",
"fatherName": "bac",
"motherName": "bac",
"dob": "2/11/1989 12:00:00 AM"
},
"clients": {
"clientID": 1,
"clientName": null,
"clientDescriptions": null
},
"studentAddress": {
"address1": "21",
"address2": "21",
"city": "5456",
"state": "8",
"pin": 7
},
"courseDetails": {
"courseID": 58,
"courseName": "58",
"courseDetail": null
},
"studentContacts": {
"email": "12",
"alternatePhone": "12",
"phone": "abc"
}
}]
构建GNU核心工具。
我首先必须将环境变量arm
和CC
设置为CXX
,将arm-linux-gnueabi-gcc
设置为LDFLAGS
。然后我就跑了-static
,那就是它。