주 메뉴 열기

wwiki β

바뀜

크로스컴파일

95 바이트 제거됨, 2019년 5월 26일 (일) 07:44
편집 요약 없음
$ sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
=pkg-config스크립트config 스크립트
<syntaxhighlight lang="bash">
#!/bin/sh
</syntaxhighlight>
=소스작성과정빌드과정흔히 configure 전까지의 과정을 묶어서 bootstrap 또는 autogen.sh 라는 script 로 만들어서 한꺼번에 실행시킨다. 
==Makefile.am 작성==
 
#바이너리명
bin_PROGRAMS = hello
#소스명
hello_SOURCES = hello.c
 
==configure.ac 생성==
 
$ [[autoscan]]
 
생성된 configure.scan를 수정하여 configure.ac로 저장
==configure 생성==
 
$ aclocal
$ autoheader
==Makefile.in 생성==
 
$ automake --foreign --add-missing --copy
==Makefile 생성==
 
$ ./configure
=빌드순서=빌드== $ [[aclocal]] $ [[autoheader]] $ autoconf $ automake --add-missing -copy $ ./[[configure]]
$ make
$ make check
$ make install
 
흔히 configure 전까지의 과정을 묶어서 bootstrap 또는 autogen.sh 라는 script 로 만들어서 한꺼번에 실행시킨다.
편집
2,431