How to compile on Linux ARM64? #3
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-flatz/pkg_pfs_tool#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The program won't compile nor link on Linux ARM64.
Here's what I did:
But then an error shows up:
To "fix" it, I changed this line in CMakeLists.txt
And then "make" compiles, but can't link because the architecture is recognized as "linux64":
If I force "../thirdparty/lib/darwin-arm64" via CMakeLists.txt, it won't link either:
"make" output:
Do you know how to fix this and add Linux ARM support?
you need to build your own mbedTLS library for linux arm64, you can't use macOS arm64 libraries.
You need to download and compile mbedtls release 2.27 and in options enable
CMAC_Cinconfig.hand also add option -fPIE to CMakeLists.txt in project.