找回密码
 立即注册

QQ登录

只需一步,快速开始

arlose

注册会员

1

主题

1

帖子

17

积分

注册会员

积分
17
最新发帖

[已处理] linux下license无效

arlose
注册会员   /  发表于:2018-8-13 15:24  /   查看:3656  /  回复:1
本帖最后由 arlose 于 2018-8-13 15:26 编辑

刚从官网上下载的leadtools20版本和lic压缩包lic压缩包中有三个文件eval-license-files.lic, eval-license-files.lic.key, setup.txt


操作系统ubuntu16.04


使用LEADTOOLS20/Examples/Linux/C/Ocr中的makefile进行编译,编译成功在bin/lib/x64下生成了ocr可执行文件


一开始提示
*******************************************************************************
*** The developer license file passed to L_SetLicenseFile cannot be opened.
*** Edit ltunlock.h and provide the path to your license file and the contents of the developer key file.
*******************************************************************************
*******************************************************************************
Your license file is missing, invalid or expired. LEADTOOLS will not function. Please contact LEAD Sales for information on obtaining a valid license.*******************************************************************************
*******************************************************************************
*** NOTE: Your license file is missing, invalid or expired. LEADTOOLS will not function. Please contact LEAD Sales for information on obtaining a valid license.***

*******************************************************************************


然后修改了LEADTOOLS20/Include/ltunlock.h文件中的lic和key地址
但是运行时一直显示
*******************************************************************************
*** L_SetLicenseFile has failed with an "Invalid license file" error.
*** Edit ltunlock.h and provide the path to your license file and the contents of the developer key file.
*******************************************************************************
*******************************************************************************
Your license file is missing, invalid or expired. LEADTOOLS will not function. Please contact LEAD Sales for information on obtaining a valid license.*******************************************************************************
*******************************************************************************
*** NOTE: Your license file is missing, invalid or expired. LEADTOOLS will not function. Please contact LEAD Sales for information on obtaining a valid license.***
*******************************************************************************

与压缩包中的setup.txt有关吗?这个setup.txt如下:
KHYnGDm9OYTmywsWMFm6grdNWV5VGTUL9o9tWmY4+wNhP3jzuBKXH3GVfsbJsYvGsDSmZGpBqAnyanQAjUY6DLe8rjKPpRyuIs7N7nH+aU9gZ/0oSI+K+n4mNmBeQRKu+B6oL2+PQfv0SIs0AL3TzA/T4/afo11YmibsW9bbjpJiT6wQlqPZeprOre9LuM4MPP0KyCYAj7DPXQzNgm9s5Xf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89Loi6c8sJn4gatzQYUWbm+8tYvLQxjj0Pwrmr6jiLF/XuNwiUjGsepRrP3QCxRzNLoY9K6Qbkq9tV+v9j+5xlIau7haQeQzaEObL6x2OVLZyIEx/hAu+/ddV/apd3kqNGxE6lHJoOASres3n0PTzQgTx1N3egcFkXBv/mCqGVaMpEq3FIWlV2F84q3H7TdH3rXXKAl/V4fm8XqN9+eWbNQks4lrwXSCOT9bS4Fe1kIm0L79r9H3STtghgo4Ck5llb0AGdv/0sMVRZkBiepAh0Zz5HyrL2teXPR1hyxMJucQTzYkibD7sne/L2SIQkxGJS1zDXmGvziXSq0mN0F2CCuG1X2ufZMdUMswBkJx1x4jW+7/wIEgy6jSOZdJ/mRudP2hhb4IZJgx2x760WyEbMY2Eb19jZD/8bDJ680DWO3OGCPEkbEPBPveSzVUUh4HnjMrlwPk4gqdzbL1zx2YeAwDf4WhHnTDQPF21RJqezRtjypjjvnRxbPGyLG3C/w6xVy3YautPQIkLZpiLKeJp4ow==




1 个回复

倒序浏览
Richard.Ma讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2018-8-13 16:28:01
沙发
与setup.txt没有关系,Setlicense方法使用的两个参数分别是lic文件的路径,key文件中的文本值

您再试一下
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部