|
|
Classification: |
General |
Category: |
SDK |
Created: |
02/07/2005 |
Modified: |
02/07/2005 |
Number: |
FAQ-1216 |
Platform: |
Symbian OS v6.1, Symbian OS v7.0, Symbian OS v7.0s, Symbian OS v8.0 |
|
Question: When using the UIQ 2.x SDK why does AIF Builder fail with the message "Internal Error - cpp.exe has returned the error code
2"?
Answer: First ensure you have made your UIQ 2.x SDK the default device using the devices command. For example devices -setdefault @UIQ_21:com.symbian.UIQ
If you have correctly set the current UIQ SDK as the default device and still get the error message, then you are probably
launching AIF Builder from the
\epoc32\tools
directory. Instead choose any other directory to launch AIF Builder.
Post Symbian OS Version 6.0, Symbian changed the SDK tools configuration to cope better with multiple SDK installations.
All tool invocations (AIFBuilder, makesis etc) resolve, via the Path environment variable, to a set of generic stub files
located at C:\Program Files\Common Files\Symbian\Tools. When the appropriate tool stub file is launched it checks for the
default device, and then launches the corresponding tool for that SDK (located at \epoc32\tools), as well as initializing
EPOCROOT appropriately. By launching your tool directly from the \epoc32\tools directory you by-pass the stub file and therefore
the EPOCROOT initialization. Hence the resulting error message.
|
|
|