x86_64에서 libncurses를 사용하는 간단한 프로그램을 컴파일하고 싶습니다. 목표 시스템은 MIPS입니다.crosstool-ng-stdio.h : 해당 파일이나 디렉토리가 없습니다.
내 crosstool-ng-1.20 빌드
그러나, 간단한 인사 세계가 심하게 종료 (샘플 MIPS-알 수없는 엘프와) 잘 갔다.
#include <stdio.h>
int main(void)
{
printf("OH HAI.\n");
return 0;
}
-
x86host:~/toolchain$ mips-unknown-elf-gcc -o hello hello.c
hello.c:1:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
내가 분명히 여기 정말 뭔가를 잘못하고 있어요
,하지만 난 시작합니까?
[편집]
는 markgz 감사드립니다. Codesourcery는 내가 필요한 것입니다.
mips-linux-gnu-gcc.exe -static -o helloStatic hello.c
개념 증명이 완료되었습니다. 이제 ncurses 프로그램을 컴파일하십시오.
[Switch:/]$ file /mnt/sd3/user/helloStatic
/mnt/sd3/user/helloStatic: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1,
statically linked, for GNU/Linux 2.6.16, with unknown capability
0x41000000 = 0xf676e75, not stripped
[Switch:/]$ uname -a
Linux Switch 2.6.32.59-cavium-octeon2.cge-cavium-octeon #1
SMP PREEMPT Fri May 10 11:48:14 PDT 2013 mips64 GNU/Linux
[Switch:/]$ /mnt/sd3/user/helloStatic
HOLIDAYS ARE COMING.