Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] how to install a cross compiler for core-3399-JD4 board?

679

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
679
Posted at 2/19/2020 10:52:20      1#
Hello, you need to follow this wiki to install Linux-SDK in your PC.
http://wiki.t-firefly.com/en/Core-3399-JD4/Linux.html#compile-ubuntu-firmware-gpt
Reply

Use props Report

679

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
679
Posted at 2/19/2020 15:44:04      2#
OK. If you want to run the executable in your PC, you can execute "gcc hello.c -o hello" to get the executable.
If you want to run the executable in your board. There is cross compiler in Linux-SDK. "linux-sdk/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/" for 64 bit. Then your can execute "./aarch64-linux-gnu-gcc hello.c -o hello" to get the executable.
Reply

Use props Report

679

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
679
Posted at 2/20/2020 11:19:56      3#
Yes, if you just want to obtain the executable, just install an arm cross compiler is OK.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list