石水2 石水2
关注数: 1 粉丝数: 5 发帖数: 191 关注贴吧数: 10
Compile wxWidgets in Unicode mode Compile wxWidgets in Unicode mode After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets:set path=c:\mingw\bin;c:\mingw\mingw32\bin mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else. You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed. If you are using a recent version of MinGW you may find that the object files are too large and that the linker runs out of memory. To fix this problem you need to edit config.gcc so that inline functions are not exported, by modifying the CFLAGS and CXXFLAGS lines to: CFLAGS ?= -fno-keep-inline-dllexport CXXFLAGS ?= -fno-keep-inline-dllexport remark: If you want to use wxWidgets not only for building Code::Blocks, but also for writing wxWidgets programs, and if you want to use the debugger in those programs, you have to compile a debug build of wxWidgets as well. Use the same commands as for the release build, but replace "release" by "debug". Optional: To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.
U盘引导的相关资料 http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fbbs.pediy.com%2Fshowthread.php%3Ft%3D173869&urlrefer=0625687642a54d250036d3a836d60393 关于USB模拟成软驱启动 如果运气好的话,U盘引导的操作系统其实很容易就完成了。例如,将系统的软盘映像haribote.img (osask项目里)用winhex直接复制到U盘的第一扇区开始的地方,U盘引导盘就完成了。cpu会用软驱模拟器启动USB,因此此模式下USB的读写和软盘相同。 通过实验,在我的Dell一体机里,可以成功引导并进入系统,和在虚拟机里看到的效果一样,可以响应键盘输入,但遗憾的是鼠标不能移动了(why?) ; 而在我的Thinkpad T410 笔记本里却引导失败(能进入引导程序,但加载系统失败,估计读写出了问题,难道启动USB的时候用的是硬盘模拟器而不是软盘模拟器?)。 /*****************************************/ 相关资料: http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fboard.flatassembler.net%2Ftopic.php%3Ft%3D12389&urlrefer=3824b47c4ccaaa249f9ba991037e51a3 摘录 USB Booting Secret #2: What happens in the boot sector, stays in the boot sector! When it comes to USB booting there are basically 4 types of computers: PC without USB, or with USB and can't boot USB because of old BIOS firmware. ;不支持USB启动 PC that always boots USB with floppy disk emulation. ;总是以软驱模拟器引导 PC that always boots USB with hard drive emulation. ;总是以硬盘驱动器模拟器引导 PC that examines the boot sector to determine the type of emulation and/or with BIOS selection setup.;根据BIOS的设置来决定模拟器类型 相关资料 A simple FAT32 bootloader written in assembly to boot from USB drives. http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fblog.ishans.info%2F2012%2F01%2F19%2Fa-simple-fat32-bootloader-written-in-assembly-to-boot-from-usb-drives%2F&urlrefer=77f6b7056d01ef754b06062a3554a394 相关资料 http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fboard.flatassembler.net%2Ftopic.php%3Ft%3D12469&urlrefer=cf6c8f29c9a4fb47513f754f1c7ea52b http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmbldr.sourceforge.net%2Fspecsedd30.pdf&urlrefer=378e0f2f8f13ffe99bb90e9a840c0b92 摘录 USB Booting Secret # 3: If the PC can boot from USB, you can use the BIOS to access the entire flash drive. Interrupt 13h, ah=42h Extended Read and ah=43h Extended Write can be used for USB flash drive LBA access.
1 下一页