Ubuntu 23.04安装最新版本Halcon 23.05

Ubuntu 23.04安装最新版本Halcon 23.05

官网下载

去Halcon官网:https://www.mvtec.com/products/halcon/,注册或登录,点击Download:

或者进入大恒网站,点击软件:

安装

正如Winodws一样,点击 som 文件,会进入浏览器跳入一个网页端:

然后设置安装目录:

点击保存设置。

最后进行安装:

然后开始进行安装...

最后进行Halcon的许可证处理,在这里推荐一个License的博客:
Halcon License - 2023.7.1(持续更新)

环境变量设置

利用命令打开:

bash 复制代码
sudo gedit ~/.bashrc

显示:

在末尾添加(注意对应文件路径):

bash 复制代码
HALCONARCH=x64-linux; export HALCONARCH
HALCONROOT=/opt/halcon; export HALCONROOT
HALCONEXAMPLES=${HALCONROOT}/examples; export HALCONEXAMPLES
HALCONIMAGES=${HALCONROOT}/examples/images; export HALCONIMAGES
PATH=${HALCONROOT}/bin/${HALCONARCH}:${HALCONROOT}/FLEXlm/${HALCONARCH}:${PATH}
export PATH
if [ ${LD_LIBRARY_PATH} ] ; then
LD_LIBRARY_PATH=${HALCONROOT}/lib/${HALCONARCH}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=${HALCONROOT}/lib/${HALCONARCH}; export LD_LIBRARY_PATH
fi
if [ "x${FLEXID_LIBRARY_PATH}" = "x" ]; then
FLEXID_LIBRARY_PATH="${HALCONROOT}/FLEXlm/${HALCONARCH}/flexid9:/usr/lib"
export FLEXID_LIBRARY_PATH
fi

进行:source ~/.bashrc,使得环境变量设置后生效。

最后,可以在终端上输入:hdevelop,即可打开。

创建快捷方式

1.打开桌面,新建一个文件,以.desktop为后缀:

bash 复制代码
sudo gedit halcon.desktop

2.在文档中输入:

Desktop Entry

Name=Halcon23.05 //自定义图标名称

Exec=/opt/halcon/bin/x64-linux/hdevelop //程序对应的路径

Icon=/home/xrobot/Applications/halcon/halcon.png //图标存放的路径,可以是png,jpg,也可以是ico

Type=Application

StartupNotify=false

保存文档

3.右键属性,更改权限,勾选:允许作为程序执行文件

给个最新ubuntu的镜像源地址
bash 复制代码
sudo gedit /etc/apt/sources.list

加入:

阿里云

bash 复制代码
# aliyun
deb http://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse

清华源

bash 复制代码
# tsinghua
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse

中科大

bash 复制代码
# 中科大
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ lunar-proposed main restricted universe multiverse

163源

bash 复制代码
# 163
deb http://mirrors.163.com/ubuntu/ lunar main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lunar-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lunar-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lunar-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lunar-backports main restricted universe multiverse
相关推荐
xierui123123几秒前
AI创作工作流状态管理:为什么保存 Prompt仍然无法复现作品
人工智能·自动化·prompt·aigc·软件工程
zzz_23681 分钟前
【AI代码测评】OpenCodeReview 架构拆解:确定性工程与 Agent 如何分工
人工智能·架构·agent·agent测评·harnes
Raas1002 分钟前
企业AI网关哪个好?MAI Gateway(魔芋企业级AI网关)入选2026年企业AI网关推荐清单
网络·人工智能·gateway·企业·ai网关·mai gateway
2401_890603405 分钟前
Linux 进程控制
linux·运维·服务器
阿里云大数据AI技术16 分钟前
从数据平台到智能数据助手:Agentic 数据分析与 API 生产实践
人工智能·数据分析·agent
飞奔的猫19 分钟前
锈了儿—游戏素材用的在线图形处理工具
图像处理·人工智能·游戏美术
ACP广源盛1392462567320 分钟前
Qwen3.8‑2.4T 开源落地@ACP#国产 Serdes 长距离视频传输芯片 GSV5800 在私有化 AI 服务中的价值与应用场景
大数据·数据库·人工智能·嵌入式硬件·矩阵·开源·音视频
shxjnpl21 分钟前
AI会议助手选型的三个“容易被宣传页隐藏”的指标
人工智能·机器学习·语音识别·智能硬件
AIHR数智引擎26 分钟前
如何用WorkBuddy跑通HR自动化流程?
人工智能·经验分享·chatgpt·职场和发展·自动化·ai-native
ClouGence27 分钟前
不用编程,物理老师也能用AI一键生成交互式课件
人工智能·html·aigc