Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Reset to the local cross tool chain

Hi Ranran,

Usually, the command should look like 'gcc -E (...other stuff)'. What did you write to replace the ${COMMAND} in the project properties? I would expect to see
sparc-elf-gcc ${FLAGS} -E -P -v -dD "${INPUTS}"
You also tick "Allocate console in Console view" in the same page to help you see what happens.

If it doesn't work, are you sure sparc-elf-gcc is in the PATH variable? Make sure you restart Eclipse with the updated PATH if you have changed it.

Marc-Andre


From: ranran106011 [ranran106011@xxxxxxx]
Sent: Thursday, 14 January 2016 4:42 AM
To: Marc-André Laperle
Subject: Re: RE: Re: [cdt-dev] Reset to the local cross tool chain

Hi Marc-Andre,
I follow the steps you said to do, but I still have a problem.In Problems view have "Program '-E' not found in PATH",i don't konw why to find -E.I am in the Linux environment, tool chain is Sparc-elf.My goal is to use cross tool chain compiled c project, I don't know how to use local directory crossover tool chain.I don't know much about this, could you give me a detailed explain the steps?Thank you very much.I'm very sorry delay your time.
 
Thank you
Ranran
 
2016-01-14
ranran106011

发件人:Marc-André Laperle<marc-andre.laperle@xxxxxxxxxxxx>
发送时间:2016-01-14 12:06
主题:RE: Re: [cdt-dev] Reset to the local cross tool chain
收件人:"ranran106011"<ranran106011@xxxxxxx>
抄送:
 
Sorry, I remembered things incorrectly. Cross GCC doesn't work with Makefile projects, it was only made to work with the managed projects (no Makefiles or generated Makefiles). See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=438375

But it doesn't mean that you can't set up your project correctly, it's a bit more manual. The main thing that should be missing is letting CDT know where GCC is for the purpose of detecting the built-in includes and macros. To set this up manually, go to the project properties (right-click on the project, properties) > C/C++ General > Preprocessor Include Paths, Macros > select the Providers tab > select CDT Cross GCC Built-in Compiler Settings. At the bottom change the ${COMMAND} part to your compiler command, like sparc-elf-gcc for example (use the absolute path if it's not on the PATH environment variable).

This should let CDT parse your code much better and improve navigation.

Marc-Andre


From: ranran106011 [ranran106011@xxxxxxx]
Sent: Wednesday, 13 January 2016 8:32 PM
To: CDT General developers list.; Marc-André Laperle
Subject: Re: Re: [cdt-dev] Reset to the local cross tool chain

Hi Marc-Andre,
First of all, thank you very much for your help.I am in the Linux environment, tool chain is Sparc - elf.I created a c project and choose Makefile > Empty project on the left side and Cross GCC on the right side.Next page is Finish ,
Not to write the prefix and the path ,What should I do?
 
Thank you
Ranran
2016-01-14
ranran106011

发件人:Marc-André Laperle <marc-andre.laperle@xxxxxxxxxxxx>
发送时间:2016-01-14 03:42
主题:Re: [cdt-dev] Reset to the local cross tool chain
收件人:"CDT General developers list."<cdt-dev@xxxxxxxxxxx>
抄送:
 
Hi Ranran,

The Cross GCC toolchain helps you use a GCC that is not supported by the more conventional toolchains in CDT (Linux GCC, MacOSX GCC, MinGW GCC...). With Cross GCC, you can define a prefix and a path to the compiler.
For example, if I have C:\toolchains\bin\arm-linux-gcc.exe
   The prefix is arm-linux-
   The path is C:\toolchains\bin\

To set up such a project in CDT, use the new project wizard (File > New > C++ project)
Untick the default location checkbox and browse for the folder containing your code.
If you use your own Makefile (or other command line build system), choose Makefile > Empty project on the left side and Cross GCC on the right side.
The wizard will ask you the prefix and the path of the compiler after a few pages (the ones I mentioned before).

With that project set up, you should be able to build and navigate your code.

Regards,
Marc-Andre


From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] on behalf of ranran106011 [ranran106011@xxxxxxx]
Sent: Wednesday, January 13 2016 1:55 AM
To: cdt-dev
Subject: [cdt-dev] Reset to the local cross tool chain

hi,
    I now to install CDT_8_8 in eclipse,want to use my local directory crossover tool chain compiled c/c + + project.How should I do ability to use own crossover tool chain?Can you help me?
Thank you
Ranran
 
2016-01-13

ranran106011

Back to the top