【问题标题】:make: *** No tartgets specified and no makefile found. stop [duplicate]make: *** 没有指定目标,也没有找到 makefile。停止[重复]
【发布时间】:2019-02-20 01:50:45
【问题描述】:

我正在研究 raspberry zero w 和 BLE 与 python 的通信。 对于那项工作,我正在尝试安装 bluez。 但是当我尝试 make 命令时,make 出错:*** No tartgets specified and no makefile found.停止。

寻找解决这个问题,ansers 是在directors makefile 中不存在。 但就我而言,makefile 在那里。

pi@pi:~/bluez-5.41 $ ls
acinclude.m4  client        configure.ac  gobex        Makefile.obexd    peripheral   TODO
aclocal.m4    compile       COPYING       INSTALL      Makefile.plugins  plugins      tools
android       config.guess  COPYING.LIB   install-sh   Makefile.tools    profiles     unit
attrib        config.h.in   depcomp       lib          missing           README
AUTHORS       config.log    doc           ltmain.sh    monitor           src
btio          config.sub    emulator      Makefile.am  NEWS              test
ChangeLog     configure     gdbus         Makefile.in  obexd             test-driver 

我该如何解决这个问题?

【问题讨论】:

    标签: makefile bluez


    【解决方案1】:

    不,那里没有 Makefile。

    您有名为 Makefile.am 和 Makefile.in(和朋友)的文件。

    在我看来,您需要在它们上运行 Automake。您是否考虑阅读INSTALL 说明? They're rather informative,可以在您的目录中找到。 README 也值得一读……

    tl;dr:阅读

    【讨论】:

    • 是的,我阅读了安装说明并按照命令进行操作。第一个 ./configure 已完成,但下一个命令 make don't work..
    • 请用所有相关信息更新您的问题。正是您尝试过的内容以及输出的内容。
    • 如果您运行./configure,那么它一定失败了。如果成功,那么您将在此处获得Makefile。当遵循指示时,这意味着每个步骤都必须成功,然后才能继续下一步(除非我明确表示另有说明)。如果它失败了,那么那个就是你需要问的问题,通过提供你调用的命令和你收到的错误等等。
    • (请注意,这里不需要运行automake。Automake将Makefile.am文件转换为Makefile.in文件,你已经有了Makefile.in。你只需要运行configure 转换*.in 文件。
    • 谢谢!!我忘记检查 ./configure 成功了。谢谢
    猜你喜欢
    • 2013-01-02
    • 1970-01-01
    • 2023-03-09
    • 2014-10-18
    • 1970-01-01
    • 2017-08-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多