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

Could not find a package configuration file #72

Open
DrengrCoder opened this issue Jul 12, 2023 · 1 comment
Open

Could not find a package configuration file #72

DrengrCoder opened this issue Jul 12, 2023 · 1 comment

Comments

@DrengrCoder
Copy link

I've gone through a process of installing LLVM based on instructions from these two webpages:

There was an error due to numeric_limits not being a member of std but I believe I solved that or worked around it

And then attempting to install cppnamelint, but I get an error when trying to run:

cmake .. -DLLVM_INSTALL_DIR="~\llvm\llvm-prebuilt\llvmorg-11.1.0-ninja-gcc-x64-rel"

as follows:

CMake Error at CMakeLists.txt:41 (find_package):
  Could not find a package configuration file provided by "LLVM" with any of
  the following names:

    LLVMConfig.cmake
    llvm-config.cmake

  Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
  "LLVM_DIR" to a directory containing one of the above files.  If "LLVM"
  provides a separate development package or SDK, be sure it has been
  installed.

Unsure what the problem is, as I believe I've set the environment variables but I may have set them wrong, I've set them to all the locations LLVMConfig.cmake exist but rerunning the command still produces the same error, would anyone also know what I need to do to set these correctly please?

I could also be doing something wrong in my build steps, but any help is greatly appreciated, thanks in advance.

@DrengrCoder
Copy link
Author

Just an update, as I didn't really care about building it, I just wanted to be able to use it and potentially test a form of integration into VS Code, I've just downloaded the built binary from the releases page. Would love an answer to the problem I faced but if someone thinks I did something wrong in my setup I'm happy to close this issue.

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

1 participant