[Qt-interest] MOC file generation (make: *** No rule to make target `pict.moc', needed by `pict.o'. Stop.)

Usman Ajmal uzmanajmal at gmail.com
Wed Apr 29 07:39:16 CEST 2009


Hi

How do i use automoc4 to generate automatically a moc file as i am getting
following message when i qmake first and then use make

make: *** No rule to make target `pict.moc', needed by `pict.o'.  Stop.
>

 What i figured out is that there is not rule for pict.moc in my
automatically generated Makefile. I don't know what should be required rule.
The part of Makefile where there should be a rule for it is as under:

####### Compile

main.o: main.cpp pict.h
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp

pict.o: pict.cpp pict.h \
        pict.moc
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o pict.o pict.cpp

moc_pict.o: moc_pict.cpp
    $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pict.o moc_pict.cpp

####### Install

install:   FORCE

uninstall:   FORCE


Thanks

--
Usman Ajmal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090429/454bf9f4/attachment.html 


More information about the Qt-interest-old mailing list