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

Link errors when building with "-p lin" (audioout and servo) #1328

Closed
ronron-gh opened this issue Apr 1, 2024 · 2 comments
Closed

Link errors when building with "-p lin" (audioout and servo) #1328

ronron-gh opened this issue Apr 1, 2024 · 2 comments

Comments

@ronron-gh
Copy link

Build environment: Linux
Moddable SDK version: 4.5.0-23-gfc5c2b41c
Target device: desktop simulator

The following two modules caused link errors when built for Linux desktop simulator.
I have found out the causes of each problem as below, so it would be helpful if you could take countermeasures.

・pins/i2s/audioout
When building with "-p lin", queueCallback() is undefined in audioout.c, resulting in a link error.
When I defined an empty queueCallback(), the link was successful and I was able to move on to execution with xsbug.
(I would be happy if in the future it would be possible to play sound on Linux as well.)

・pins/servo
A link error will occur because there is no description for Linux in pins/servo/manifest.json.
The issue was resolved by adding the following description:

"platforms":{
    "lin": {
        "modules": {
            "pins/servo": "$(MODULES)/pins/servo/servo",
            "*": "$(MODULES)/pins/servo/sim/*"
        }
    }
}
@mkellner
Copy link
Collaborator

mkellner commented Apr 2, 2024

Thank you. I've committed a fix for these. They will be in the next release.

mkellner pushed a commit that referenced this issue Apr 3, 2024
Add lin platform section for pins/servo
@ronron-gh
Copy link
Author

Thank you for your commit. I've confirmed that it works, so I'll close it.

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

2 participants