Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
table of Contents
First, the environment:
Second, the dependent libraries
Third, step
Fourth, the reference
Five additional resources
First, the environment
Ubuntu 14.04.3 LTS
Second, the dependent libraries
LIB: automake ,libtool,bison,flex
Third, step
① from https://github.com/mouse07410/asn1c download the zip file
② decompression
$ mkdir asn1c && mv asn1c-vlm_master.zip asn1c/
$ cd asn1c && unzip asn1c-vlm_master.zip
③ installation library
$ sudo apt-get install automake libtool bison flex
④ enter asn1c-vlm_master directory and execute
$ test -f configure || autoreconf -iv
$ ./configure
$ make
$ make install
⑤ show whether the installation is complete asn1c
$ man asn1c
⑥ compiled asn file
$ asn1c -fcompound-names 3GPP_S1AP_v15.3.0.asn
⑦ generated .h .c file
Fourth, the reference
https://github.com/mouse07410/asn1c
Five additional resources
Link: https: //pan.baidu.com/s/1cVNdmO7KYUk2NR84ljR1sg&shfl=sharepset
extraction code: 215g