安装完RealView compiler之后ADS编译器没法运行的问题

安装完RealView compiler之后ADS编译器没法运行的问题

4/23/2010 10:06:39 PM
在安装完RealView之后,再编译原来依赖于ADS 1.2编译器的代码,无法编译,出现如下提示,我们可以把ADS 1.2的Lincense覆盖到c:/arm/license下,即可解决。
Serious error: C3397E: Cannot obtain license for compiler with license version >
= 1.2: Invalid (inconsistent) license key
The license-key and data for the feature do not match.
This usually happens when a license file has been altered
Feature: compiler
License path: c:/arm/licenses/license.dat
FLEXlm error: -8,130
For further information, refer to the FLEXlm End User Manual,
available at " www.globetrotter.com".
继续编译仍然存在Serious error: C3052E: couldn't read file '../../apps/StaticExtensions/OEM/Src/xxx.c'的问题,
此问题与cygwin的环境有关,我们通过mount可以看到:
C:/CygwinPortable/App/Cygwin/bin on /usr/bin type user (binmode)
C:/CygwinPortable/App/Cygwin/lib on /usr/lib type user (binmode)
C:/CygwinPortable/App/Cygwin on / type user (binmode)
C:/cygwin/bin on /usr/bin type system (binmode)
C:/cygwin/lib on /usr/lib type system (binmode)
C:/cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
而我们希望的cygwin的bin是c:/cygwin,而不是c:/cygwinportable/app/cygwin目录,这个目录的修改是在注册表中保存的:
HKEY_CURRENT_USER/Software/Cygnus Solutions/Cygwin/mounts v2]
[HKEY_CURRENT_USER/Software/Cygnus Solutions/Cygwin/mounts v2//]
"native"="C://CygwinPortable//App//Cygwin"
"flags"=dword:00000002
[HKEY_CURRENT_USER/Software/Cygnus Solutions/Cygwin/mounts v2//usr/bin]
"native"="C://CygwinPortable//App//Cygwin//bin"
"flags"=dword:00000002
[HKEY_CURRENT_USER/Software/Cygnus Solutions/Cygwin/mounts v2//usr/lib]
"native"="C://CygwinPortable//App//Cygwin//lib"
"flags"=dword:00000002

你可能感兴趣的:(compiler)