Code :: Blocks:CMake生成的Makefile说“Nothing to be done”。 [英] Code::Blocks: CMake generated Makefile says "Nothing to be done."

查看:710
本文介绍了Code :: Blocks:CMake生成的Makefile说“Nothing to be done”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装Code :: Blocks与MinGW在我的Win7 64盒,并试图编译一个CMake生成的项目(即openclonk)。

I just installed Code::Blocks with MinGW on my Win7 64 Box and tried to compile a CMake generated project (namely openclonk).

-------------- Clean: all in clonk ---------------

Cleaned "clonk - all"

-------------- Build: all in clonk ---------------

Using makefile: Makefile
Execution of 'make.exe -s -f Makefile all' in 'C:\Users\Julius\Documents\Visual Studio 2010\Projects\OpenClonk' failed.
Nothing to be done.

如果我运行

C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe -f "C:/Users/Julius/Documents/Visual Studio 2010/Projects/OpenClonk/Makefile" clonk

从cmd开始编译...

from cmd it starts to compile...

显然,我想知道如何从C :: B修复编译。

Obviously, I'd like to know how to fix compiling from C::B.

推荐答案

Code :: Blocks执行此:

Code::Blocks is executing this:

make.exe -s -f <makefile> all

,并手动执行此操作:

mingw32-make.exe -f <makefile> clonk

这里的主要区别很可能是make目标。重新配置Code :: Blocks以使 clonk 目标,而不是默认 all 。或者,在makefile的顶部添加一个看起来像 all:clonk 的目标(假设还没有 all target defined)。

The main difference here is most likely the make target. Re-configure Code::Blocks to make the clonk target instead of the default all. Or, add a target that looks like all: clonk to the top of your makefile (assuming there isn't already an all target defined).

如果这不能解决你的问题,你可能还想调查 make.exe 而不是 mingw32-make.exe 有所不同(您可以在您的项目设置中重新配置此项)。

If that doesn't solve your problem, you might also want to investigate whether calling make.exe instead of mingw32-make.exe is making a difference (you can reconfigure this in your project settings).

这篇关于Code :: Blocks:CMake生成的Makefile说“Nothing to be done”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆