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

Capnp Schema File Structure? #49

Closed
reillymck opened this issue Apr 30, 2021 · 2 comments
Closed

Capnp Schema File Structure? #49

reillymck opened this issue Apr 30, 2021 · 2 comments

Comments

@reillymck
Copy link

Hey, so I think I am missing something here. So after running make, I copy schema/capnp/java.capnp to /capnp/java.capnp. However, I get the following error:
capnp.lib.capnp.KjException: ~/RapidWright/interchange/fpga-interchange-schema/interchange/DeviceResources.capnp:15: failed: Import failed: /capnp/java.capnp

I ran sudo chmod +777 /capnp and sudo chmod +777 /capnp/java.capnp and the import still fails. As a temporary solution, I have edited the schema files to read import ../../schema/capnp/java.capnp instead, and this works. However, I would like to know how everyone else is structuring their directory since I am obviously missing something here.
Thanks.

@gatecat
Copy link
Collaborator

gatecat commented May 1, 2021

Have you tried a sudo make install of capnproto-java? That is what our CI is doing: https://github.com/YosysHQ/nextpnr/blob/master/.github/ci/build_interchange.sh#L16

GitHub
nextpnr portable FPGA place and route tool. Contribute to YosysHQ/nextpnr development by creating an account on GitHub.

@reillymck
Copy link
Author

Thanks! This worked for me.

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