Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT: GNU for MIPS
CDT: GNU for MIPS [message #126961] Fri, 12 November 2004 12:08 Go to next message
Eclipse UserFriend
Originally posted by: julieqpt.yahoo.ca

Hi,

I am pretty new to CDT and appreciate if you could help me.

My aim is to make cross platform GNU tool chain for MIPS works in CDT.

The Eclipse platform I am using is Version: 3.0.1SDK, The CDT plugin’s
version is 2.02 SDK.

I installed the cygwin on the PC and installed SDE MIPS GNU tool chain.

Now I made two simple projects: both of them are just simple HelloWorld.
The first one is standard make project and the second one is managed make
project.

In the Standard project’s properties ->C/C++ Make Project, I changed
“Build Command” to “C:\cygwin\usr\local\sde-5.03\bin\sde-make.exe” instead
of make since my make is in the path:
C:\cygwin\usr\local\sde-5.03\bin\sde-make.exe

The HelloWorld makefile is as following:

all: hello

clean:

rm main.o hello hello.exe

hello: main.o

C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -g -o hello main.o

main.o: main.cpp

C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -c -g main.cpp

Notice that I have to specify the absolute path for g++ too.

When I built this project, I got the error like:

C:\cygwin\usr\local\sde-5.03\bin\sde-make.exe all

C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -c -g main.cpp

C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe -g -o hello main.o

collect2: cannot find `ld'

sde-make: *** [hello] Error 1

It seems trying to find default ld, how can I let it find the
C:\cygwin\usr\local\sde-5.03\bin\sde-ld.exe?



For the second managed make project, in the project properties->C/C++
Build page, I changed “make”, “linker” and “compiler” point to the
absolute path C:\cygwin\usr\local\sde-5.03\bin\.


When I started to build this project, I got the error message popup:

The dynamic link library cygwin1.dll could not be found in the specified
path...

And also error message from CDT console view:

C:\cygwin\usr\local\sde-5.03\bin\sde-make.exe -k clean all

rm -rf main.o main.d HelloWorld.exe

'Building file: ../main.cpp'

C:\cygwin\usr\local\sde-5.03\bin\sde-g++.exe
-I"C:\sde-5.03\include\g++-3\std" -O0 -g -o main.o ../main.cpp

sde-make: *** [main.o] Error 1

sde-make: Target `all' not remade because of errors.

Build complete for project HelloWorld



First all, I want to make sure is my way the right way for using GNU mips
in CDT.

Second, please give me some clues to solve these problems?


Appreciate!
Julie
Re: CDT: GNU for MIPS [message #126974 is a reply to message #126961] Fri, 12 November 2004 12:12 Go to previous message
Eclipse UserFriend
Can you make the build without Eclipse?

Julie wrote:

> Hi,

> I am pretty new to CDT and appreciate if you could help me.

> My aim is to make cross platform GNU tool chain for MIPS works in CDT.

> The Eclipse platform I am using is Version: 3.0.1SDK, The CDT plugin’s
> version is 2.02 SDK.

> I installed the cygwin on the PC and installed SDE MIPS GNU tool chain.

> Now I made two simple projects: both of them are just simple HelloWorld.
> The first one is standard make project and the second one is managed make
> project.

> In the Standard project’s properties ->C/C++ Make Project, I changed
> “Build Command” to “C:cygwinusrlocalsde-5.03binsde-make.exe” instead
> of make since my make is in the path:
> C:cygwinusrlocalsde-5.03binsde-make.exe

> The HelloWorld makefile is as following:

> all: hello

> clean:

> rm main.o hello hello.exe

> hello: main.o

> C:cygwinusrlocalsde-5.03binsde-g++.exe -g -o hello main.o

> main.o: main.cpp

> C:cygwinusrlocalsde-5.03binsde-g++.exe -c -g main.cpp

> Notice that I have to specify the absolute path for g++ too.

> When I built this project, I got the error like:

> C:cygwinusrlocalsde-5.03binsde-make.exe all

> C:cygwinusrlocalsde-5.03binsde-g++.exe -c -g main.cpp

> C:cygwinusrlocalsde-5.03binsde-g++.exe -g -o hello main.o

> collect2: cannot find `ld'

> sde-make: *** [hello] Error 1

> It seems trying to find default ld, how can I let it find the
> C:cygwinusrlocalsde-5.03binsde-ld.exe?



> For the second managed make project, in the project properties->C/C++
> Build page, I changed “make”, “linker” and “compiler” point to the
> absolute path C:cygwinusrlocalsde-5.03bin.


> When I started to build this project, I got the error message popup:

> The dynamic link library cygwin1.dll could not be found in the specified
> path...

> And also error message from CDT console view:

> C:cygwinusrlocalsde-5.03binsde-make.exe -k clean all

> rm -rf main.o main.d HelloWorld.exe

> 'Building file: ../main.cpp'

> C:cygwinusrlocalsde-5.03binsde-g++.exe
> -I"C:sde-5.03includeg++-3std" -O0 -g -o main.o ../main.cpp

> sde-make: *** [main.o] Error 1

> sde-make: Target `all' not remade because of errors.

> Build complete for project HelloWorld



> First all, I want to make sure is my way the right way for using GNU mips
> in CDT.

> Second, please give me some clues to solve these problems?


> Appreciate!
> Julie
Previous Topic:Eclipse Core Platform/CDT on-line Javadoc
Next Topic:How to integrate an ExternalScannerInfoProvider in managedbuild?
Goto Forum:
  


Current Time: Sun Nov 09 23:02:09 EST 2025

Powered by FUDForum. Page generated in 0.03143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top