PB compilation error sorting

Source: Internet
Author: User

Reprinted please indicate the source

Author: Pony


Problem 1: irsir. dll not found

Today, I had a problem with customizing a kernel in the company. After a morning (of course, this is also related to the company's computer speed), an error occurred during compilation, as shown in the following figure:

Error:   Could   not   find   file   'D:/WINCE420/PUBLIC/a2_vgagsp1214/RelDir/SAMSUN~2/irsir.dll'   on   disk     irsir.dll   D:/WINCE420/PUBLIC/a2_vgagsp1214/RelDir/SAMSUN~2/irsir.dll   NK   SH       Error:   failed   setting   line     makeimg:   FATAL   ERROR:   Command   returned   non-zero   exit   code   1   (dec).     makeimg:   FATAL   ERROR:   Command   returned   non-zero   exit   code   1   (dec).  

Irsir. dll not found?

Check the CE help file as follows:

Irsir is an NDIS miniport driver that implements the serial infrared (SIR) MAC layer that binds to the IrDA Stack

 

It was originally used by the infrared component, and irsir could not be found. DLL file, it is estimated that the corresponding components are not added when the kernel is customized. Let's take a look at it with petabytes and there is no such component. i'm not sure this idea is correct. I checked the Internet and said two solutions on the Internet, the cause of this error is that the BSP of each development board is copied and copied. A board supplier forgot to change the platfrom because of the infrared port of the Board. bib

The first method is to set

Irsir. dll $ (_ flatreleasedir)/irsir. dll NK sh

Comment out this statement. I tried it and it is feasible. the bib file is used to define which modules and files are included in the system image. After the preceding statement is commented out, the module will not be found during the image generation phase. Therefore, the module is commented out and compiled again, no problem.

The second method is my above thought. I tried it: it is also feasible.

 

Question 2:

The previous BSP is used to re-create a kernel and run it on the board. The following information is printed on the serial port, and the system is not started.

After the customization, download it to the Development Board. It cannot run. Serial Port information:

::: OEMEthInit() IP Address : 0.0.0.0::: OEMEthInit() Netmask    : 0.0.0.0VBridgeInit()...TX = [16384] bytes -- Rx = [16384] bytesTx buffer [0xAE02F8E0] to [0xAE0338E0].Rx buffer [0xAE02B8C0] to [0xAE02F8C0].VBridge:: NK add MAC: [0-0-0-0-0-0]Using device name: SMDK24100InitDHCP():: Calling ProcessDHCP()ProcessDHCP(): HCP_INIT

I found a solution online.
Solution: re-build the image and remove kitl.

 

Problem 3: cannot find comdef. h

Compiling an EVC program fails, and the following error occurs.

Cannot open include file: 'comdef. H': no such file or directory

The program itself should be correct, because there is no problem in compiling with the previous 2440 SDK. It seems that there is a problem with my SDK, I initially suspected that some components were missing during the customization system. so I will first check what the header file is. find the following description in the EVC help file:

Standard classes are used to support some of the COM types. The classes are defined in comdef. h and the header files generated from the Type Library.

In the past, this header file defined some COM component types. This EVC program did use Com. To petabyte to check that the COM component was added, but ATL was not added. However, I compared the Pb project of 2440, and found that its ATL was not added, and the compilation was successful, so it should not be the problem.

In the C:/program files/Windows CE tools/wce500/system_2440/ATL/include directory, find comdef. h file, which is generated when SKD is installed and under the ATL directory. this file was not found in yl2410, which indicates that my SDK is faulty. It should be because I did not add the ATL Option When configuring the SDK. re-configure an SDK, compile and install it, and find comdef under C:/program files/Windows CE tools/wce500/yl2410/ATL/include. h.
Compile the EVC program.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.