Eclipse Juno and PowerPC GNU Cygwin compiler on Windows 7 [message #1193124] |
Sun, 17 November 2013 23:23 |
Newbie Programmer Messages: 1 Registered: November 2013 |
Junior Member |
|
|
I'm working on a project to set up Eclipse Juno and Cygwin (on Windows 7) to compile C++ code and generate an executable for a PowerPC 440sf target running Linux.
Predominantly I am a hardware guy, never configured Software tools and worked with Cygwin.
I have gone through a lot of help topics on the forums on stackoverflow, eclipse forums et al., used the eclipse wiki directory and tried to configure every minute aspect as much I could've understood and interpret.
I am using a crosstool compiler addon by GNU for PowerPC in Cygwin for all the includes and binaries
C:\cygwin\opt\crosstool\powerpc-440sf-linux-gnu\gcc-4.2.4-glibc-2.6 (Root directory)
Can someone please guide me through the process?
These are the steps that I have been following:
1. File->New Project->C++ Project
Choose the Hello World C++ Project and the Cygwin Gcc toolchain
Click Next twice which takes you to the Select Config Window
2. Click on Advanced settings
C/C++ Build->Environment->
Variable->PATH->Edit
add:
#This is where my g++ is located and it is powerpc-440-linux-gnu-g++.exe
#I would like to use this g++ to Build my project.
C:\cygwin\opt\crosstool\powerpc-440sf-linux-gnu\gcc-4.2.4-glibc-2.6\bin
C/C++ Build->GCC Assembler
Command- powerpc-440-linux-gnu-as
C/C++ Build->Cygwin C++ Compiler
Command- powerpc-440-linux-gnu-g++
Includes->Include Paths
"C:\cygwin\opt\crosstool\powerpc-440sf-linux-gnu\gcc-4.2.4-glibc-2.6\powerpc-440-linux-gnu\sys-root\usr\include"
"C:\cygwin\opt\crosstool\powerpc-440sf-linux-gnu\gcc-4.2.4-glibc-2.6\powerpc-440-linux-gnu\include\c++\4.2.4\backward"
"C:\cygwin\opt\crosstool\powerpc-440sf-linux-gnu\gcc-4.2.4-glibc-2.6\powerpc-440-linux-gnu\include\c++\4.2.4\debug"
"C:\cygwin\opt\crosstool\powerpc-440sf-linux-gnu\gcc-4.2.4-glibc-2.6\powerpc-440-linux-gnu\include\c++\4.2.4"
C/C++ Build->Cygwin C++ Linker
Command- powerpc-440-linux-gnu-g++
Libraries->Libraries (These paths need to be added according to my understanding which again possibly is completely wrong)
C:\cygwin\opt\crosstool\powerpc-440sf-linux-gnu\gcc-4.2.4-glibc-2.6\lib
C:\cygwin\opt\crosstool\powerpc-440sf-linux-gnu\gcc-4.2.4-glibc-2.6\powerpc-440-linux-gnu\sys-root\usr\lib
Do the same as above for
Libraries->Library Search Path
C/C++ General->Preprocessor Include...->Providers
Uncheck everything except for CDT user setting Entries.
[Updated on: Mon, 18 November 2013 15:13] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03444 seconds