不满意的链接错误,当使用LLVM运行javacpp预设时
UnsatisfiedLinkError when running javacpp presets with LLVM
我正在尝试为 LLVM 使用 javacpp-预设,但似乎存在链接时间问题:每当我尝试运行我的程序时,我都会收到一个错误
"Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniLLVM in java.library.path" I'm on a Windows 10 machine.
下面的是我的代码
package baecompiler;
//boilerplate code https://github.com/bytedeco/javacpp-presets/tree/master/llvm
//so we can play with LLVM code generation
// General stuff
import org.bytedeco.javacpp.*;
// Headers required by LLVM
import static org.bytedeco.javacpp.LLVM.*;
public class LLVMExperiment {
public static void main (String[] args) {
BytePointer error = new BytePointer((Pointer)null); // Used to retrieve messages from functions
LLVMLinkInMCJIT(); //the line it fails on
....
将 -Djava.library.path=x 添加到命令行,其中 x 是 jniLLVM.dll 文件的完整路径。
相关文章:
- LLVM:在运行时更新数据结构
- LLvm Jit:如何从抖动代码中取消引用运行时指针?
- LLVM 运行 PassManager(非遗留版)
- 在运行时记录 LLVM 中分支指令的结果
- LLVM:如何在运行时跟踪非类型语言的 Value* 的数据类型?
- 如何发出编译和运行C++函数的 LLVM IR
- LLVM API 优化运行
- 不满意的链接错误,当使用LLVM运行javacpp预设时
- llvm错误:重新定位尚未实现!在orcjit或lli中运行RxCpp时
- LLVM:如何将 IR 写入文件并运行它
- (如何)我可以使用LLVM机器代码分析器预测代码片段的运行时间
- 如何使用Cmake Build Config运行LLVM Libclang工具,该工具不是我整个代码库上的插件
- LLVM:生成运行时错误
- C++/LLVM:运行时代码生成和STL容器
- 如何将运行 OS/X El Capitan 的 Mac 上的 clang 升级到 LLVM 3.8
- 从本机 C/C++生成并运行 LLVM 代码
- 设计建议:llvm多个运行时上下文
- 除了 clang 之外,"clang -S -emit-llvm file.cpp"运行任何其他可执行文件吗?
- 如何配置替代Eclipse运行配置-适用于LLVM BitCode.bc文件
- LLVM-使用clang自动运行Own Pass