Asn1.c use open source compiler tool to generate S1AP R15 messages codec C file

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.
This link: https://blog.csdn.net/qq_25908839/article/details/102670875

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 

 

 

Guess you like

Origin blog.csdn.net/qq_25908839/article/details/102670875