📄 install.txt
字号:
NOTE:----If you don't want to bother compiling the newlib with MingW ('cause it'squite annoying and you have to apply the include.diff in the libfd32), youcan download the pre-complied ones: http://freehost24.websamba.com/xnova/newlib-1.13.0-binary-mingw.zip http://idea.51.net/temp/newlib-1.13.0-binary-mingw.zipCOMPILING:----Compiling the winb module requires newlib and libfd32, and can be difficult,hence these short notes...I assume you have the apps, fd32, drivers, and oslib modules in /tmpand you already have compiled themcd /tmptar xvzf newlib-1.13.0.tar.gzChange the following lines starting @160in /tmp/newlib-1.13.0/newlib/libc/include/sys/types.h:-typedef long off_t;+#ifndef _OFF_T_+#define _OFF_T_+typedef long long int off_t;+#endif /* Not _OFF_T_ */Change the following line @14 inin /tmp/newlib-1.13.0/newlib/libc/include/sys/_types.h:-typedef long _off_t;+typedef long long _off_t;mkdir binln -s /usr/bin/ar /tmp/bin/i586-pc-elf-arln -s /usr/bin/as /tmp/bin/i586-pc-elf-asln -s /usr/bin/gcc /tmp/bin/i586-pc-elf-gccln -s /usr/bin/ld /tmp/bin/i586-pc-elf-ldln -s /usr/bin/nm /tmp/bin/i586-pc-elf-nmln -s /usr/bin/objdump /tmp/bin/i586-pc-elf-objdumpln -s /usr/bin/ranlib /tmp/bin/i586-pc-elf-ranlibexport PATH=$PATH:/tmp/binmkdir Buildcd Build../newlib-1.13.0/configure --target=i586-pc-elf --prefix=/tmp/libcmake; make installcd ../apps/libfd32cp -r /usr/lib/gcc-lib/i386-linux/2.95.4/include include (replace with the include directory of your compiler as needed)cp /tmp/fd32/drivers/winb/stdint.h includecp mk/elf.mk config.mkOSLIB=/tmp/oslib FD32=/tmp/fd32 NEWLIBC=/tmp/libc/i586-pc-elf makecp crt0.o /tmp/libc/i586-pc-elf/libcp libfd32.a /tmp/libc/i586-pc-elf/libcd /tmp/fd32/drivers/winbOSLIB=/tmp/oslib FD32=/tmp/fd32 NEWLIBC=/tmp/libc/i586-pc-elf make
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -