我不知道如何解决项目构建时出现的错误。有什么建议可以解决这个问题吗?语言是Java。
make[1]: *** No rule to make target `org/zeromq/ZMQ$Context.class', needed by `all'. Stop.
根据以下建议,此输出来自make -d
:
Considering target file `org/zeromq/ZMQ$Context.class'.
File `org/zeromq/ZMQ$Context.class' does not exist.
Looking for an implicit rule for `org/zeromq/ZMQ$Context.class'.
Trying pattern rule with stem `ZMQ$Context.class'.
Trying implicit prerequisite `org/zeromq/ZMQ$Context.class.cpp'.
Trying pattern rule with stem `ZMQ$Context.class'.
Trying implicit prerequisite `org/zeromq/ZMQ$Context.class.o'.
Trying pattern rule with stem `ZMQ$Context.class'.
Trying implicit prerequisite `org/zeromq/ZMQ$Context.class,v'.
...
Must remake target `org/zeromq/ZMQ$Context.class'.
make[1]: *** No rule to make target `org/zeromq/ZMQ$Context.class', needed by `all'. Stop.
因此,看起来 make 不够聪明,无法查看ZMQ.java
'ZMQ$Context.class
的定义。这是我的版本make
有问题还是图书馆所有者提供给我的makefile有问题?