|
Re: Juno CDT discovery not working [message #896999 is a reply to message #896851] |
Fri, 20 July 2012 14:18   |
Eclipse User |
|
|
|
cdt discovery wrote on Fri, 20 July 2012 03:09
1) I'm unaware of the difference between the "Project Settings -> C/C++ Build -> Discovery Options" and "C/C++ General -> Preprocessor Include Paths, Macros, etc. -> Providers Tab"
"Discovery Options" is deprecated and going to be phased out.
cdt discovery wrote on Fri, 20 July 2012 03:09
2) The compiler I am using in the make environment is a cross compiler by Microware (nowadays Radisys) and thus I changed the compiler invocation command to "xcc", which is the executable and included in the path environment.
If I understand the invocation commands for gcc correct, they intend to get the defines and include paths which are standard for the compiler. So I changed those to the xcc arguments, that provide this information (and tested it in the console compiling the empty spec.c file provided by Eclipse).
Where did you add this "xcc" invocation? Go to "Preprocessor Include Paths" tab "Providers" and make sure "CDT GCC Builtin Settings" enabled. After that change the command in the provider options. You may need to go to "Workspace Settings" link as instructed.
cdt discovery wrote on Fri, 20 July 2012 03:09
3) Unfortunately after a clean build (I can see the xcc commands in the output console with the includes (-v) and defines (-d)) the "C/C++ General -> Paths and Symbols" as well as the "C/C++ General -> Preprocessor Include Paths, Macros, etc. -> Entries Tab" is still empty.
You can also "Allocate console" in the provider options to check output. This console is different from build console. You can find it in "Display Selected Console" button on the toolbar of the Console View. What is the output, is it the same format as GCC?
Andrew
|
|
|
Re: Juno CDT discovery not working [message #897188 is a reply to message #896999] |
Mon, 23 July 2012 01:40   |
Eclipse User |
|
|
|
Andrew Gvozdev wrote on Fri, 20 July 2012 14:18
"Discovery Options" is deprecated and going to be phased out.
Does that mean I should uncheck "Automate discovery of paths and symbols" in the "Discovery Options" or is the setting already ignored?
Andrew Gvozdev wrote on Fri, 20 July 2012 14:18
Where did you add this "xcc" invocation? Go to "Preprocessor Include Paths" tab "Providers" and make sure "CDT GCC Builtin Settings" enabled. After that change the command in the provider options. You may need to go to "Workspace Settings" link as instructed.
Originally I put the "xcc" invocation on the "Discovery Options" page as well as on "C/C++ General -> Preprocessor Include Paths, Macros, etc. -> Entries Tab -> CDT GCC Build Output Parser" In the "CDT GCC Builtin Settings" I have "${COMMAND} -P -b -pp ${INPUTS}" which I thought would take the invocation command and use the currently compiled file of the make environment.
I have "CDT User Setting Entries" enabled but with "Share setting entries between projects" and "Store entries in project settings folder" unticked.
Also the "CDT GCC Build Output Parser" with the invocation mentioned above, also both settings unticked, container is project, heuristics are enabled and enable language settings also enabled.
"CDT GCC Builtin Compiler Settings" also both top boxes unticked, "Command" has been tried with "${COMMAND} -P -b -pp ${INPUTS}" and "xcc -P -b -pp ${INPUTS}".
"CDT Managed Build Settings Entries" have been enabled.
Andrew Gvozdev wrote on Fri, 20 July 2012 14:18
You can also "Allocate console" in the provider options to check output. This console is different from build console. You can find it in "Display Selected Console" button on the toolbar of the Console View. What is the output, is it the same format as GCC?
Even though I enabled this option, I only get the "CDT Global Build Console" and the project specific build console. So it seems, the invocation fails. With a different setting (maybe toolchain, or whatever I tried already) I could see this console window - however it was empty then as well.
Thanks so far!
Edit:
The "Preferences -> C/C++ -> Build -> Settings" still listed gcc, however changing that didn't improve the situation.
At the moment I configured the project for "Cross GCC" and "Gnu make builder".
[Updated on: Mon, 23 July 2012 01:57] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05768 seconds