Alex has a nice article about it:
http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html
the latest Qt needs fixes currently in CEDET / CVS from about a month
ago, so you will need to use that.
Eric
On Thu, 2009-06-18 at 10:30 +0800, blackspace wrote:
> I have read the source code.I think that it isnot work to add the
> includes to the CFLAGS configuration variable.
>
> You can help me to write qt4 c++ code by emacs?Thanks.
>
> I am a newbie for emacs.
>
> >Hi,
> >
> > You can add the includes for the compiler to the CFLAGS configuration
> >variable with -I and such.
> >
> > It probably makes good sense to have a more explicit INCLUDE feature
> >in the target style for building programs. That would work well for
> >other purposes in Semantic also.
> >
> > Would you be interested in trying to add a feature like that? If not,
> >I'll add it to my todo list.
> >
> >Thanks
> >Eric
> >
> >On Wed, 2009-06-17 at 12:57 +0800, blackspace wrote:
> >> I write a project file:
> >>
> >> ;; Object ede-proj-project
> >> ;; EDE project file.
> >> (ede-proj-project "ede-proj-project"
> >> :name "qstring"
> >> :version "2.0"
> >> :file "Project.ede"
> >> :configurations '("debug" "release")
> >> :configuration-default "debug"
> >> :configuration-variables '("debug" ("DEBUG" "1"))
> >> :targets (list
> >> (ede-proj-target-makefile-program "qstring_test"
> >> :name "qstring_test"
> >> :path ""
> >> :source '("qstring_test.cpp")
> >> :configuration-variables '("debug"
> >> ("CFLAGS" .)
> >> ("LDFLAGS" .)
> >> ("INCLUDES"
> >> "/usr/share/qt4/mkspecs/linux-g++" "/usr/include/qt4/QtCore"
> >> "/usr/include/qt4/QtGui" "/usr/include/qt4" .))
> >> :ldlibs '("qt4")
> >> )
> >> )
> >> )
> >> And I get a Makefile:
> >> # Automatically Generated Makefile by EDE.
> >> # For use with: make
> >> #
> >> # DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
> >> # EDE is the Emacs Development Environment.
> >> # http://cedet.sourceforge.net/ede.shtml
> >> #
> >>
> >> top=
> >> ede_FILES=Project.ede Makefile
> >>
> >> qstring_test_SOURCES=qstring_test.cpp
> >> qstring_test_OBJ= qstring_test.o
> >> CXX= g++
> >> CXX_COMPILE=$(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
> >> CXX_DEPENDENCIES=-Wp,-MD,.deps/$(*F).P
> >> CXX_LINK=$(CXX) $(CFLAGS) $(LDFLAGS) -L. -o $@
> >> VERSION=2.0
> >> DISTDIR=$(top)qstring-$(VERSION)
> >> top_builddir =
> >>
> >> DEP_FILES=.deps/qstring_test.P
> >>
> >> all: qstring_test
> >>
> >> DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
> >> -include $(DEP_FILES)
> >>
> >> %.o: %.cpp
> >> @echo '$(CXX_COMPILE) -c $<'; \
> >> $(CXX_COMPILE) $(CXX_DEPENDENCIES) -o $@ -c $<
> >>
> >> qstring_test: $(qstring_test_OBJ)
> >> $(CXX_LINK) $^
> >>
> >> tags:
> >>
> >>
> >> clean:
> >> rm -f *.o *.obj .deps/*P .lo
> >>
> >> .PHONY: dist
> >>
> >> dist:
> >> rm -rf $(DISTDIR)
> >> mkdir $(DISTDIR)
> >> cp $(qstring_test_SOURCES) $(ede_FILES) $(DISTDIR)
> >> tar -cvzf $(DISTDIR).tar.gz $(DISTDIR)
> >> rm -rf $(DISTDIR)
> >>
> >> Makefile: Project.ede
> >> @echo Makefile is out of date! It needs to be regenerated by
> >> EDE.
> >> @echo If you have not modified Project.ede, you can use
> >> 'touch' to update the Makefile time stamp.
> >> @false
> >>
> >>
> >>
> >> # End of Makefile
> >>
> >> There isnot include file configure in the Makefile.How to add include
> >> path in ede project?
> >>
> >>
> >>
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> Crystal Reports - New Free Runtime and 30 Day Trial
> >> Check out the new simplified licensing option that enables unlimited
> >> royalty-free distribution of the report engine for externally facing
> >> server and web deployment.
> >> http://p.sf.net/sfu/businessobjects
> >> _______________________________________________ Cedet-devel mailing list Cedet-devel@... https://lists.sourceforge.net/lists/listinfo/cedet-devel
>
>
>
> ______________________________________________________________________
> 200万种商品,最低价格,疯狂诱惑你
|