chipsalliance / fpga-interchange-schema

https://fpga-interchange-schema.readthedocs.io/
Apache License 2.0
51 stars 20 forks source link

Capnp Schema File Structure? #49

Closed reillymck closed 3 years ago

reillymck commented 3 years ago

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 commented 3 years ago

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
YosysHQ/nextpnr
nextpnr portable FPGA place and route tool. Contribute to YosysHQ/nextpnr development by creating an account on GitHub.
reillymck commented 3 years ago

Thanks! This worked for me.