zoukankan      html  css  js  c++  java
  • 关于windows mobile 驱动的编译(和wince 有什么差异?)

    Developing a Device Driver > Device Driver Development Concepts > Troubleshooting a Device Driver

    The following table shows descriptions and resolutions of problems you may encounter while building your driver.

    DescriptionResolution
    The build cannot find files you expected it to include. Ensure that the paths to the files are specified with the INCLUDES macro in the sources file.
    The C_DEFINES and RCOPTIONS macros in your sources file are not working. Use the CDEFINES and RDEFINES macros instead. The C_DEFINES and RCOPTIONS macros are only appropriate on a Windows-based desktop platform.
    You cannot compile Miniport.rc because the build cannot find Windows.h. Add the Windows.h file location to the RDEFINES macro in the sources file.
    Your object files are not building. Check the arguments you are passing to the build utilities. Ensure that you did not accidentally pass an empty argument when using a switch.
    The build cannot find a static library or you receive an error compiling your .def file because it cannot find Deffile.inc. Do not copy files to the location that the build utility is searching. Instead, run the Master Build tool (Cebuild.bat) from %_WINCEROOT% with the proper build environment settings. Running Cebuild.bat with the proper build environment settings generates the proper library and include directories for your build environment. Run Cebuild.bat from %_WINCEROOT% for every build configuration that you use to build your driver. For more information on Cebuild.bat, see Master Build Tool.
    You do not have a proper build environment for your driver. Create a project. Then, from the Build menu, choose Open Build Release Directory. This opens a command-line interface with the correct environment variables. You can then navigate to the directory where your driver resides, and then run the Build tool (Build.exe). For more information on Build.exe, see Build Tool.
    You do not want to use a project. Use the Windows CE Build Environment tool (Wince.bat). For more information on Wince.bat, see Windows CE Build Environment Tool.
    You want to put your driver into the %_FLATRELEASEDIR% directory of your project. From the command line, type set WINCEREL=1. The build utility will move your driver to the %_FLATRELEASEDIR% directory. If it is a debug build, the .dll, .pdb, and .map files move to the %_FLATRELEASEDIR% directory as well.
    You want to change your %_FLATRELEASEDIR% environment variable. Type set _FLATRELEASEDIR=MyFlatReleaseDir. MyFlatReleaseDir is a placeholder for the flat release directory you choose. For more information on changing environment variables, see SET (Command Processor) World Wide Web link.
    The compiler behaves as if some structures and macros in header files do not exist, even though they do. Ensure that WINCEOEM=1 is in your sources file. This is often set in a Sources.cmn file so you may run into this issue if you copy a driver from the Public directory and try to build it in another location.
    Sources files with NMAKE conditionals in them do not build properly. NMAKE understands conditionals, but Build.exe does not. Do not use conditionals in your sources files.
  • 相关阅读:
    H5项目开发分享——用Canvas合成文字
    《JavaScript设计模式 张》整理
    Linux常用指令指南,终端装逼利器
    飞起来的正则表达式
    JavaScript特性(attribute)、属性(property)和样式(style)
    使用 Nginx 提升网站访问速度
    centos 邮件服务 腾讯企业邮箱(免费) 使用iRedmail 需要有公网的centos主机 发邮件协议:smtp 端口25 收邮件协议:pop3 端口110 iredmail安装配置 使用邮箱系统 第三十一节课
    用nginx的反向代理机制解决前端跨域问题在nginx上部署web静态页面
    mysql字符集调整总结
    因为smb和nfs挂掉导致客户端开机启动不了
  • 原文地址:https://www.cnblogs.com/gooogleman/p/2036818.html
Copyright © 2011-2022 走看看