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

[Bug]: Win64 for ARM64 cpu build fails (fix included) #16

Open
boreno opened this issue Mar 20, 2023 · 0 comments
Open

[Bug]: Win64 for ARM64 cpu build fails (fix included) #16

boreno opened this issue Mar 20, 2023 · 0 comments
Labels

Comments

@boreno
Copy link

boreno commented Mar 20, 2023

Context

We are using a commercial license to embed Linphone in our cross-platform Standard ERP system. The BCToolbox project doesn't build on Windows ARM64, a fix is provided below.

General information

  • Device: MacBook Pro M2 Max
  • OS: Windows 11 Pro ARM64
  • Version of the App: N/A
  • Version of the SDK: 5.2

Expected behaviour

ortp\src\utils.h:58 defines the poly32_t type, which conflicts with the definition in Win64 ARM64 header MSVC\14.34.31933\include\arm64_neon.h:50.

To Reproduce

Build oRTP using the Visual Studio 2022 ARM64 native command prompt using the ARM64 architecture

Additional context

To fix this build issue, edit the file ortp\src\utils.h, rename poly32_t to ortp_poly32_t on line 61.
Then, edit ortp\src\rtpparse.c on line 283, changing the following:

poly32_t *extseq = (poly32_t*)&rtpstream->hwrcv_extseq;

into this

ortp_poly32_t *extseq = (ortp_poly32_t*)&rtpstream->hwrcv_extseq;

SDK logs URL

No response

@boreno boreno added the bug label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant