Re: [cedet-semantic] problems with ede and c++
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2008-03-08 10:58:43
|
Hello, The reason the project menu doesn't work with ede-cpp-root-project, is because that project style does not manage makefiles, or anything like that. It is there only to supply th small API that Semantic needs to find project related header files. By putting a ede-proj-project (of type makefile) inside the cpp-root project, you are charting new ground I had not tested. If you just want to make completion work in Semantic, then you do not need to create the other projects, and should delete the Project.ede files. If you want EDE to create your makefiles for you, then do not create the cpp-root project in your .emacs file. Since you have a pre-existing Makefile, I'm assuming you can just delete the Project.ede files that you have. If you'd like the menu to work, then we'd need to add new features to ede-cpp-root.el. Good Luck Eric >>> scianagoryczy <sci...@wp...> seems to think that: >hi! I'm new to cedet, I read previous mails about c++ with cedet and I >hardly try it to use, yesterday I installed CVS cedet version and I have >problem with ede, I mean I created Project.ede in main project dir and >when I enter source file or try . to see whats inside object or when I >use M-x semantic-ia-complete-symbol I get: >idle error: "#<buffer aaa.cpp> - Opening input file: no such file or >directory, /home/tomek/Projects/test2/.deps/Project.ede" >Why does it want to search Project.ede in .deps ?!?! > >Project dir is: >test2 > /aaa > aaa.cpp > /bbb > bbb.cpp > bbb.h > Project.ede > Makefile > >My .emacs file is easy: > >(setq semantic-load-turn-everything-on t) >(load-file "~/cedet/common/cedet.el") >(global-ede-mode 1) >(ede-cpp-root-project "test2" :file "~/Projects/test2/Makefile" >:include-path '("./aaa" "./bbb")) > >(defun my-c-mode-common-hook () > (semantic-default-c-setup)) >(add-hook 'c-mode-common-hook 'my-c-mode-common-hook) > >(semantic-load-enable-minimum-features) >(semantic-load-enable-code-helpers) > >And my Project.ede is: > >(ede-proj-project "ede-proj-project" > :name "test2" > :file "Project.ede" > :targets (list > (ede-proj-target-makefile-program "test2" > :name "test2" > :path "" > :source '("aaa/aaa.cpp" "bbb/bbb.cpp") > :configuration-variables '(("")) > ) > ) > :variables '(("CPPFLAGS" . "-I aaa -I bbb -I .")) > :configuration-variables 'nil > ) >What is wrong ? What am I missing ? I will be really thankfull for help >beacuse I've spent lots of time on this! :) >One more thing: when ede-cpp-root-project is defined Project menu dosn't >work properly! [ ... ] -- Eric Ludlam: er...@si... Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net |