내용없음9
내용없음10














 data room..
고객지원 자료실
자료요청은 질문답변 게시판에 올려 주십시오.
 
  ASN.1 ASN1C Linux 설치 및 Run-Time Library 빌드 방법
ㆍ작성자: 옐로우스톤 ㆍ작성일: 2012-07-20 (금) 10:28 ㆍ조회: 115151
ㆍ분류: 기술자료 ㆍ추천: 0   http://www.nltelecom.com

제목 : ASN.1 ASN1C Linux 설치 및 Run-Time Library 빌드 방법
 
A. 소프트웨어 설치
 
1-1. acv651lnxsdk.tar.gz (ASN1C compiler 및 prebuild run-time lib) 를 루트 디렉토리에 압축을 풀어 설치
(루트 디렉토리에서 tar xzf acv651lnxsdk.tar.gz)
 
- SDK가 설치된 예:
C:asn1c-v651
├─bin (osyslic.txt)
├─c
├─cpp
├─doc
 
1-2. rtpv651lnxusa.tar.gz (run-time source code)  를 루트 디렉토리에 압축을 풀어 설치
(루트 디렉토리에서 tar rtpv651lnxusa.tar.gz)
 
- RTL source code 가 설치된예:
C:asn1c-v651
├─rtbersrc
├─rtpersrc
├─rtsrc
├─rtxersrc
├─rtxmlsrc
├─rtxsrc
├─scripts
├─utils
└─xsd
 
1-3. ACV651 CD에 있는 asn1c.lic 라이센스 파일을 bin 디렉토리에 복사
 
라이센스 파일일 설치된 예:
 
C:asn1c-v651inasn1c.lic

 
B. GNU 컴파일러에서 PowerPC 용 Run-time Library 빌드 방법 및 컴파일 옵션

acv651/
├─   libv651/asn1c/rtbersrc/*.c
├─   libv651/asn1c/rtpersrc/*.c
├─   libv651/asn1c/rtsrc/*.c
├─   libv651/asn1c/rtxsrc/*.c
├─   libv651/asn1h/*.h
 
1. 컴파일 옵션 추가
-D_NO_INT64_SUPPORT -D_NO_LICENSE_CHECK
 
2. Include 옵션 추가
-I/acv651/libv651
-I/acv651/libv651/asn1h
-I/acv651/libv651/asn1c
 
3. 빌드시 최종 생성된 파일
-> Shared Library gcc PPC version 4.1.2 libv651.so 를 생성 확인

C. README 파일 C:asn1c-651README.html
D. ASN1C ASN.1 Compiler 교육자료
 
소프트웨어 설치가 완료되면, ~ asn1c-v651c 또는 ~ acv633cpp 및 서브디렉토리 sample_xxx 에 각종 예제 파일이 들어 있습니다.
 

교육자료를 명확하게 설명하고 있는 웹문서는 Tutorial providing an introduction to the basic concepts of ASN.1 (http://www.obj-sys.com/asn1tutorial/asn1only.html) 입니다.

 



2-4-2. 다른 Platforms Run-time Code 포팅

 

모든 platform 사양 내용은 소프트웨어가 설치된 루트 디렉토리의 platform.mk에 있습니다.

다른 platform Run-time code를 포팅하는 방법은 아래와 같습니다.

 

1.     Create a directory tree containing a root directory (the name does not matter) and lib, src, rt*src, and build_lib subdirectories (note: in these definitions, * is a wildcard character indicating there are multiple directories matching this pattern). The tree should be as follows:

 

 

2.     Copy the files ending in extension ".mk" from the root directory of the installation to the root directory of the target platform (note: if transferring from DOS to UNIX or vice-versa, FTP the files in ASCII mode to ensure lines are terminated properly).

 

3.     Copy all files from the src and the different rt*src subdirectories from the installation to the src and rt*src directories on the target platform (note: if transferring from DOS to UNIX or vice-versa, FTP the files in ASCII mode to ensure lines are terminated properly).

 

4.     Copy the makefile from the build_lib subdirectory of the installation to the build_lib subdirectory on the target platform (note: if transferring from DOS to UNIX or vice-versa, FTP the files in ASCII mode to ensure lines are terminated properly).

 

5.     Edit the platform.mk file in the root subdirectory and modify the compilation parameters to fit those of the compiler of the target system. In general, the following parameters will need to be adjusted:

a.  CC C compiler executable name
b.  CCC C++ compiler executable name
c.  CFLAGS_ Flags that should be specified on the C or C++ command line

The platform.w32 and platform.gnu files in the root directory of the installation are sample files for Windows 32 (Visual C++) and GNU compilers respectively. Either of these can be renamed to platform.mk for building in either of these environments.


 

6.     Invoke the makefile in the build_lib subdirectory.

 

모든 파라메타 설정이 정확하다면, lib 서브디렉토리에 바이너리 라이브러리가 만들어질 입니다.




문의전화 : TEL: 02-813-7474 



윗글 ASN.1 ASN1C Compiler PER Windows CE 포팅 방법
아래글 VxWorks 6.x and BSP 교육자료 준비중입니다.
번호     글 제 목  작성자 작성일 추천 조회
28 기술자료 Wind River Workbench OCD 2.6 SBC8349 Board bring up 사용법 관리자 2012-08-02 0 25434
27 기술자료 Wind River Workbench OCD 2.6 MCF5251 Board bring up 사용법 관리자 2012-08-02 0 19856
26 기술자료 Wind River Workbench OCD 2.6 SBC8548E Board bring up 사용법 관리자 2012-08-02 0 20109
25 기술자료 Wind River Workbench OCD 3.3.3 MPC5516E Board bring up 사용법 관리자 2012-08-02 0 16103
24 기술자료 Wind River Workbench OCD 3.x vCLICK_MIPS4Kc Board bring up 사용법 관리자 2012-08-02 0 14199
23 기술자료 Wind River Workbench OCD 3.x MPC860 Board bring up 사용법 관리자 2012-08-02 0 14374
22 기술자료 Wind River Workbench OCD 3.x SC2410 Board bring up 사용법 관리자 2012-08-02 0 13999
21 기술자료 Wind River Workbench OCD 3.x OCTEON CN3860 Board bring up 사용법 관리자 2012-08-02 0 14180
20 기술자료 Wind River Workbench OCD 3.x Linux & u-boot Board bring up 사용법 관리자 2012-08-02 0 14150
19 기술자료 Wind River Workbench OCD 3.x BCM53001 Board bring up 사용법 관리자 2012-08-02 0 13854
18 기술자료 Wind River Workbench OCD 3.x ARM CORETEX-A8 Board bring up 사용법 관리자 2012-08-02 0 13851
17 기술자료 Wind River Workbench OCD 3.x OCTEON CN5860 Board bring up 사용법 관리자 2012-08-02 0 12154
16 기술자료 Wind River Workbench OCD 3.x MPC5516 Flash Programming 사용법 관리자 2012-08-02 0 11509
15 기술자료 Wind RIver Workbench OCD 3.x MPC5516 사용법 관리자 2012-08-02 0 13926
14 기술자료 VxWorks 6.9 Porting Pentium4 PC 준비중입니다. 옐로우스톤 2012-07-29 0 19757
13 기술자료 ASN.1 ASN1C Compiler PER Windows CE 포팅 방법 옐로우스톤 2012-07-20 0 20342
12 기술자료 ASN.1 ASN1C Linux 설치 및 Run-Time Library 빌드 방법 옐로우스톤 2012-07-20 0 115151
11 기술자료 VxWorks 6.x and BSP 교육자료 준비중입니다. NLTJUN 2012-06-19 0 20240
10 기술자료 Freescale QorIQ 시리즈 reg 파일 관리자 2012-06-01 0 15149
9 매뉴얼 Wind River Diab Compiler 5.9.0 설치 및 교육자료 NLTJUN 2012-05-14 0 15989
123

(153-803) 서울시 금천구 가산동 371-59 신한이노플렉스 703호 (주)엔엘텔레콤
TEL: 02-813-7474 / FAX: 02-813-6355 / E-mail: sales1@nltelecom.com