目录
一、环境:
二、依赖库
三、步骤
四、参考
五、附加资源
一、环境
Ubuntu 14.04.3 LTS
二、依赖库
LIB: automake ,libtool,bison,flex
三、步骤
①从 https://github.com/mouse07410/asn1c 下载 zip 文件
②解压
$ mkdir asn1c && mv asn1c-vlm_master.zip asn1c/
$ cd asn1c && unzip asn1c-vlm_master.zip
③安装库
$ sudo apt-get install automake libtool bison flex
④进入asn1c-vlm_master目录并执行
$ test -f configure || autoreconf -iv
$ ./configure
$ make
$ make install
⑤显示 asn1c 是否安装完成
$ man asn1c
⑥编译asn文件
$ asn1c -fcompound-names 3GPP_S1AP_v15.3.0.asn
⑦生成的.h .c 文件