当前位置:网站首页>In the arm64 environment, the third-party library hajimehoshi/oto of golang relies on the solution of alsa lib and CGO
In the arm64 environment, the third-party library hajimehoshi/oto of golang relies on the solution of alsa lib and CGO
2022-07-22 17:05:00 【Bitter flowers bloom 5486】
Last updated on 2022 year 7 month 19 Japan 17:13:05
Pay attention to the following points :
# oto Library requirements cross-compile You must explicitly specify
export CGO_ENABLED=1
# You must explicitly set C compile( perhaps cross compile, The devil knows CC What is the abbreviation for )
export CC=aarch64-linux-gnu-gcc
from ALSA The official website of lib Compressed package , I use it 1.2.4 edition : Download address
decompression 、 Cross compile and install :
tar -xvf ./alsa-lib-1.2.4.tar.bz2
cd alsa-lib-1.2.4/
mkdir build/
cd build/
CC=aarch64-linux-gnu-gcc ../configure --host=arm-linux
make
make install
In this way, you can compile successfully , Toss me all afternoon
Reference resources :
hajimehoshi/oto issue: cannot find -lasound
hajimehoshi/oto issue: Compilation error for ARM architecture
边栏推荐
- Qt5.9.2 initial import using msvc2017_ 64 record of problems encountered by compiler
- 跨域问题(CORS)详细说明和解决
- Li Kou daily question - day 41 -645. Wrong collection
- UE4 合并静态网格体
- 视觉系统设计实例(halcon-winform)-8.匹配查找
- shell(一)(更新中)
- 微信支付项目实战、创建订单到支付退款代码详解
- Model compression, acceleration and mobile deployment
- tf.get_ default_ graph
- Overview of basic principles of network
猜你喜欢
Is there anyone who can't analyze these data cases? A trick to teach you how to visualize recruitment data~
汉得集成平台 集星獭 1.4.0 版本正式发布!
【OPEN HAND】汉得企业级PaaS平台HZERO重磅开源!
[open hand] hande enterprise PAAS platform hzero heavy open source!
Qt warning: C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
Four main steps of web application penetration testing
Overview of basic principles of network
lvs看这篇就够了
GD32F470之串口空闲中断+DMA篇
Ora-16525 DG broker not available
随机推荐
codeforce D2. RGB Substring (hard version) 滑动窗口
Repair version of Dynamic Video Wallpaper wechat applet source code download, supporting various types of traffic main revenue
在 windows 上 将 MySql 5.6 升级到 8.0
LVS, this is enough
16_响应状态码
oracle存储过程参数理解
Data Lake: evolution of data Lake Technology Architecture
SAP wper (POS interface monitor) idco posting voucher ALV Report
Concis组件库 | 暗黑模式设计
14_响应模型
ig,ax = plt.subplots()
[论文翻译] Generalized Radiograph Representation Learning via Cross-Supervision Between Images
[open hand] hande enterprise PAAS platform hzero heavy open source!
视觉系统设计实例(halcon-winform)-8.匹配查找
线程系列协程原理
UE4 将蓝图写在Actor类里面 实现复用
ffmpeg-rk3399 ffplay 学习分析
ES6 模板字符串
Four main steps of web application penetration testing
[論文翻譯] Generalized Radiograph Representation Learning via Cross-Supervision Between Images