Skip to main content

Because it use evc compiler to compile visCPP files. Where's wrong?

6 replies [Last post]
geelpheels
Offline
Joined: 2006-05-05
Points: 0

Now, I have successfully generated tools loopgen.exe and romgen.exe. But when I start DEBUG build, error occurs again.
Because the machine begin to use evc compiler and library to build to generate headerfiles, it start to compile ../generated/_build_pch_visCPP.cpp. The error it reported was:
make[1]: *** [_build_pch_visCPP.obj] Error 5
and no any additional information.
I have read the file wince_arm.cfg and add some include directories and libraries' options into it. So it works out the loopgen.exe and romgen.exe.
I also have read the root.make and jvm.make. I found out it firstly use the
#----------------------------------------------------------------------
#
# Compiler Section: visCPP (Visual C++ 6.0 for Win32)
#
# [NOTE] Use this section as an example if you're defining a new HOST
# compiler.
#----------------------------------------------------------------------
section to generate tools and then use the
#----------------------------------------------------------------------
#
# Compiler Section: evc (Embedded Visual C++ 3.0 WinCE)
#
# [NOTE] Use this section as an example if you're defining a new TARGET
# compiler.
#----------------------------------------------------------------------
section to generate VM.

My question is:
Because the same shared compiling processes repeated several times, how can the evc compiler to compile the sources writing for visCPP compiler to generate header files? Is it a Paradox? I wonder where my configuration is wrong.

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
geelpheels
Offline
Joined: 2006-05-05
Points: 0

OK.
The problem has been solved. Please see another thread:
http://forums.java.net/jive/message.jspa?messageID=295029#295029

geelpheels
Offline
Joined: 2006-05-05
Points: 0

Error 5. What can the error be?

ebresie
Offline
Joined: 2003-08-06
Points: 0

I am not working in this environment so I may not be able to help to much and I Hope I am not telling you something you already know...

HOST represents the system you are compiling on (Windows XP, Vista, Linux, etc)
TARGET represents the destination system (WinCE / ARM )

It is basically a two step compilation process. To develop for the platform, you have to compile the tools for the HOST system that will be used to help cross compile for the TARGET system.

I believe there are some variables you can include on the command line when compiling or in one of the configuration files. There is a TARGET_CC and a HOST_CC variable as well as a few similar variables that you may need to include to use the correct compiler at the correct time.

Maybe someone else can provide further details on this. Hope this helps.

Eric

geelpheels
Offline
Joined: 2006-05-05
Points: 0

Such easy problem. Where are the experts?

geelpheels
Offline
Joined: 2006-05-05
Points: 0

I'm realy confused. My boss is hastening me. If you know, please help me.

geelpheels
Offline
Joined: 2006-05-05
Points: 0

You see. It is ridiculous. How can evc to compile visCPP files. There must be some configuration is incorrect. You Know? Why not give me a hand?