使用scons构建时无法使用IAR arm编译器进行编译...许可证检查失败

时间:2015-08-19 18:19:05

标签: c++ compilation arm scons iar

我能够指向iccarm编译器,但收到以下错误:

  

致命错误[LMS001]:许可证检查失败。使用IAR许可证管理器

我有

  1. 包含外部操作路径

    "env = Environment(platform='cygwin',ENV={'PATH': os.environ['PATH']})"

  2. 还特别包含了CPPPATH中编译器的路径。

  3. 还尝试使用ARM编译器的评估版

  4. 有人可以告诉我这个缺失的链接是什么吗?

2 个答案:

答案 0 :(得分:1)

包括或更好:传播,PATH变量可能还不够。有问题的编译器显然使用其他环境变量来查找其许可证文件...假设您确实拥有许可证并且编译在标准shell中正常工作。

尝试将整个shell环境包括在内:

- (void)viewDidLoad {
[super viewDidLoad];


if (!self.title)
    self.title = @"GLOBAL SEARCH";

self.tableView.backgroundColor = [UIColor whiteColor];

//TESTING
//if I don't have this, the bar detaches from the navigation bar
self.edgesForExtendedLayout = UIRectEdgeAll;
self.extendedLayoutIncludesOpaqueBars = YES;
//test


self.definesPresentationContext = YES;

self.searchController = [[UISearchController alloc] initWithSearchResultsController:nil];
self.searchController.dimsBackgroundDuringPresentation = NO;
self.searchController.searchResultsUpdater = self;
self.searchController.delegate = self;
self.searchController.searchBar.frame = CGRectMake(self.searchController.searchBar.frame.origin.x,
                                                   self.searchController.searchBar.frame.origin.y,
                                                   self.searchController.searchBar.frame.size.width,
                                                   44.0);


self.searchController.searchBar.backgroundImage = [[UIImage alloc] init];
self.searchController.searchBar.backgroundColor = kConstantBaseColor;
self.searchController.searchBar.barTintColor = kConstantBaseColor;
self.searchController.searchBar.tintColor = kConstantLabelColor;

 //set color
 [[UITextField appearanceWhenContainedIn:[UISearchBar class], nil] setDefaultTextAttributes:@{NSForegroundColorAttributeName:kConstantLabelColor}];


self.searchController.hidesNavigationBarDuringPresentation = NO;
[self.searchController.searchBar setSearchBarStyle:UISearchBarStyleMinimal];
self.tableView.tableHeaderView = self.searchController.searchBar;
self.tableView.clipsToBounds = NO;
self.tableView.tableHeaderView.clipsToBounds = NO;
self.tableView.tableHeaderView.backgroundColor = kConstantBaseColor;

 //put purple block above, in case user scrolls up
CGRect bufferFrame = CGRectMake(self.searchController.searchBar.frame.origin.x,
                                self.searchController.searchBar.frame.origin.y-300,
                                self.searchController.searchBar.frame.size.width*2,
                                300);
UIView *purpleBuffer = [[UIView alloc] initWithFrame:bufferFrame];
purpleBuffer.backgroundColor = kConstantBaseColor;
[self.tableView addSubview:purpleBuffer];
}


- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];

[coordinator animateAlongsideTransition:nil completion:^(id<UIViewControllerTransitionCoordinatorContext> context) {

}];  
 }

看看这是否有用。 如果没有,请发布您当前的SConstruct。

关于你关于2.的评论,CPPPATH变量适用于应该扫描头文件的路径(通过#include语句隐式依赖)...所以它不应该与你的问题有任何关系。无论如何,请检查UserGuide(http://www.scons.org/doc/production/HTML/scons-user.html)和MAN页面,以正确​​使用这些简单的结构。

答案 1 :(得分:0)

我通过设置:

解决了这个问题
env['ENV']['SYSTEMDRIVE'] = ['C:']

相当于:

export SYSTEMDRIVE=C: