Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
libquil-sys
This crate provides Rust bindings to the quilc C library.
How to Build
Install SBCL from source
SBCL must be installed from source to make sure you have the libsbcl shared library available.
- Install
sbclfrom a package manager for bootstrapping purposes. - Clone the repository:
git clone --branch sbcl-2.2.0 git://git.code.sf.net/p/sbcl/sbcl
- Tag
sbcl-2.2.0is known to work. These instructions have not been tested against a newer version.
- Inside the cloned repo:
sh make.sh && sh make-shared-library.sh - Uninstall the package manager version of
sbcl. - Run
sh install.shto install the compiledsbcl - Copy
src/runtime/libsbcl.soto/usr/local/lib/libsbcl.so
Set up Quicklisp
- Follow the official instructions to install Quicklisp.
Configure your local projects directory
Quicklisp has a local projects mechanism
which we'll be using to build quilc with it's dependencies. By default, this directory is $HOME/quicklisp/local-projects.
If you want to use something different, you need to make sure $HOME/.sbclrc contains the following
(replace $LISP_WORKSPACE with the actual value):
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
#+quicklisp
From here on, we'll refer to the local project directory you've chosen to use, whether it's the default or not, as $LISP_WORKSPACE.
Set up Lisp workspaces
Important: The above sbcl folder must not be in the workspace folder -- it will cause issues.
- Clone the following repos into
$LISP_WORKSPACE
Build quilc
Note: The build commands in quilc assume you are running on MacOS and
will error on other systems.
Run the following from $LISP_WORKSPACE:
Optionally, run tests:
# Optional -- run tests
# MacOS
# *nix
|
Build and test libquil-sys
By default, this library assumes quilc is in the default Quicklisp local projects directory ($HOME/quicklisp/local-projects).
If you defined a non-default local projects directory for quilc, you need to set $QUILC_LIBRARY_PATH to the folder
where you built the quilc library (the folder containing libquilc.dylib). For example,
Then, from the root of this repository: