Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do you build this static ? running great #10

Open
Magical-Lin opened this issue Jul 20, 2024 · 0 comments
Open

how do you build this static ? running great #10

Magical-Lin opened this issue Jul 20, 2024 · 0 comments

Comments

@Magical-Lin
Copy link

i download your program and running normal.
i am try to build those static,too.
but i cant do it well.
ubuntu22.04

sudo apt-cache search gcc-arm
sudo apt install gcc-arm-linux-gnueabi
arm-linux-gnueabi-gcc -v

cat <<EOF >hello.c
#include <stdio.h>  
int main()  
{  
printf("helloworld!\n");  
return 0;  
}  
EOF

arm-linux-gnueabi-gcc hello.c -o hello -static

send to my arm board

chmod 777 hello
./hello

it said ' FATAL: kernel too old'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant