开发者

Importing Existing QT C++ Project with its own Makefile in Eclipse

I would like to import an C++ GUI Project with its own Makefile in Eclipse. In the command prompt, ever开发者_StackOverflow中文版ything works fine. But when I import the project, it gives an error

make all 

make: *** No rule to make target `all'.  Stop.

Would be glad, if you give me an idea where I am going wrong.

Thanks Kiran


How did you import the project? I have used Eclipse with existing makefile projects a couple of times by creating a new empty makefile project and overriding the location of the project to refer to where the Makefile is present. It warns that the directory already exists, but it works fine.


Make sure that your Makefile has an "all" target.

A typical all target rule could look like

all: ../bin/myApplicationName
    @true

You'll probably also want to include a rule for clean if you don't already have one.

clean: 
    @-rm -f ../bin/myApplicationName *.o *.d
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜