MichaReiser / llvm-node

LLVM 9.0+ Node Bindings
MIT License
183 stars 29 forks source link

Requirements? #141

Open ChocolateLoverRaj opened 2 years ago

ChocolateLoverRaj commented 2 years ago

I am using windows 10. What do I need to do to use llvm-node? I tried installing LLVM-13.0.1-win64.exe. Then when I installed llvm-node, I got this error:

CMake Error at CMakeLists.txt:6 (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.

Do I need to download llvm source code?

ApsarasX commented 2 years ago

You must ensure that the llvm you install provides the necessary cmake files.

There is no cmake file for llvm installed by pre-built binaries on Windows.

It is recommended that you install llvm by vcpkg.

ChocolateLoverRaj commented 2 years ago

@ApsarasX I tried installing with vcpkg, but the installation didn't work.

lancejpollard commented 2 years ago

I don't think this works on the latest version of Mac.

ApsarasX commented 2 years ago

I don't think this works on the latest version of Mac.

llvm-node does not support LLVM 13.

May be you could try llvm-bindings

ChocolateLoverRaj commented 2 years ago

@ApsarasX I will try it

ChocolateLoverRaj commented 2 years ago

@ApsarasX I'm using Windows 10 so I can't use llvm-bindings

ApsarasX commented 2 years ago

@ApsarasX I'm using Windows 10 so I can't use llvm-bindings

sorry, llvm-bindings only support Linux and macOS.😂

You can try it in WSL2.

ChocolateLoverRaj commented 2 years ago

@ApsarasX I installed WSL2 and after setting everything up llvm-bindings worked 😄

ApsarasX commented 2 years ago

@ApsarasX I'm using Windows 10 so I can't use llvm-bindings

llvm-bindings v0.3.5 has supported Windows 10, and you can try it.