-
Notifications
You must be signed in to change notification settings - Fork 12
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
question: how to develop based on qe-compiler #309
Comments
I made some changes to existing config files main...Zhaoyilunnn:qe-compiler:zhaoyilun-local-conan-package Then a local conan package can be built through |
Hi @Zhaoyilunnn, thank you for writing up this issue. The qe-compiler is still in its infancy of being an opensource project and we certainly have a lot of work to do in migrating documentation that needs to be resumed.
In particular, we have not attempted this path to development yet, but are very interested in this. Internally, we are using the project as a submodule with integration through the Cmake build system.
We would be very interested if you could make a draft PR demonstrating this work so that we could discuss how it might be incorporated in-tree. |
An obfuscated version of our top-level CMakeLists to integrate the project
In this way our internal project contains our targets in a very similar way to https://github.com/openqasm/qe-compiler/tree/main/targets/systems/mock with a top-level cmake file which we use to generate internal binaries. The rough project structure is
We could be very interested in enabling the pathway to remove the |
@taalexander Thanks a lot for your example CMakeLists.txt, actually I gave up making qe-compiler a conan package and adopted a similar top-level CMakeLists.txt ^_^ I am still in the progress of finding the correct way to make it a Conan package. I will make a PR once I figure it out |
Thank you @Zhaoyilunnn, happy to help however you might like. In general, as you're making progress I'd love to chat to understand better what you are trying to do and how to enable it. |
Hi Team,
Currently I still cannot figure out how to make this project dependent on qe-compiler.
qe-compiler
is an excellent project, I believe many users would like to develop their own full compilers based on this framework. Thus it would be helpful if you could provide some instructions on how to achieve this. I am also very willing to contribute if it requires more effort to make this project a conan package that other projects can depend on.Here are two ways I have tried but failed. Note that I can seamlessly build qe-compiler locally, but I just cannot build a conan package of it and then make my own project dependent on qe-compiler.
01 Manually
This is done by copying
conandata.yml
andconanfile.py
to the path./conan/qec
and create aconan_deps.sh
, which essentially callsconan export
Steps
Manually create a conan package and export it to local cache and then build it
Then install qe-compiler through conan
This method finally results in
02 Conan
Then I tried using
conan create
to create a local conan package.In the root directory of qe-compiler
cd build conan create .. zhaoyilun/qe-compiler --build=outdated -pr:h default -pr:b default -e QSSC_VERSION=0.1.0
Initially, I met following error
The root cause is that conan will not copy
.git
directory into the local cache, resulting in the error ofsetuptools_scm
. After checking the CMakeLists.txt, I found that I can explicitly setVERSION_STRING
to avoid usingsetuptools_scm
.After fixing the above error, it results in a cyclic dependency error
System info
The text was updated successfully, but these errors were encountered: