From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in7.apple.com (mail-out7.apple.com [17.151.62.29]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B7D0F1A1DED for ; Wed, 28 Sep 2016 07:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1475073510; x=2338987110; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SEBn0W/0SJLxk+xddGbv2cBOZ8UgRUF+YqTMLNtTzRU=; b=Stp2fM+lKCxbtGxruJ9JJx2LATGSKqU+bhgbc23MJWXMBWN/pDuxahi3kVCHO1+t 68+nl/HhJ9MwI9E2KwPtTMq23m9KOVinP4IYtKHhEpEoke5ryONxyFzzCPu2KaBp KuxJBnJr67rRqPcC947PtN+x/sz5btDpTqlwmeOl55WXu3H2YT3Wig4CnmreDF1Q nbCSJY8srydm9DnjrYHf88czNCJN2JdvTsI3fGyGC5kF0pVjsQx4FloPjl2OQ5Tu NWuf0DOmuuacPllZuBrmbI5K92MrfhzvtasrQquiDRXuBtDwC9DUMxurayfNf0KK 8QbNAzudIpzfNCkjR5Ivsg==; Received: from relay4.apple.com (relay4.apple.com [17.128.113.87]) by mail-in7.apple.com (Apple Secure Mail Relay) with SMTP id 74.1C.17422.6E5DBE75; Wed, 28 Sep 2016 07:38:30 -0700 (PDT) X-AuditID: 11973e16-f793f6d00000440e-ec-57ebd5e67f53 Received: from nwk-mmpp-sz10.apple.com (nwk-mmpp-sz10.apple.com [17.128.115.122]) by relay4.apple.com (Apple SCV relay) with SMTP id 9A.1B.20305.5E5DBE75; Wed, 28 Sep 2016 07:38:29 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.26.15] by nwk-mmpp-sz10.apple.com (Oracle Communications Messaging Server 8.0.1.1.0 64bit (built Jun 15 2016)) with ESMTPSA id <0OE700C3LY055940@nwk-mmpp-sz10.apple.com>; Wed, 28 Sep 2016 07:38:29 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish X-Priority: 3 In-reply-to: <28cd9226.17fc7.15770e26cf9.Coremail.dashing_meng@163.com> Date: Wed, 28 Sep 2016 07:38:29 -0700 Cc: EDK2-DEV Message-id: References: <28cd9226.17fc7.15770e26cf9.Coremail.dashing_meng@163.com> To: dashing meng X-Mailer: Apple Mail (2.3226) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRmVeSWpSXmKPExsUi2FAYrvvs6utwg4vbGC02LPnBaLHn0FFm ByaPxSumsHp0z/7HEsAUxWWTkpqTWZZapG+XwJVx/XYra8HVx6wVf19sZW5gnNLD2sXIySEh YCKx4eVuKFtM4sK99WxdjFwcQgJ7GSXmPNrNDFO05886qMQhRonmK6tZQBK8AoISPybfA7OZ BcIk5v//yw5iCwm8ZZR48CkFxBYWEJd4d2YTM4TtKdG7so0JxGYTUJZYMf8DO8QCXokZ7U/B 5nAKuEu8/LQZrJ5FQFVi3rYVbBDz1SSOHmtmg9hrI9Ez/z0bxC43idV79oP1igioS3y5uoOx i5EDaKasxOxfXiA3SwhcZpO4ceYkywRGkVlIzp6F5OxZQC3MQO1TpuRChLUlnry7wDoLavPC 34uYkMUXMLKtYhTKTczM0c3MM9dLLCjISdVLzs/dxAiKnul2YjsYH66yOsQowMGoxMPbeep1 uBBrYllxZe4hRmkOFiVxXgl5oJBAemJJanZqakFqUXxRaU5q8SFGJg5OqQbG2lmhdzbuZGZt XjF58bmUWTuWxczgEDwjvOqXwHfbpU1HK6eUMUTGPTp0N7D49pet8z8/8fstFhe3tfJU5Weh zyvq3eO7u/9lfdr/++wBtufdJzgVHK/p2sw3010icexRnJCq9vTHwZP2FLGqHDyRfky94vjt rGaTP+pl/JJej7jObwxk+cCvqsRSnJFoqMVcVJwIANs5PFp/AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsUi2FBcpfv06utwg5lXzSw2LPnBaLHn0FFm ByaPxSumsHp0z/7HEsAUxWWTkpqTWZZapG+XwJVx/XYra8HVx6wVf19sZW5gnNLD2sXIySEh YCKx5886NghbTOLCvfVANheHkMAhRonmK6tZQBK8AoISPybfA7OZBcIk5v//yw5iCwm8ZZR4 8CkFxBYWEJd4d2YTM4TtKdG7so0JxGYTUJZYMf8DO8QCXokZ7U/B5nAKuEu8/LQZrJ5FQFVi 3rYVbBDz1SSOHmtmg9hrI9Ez/z0bxC43idV79oP1igioS3y5uoOxi5EDaKasxOxfXhMYBWch uXQWkktnAVUxA3VMmZILEdaWePLuAussqGULfy9iQhZfwMi2ilGgKDUnsdJEL7GgICdVLzk/ dxMjONgLw3cw/ltmdYhRgINRiYfX4MTrcCHWxLLiylxgcHEwK4nwrr4MFOJNSaysSi3Kjy8q zUktPsQ4kRHox4nMUqLJ+cBYzCuJNzQxMTAxNjYzNjY3MaelsJI476UYoIsE0hNLUrNTUwtS i2COYuLglGpg3LJbrdRKM+HHXI2GL4GFkXK8nSwm5z0PPvPxSyp4H3yHpTarrXN1oZh54bHH Sq2vP5k/cvabuFLvZd9X8bgrz/9rPvU/zHPk7eRlb06vczxyZtmuFZ6Je1WUOHt5U6M3Ot67 0Xx4oXTmq2ipWL+e8jkuSdWSztcU7I/OeXVkvmNloc6TRB8NJZbijERDLeai4kQAn7mUdOkC AAA= X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: Miss "IMAGE_FORMAT" type name error when compile EDK2 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 14:38:31 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Sep 28, 2016, at 6:01 AM, dashing meng = wrote: >=20 >=20 > Hi, > Everyone. >=20 > My machine is a Intel P6200 cpu, no vt-x support, 64bit, Debian 8 = 64bit OS. >=20 > I am compiling EDK2 with the instruction at: = https://github.com/tianocore/tianocore.github.io/wiki/Common-instructions = > When "Build Hello World! (and the rest of MdeModulePkg)" by excute = "build" command, I encounter the error message > below: > /src/edk2/MdeModulePkg/Include/Library/ImageDecoderLib.h:22:7: error: = unknown type name =E2=80=98IMAGE_FORMAT=E2=80=99 > IN IMAGE_FORMAT ImageFormat, > I search the source, search the web, have not found any library file = include type name "IMAGE_FORMAT",=20 > Where can I find the file define the type of "IMAGE_FORMAT"? Anyone = has any clue to fix this error? >=20 It looks like MdeModulePkg/Include/Protocol/PlatformLogo.h contains the = definition of IMAGE_FORMAT and it is an enum. It should be included by = MdeModulePkg/Include/Library/ImageDecoderLib.h ~/work/src/edk2(master)>git grep -w IMAGE_FORMAT MdeModulePkg/Include/Library/BootLogoLib.h:37: IN IMAGE_FORMAT = ImageFormat, MdeModulePkg/Include/Library/ImageDecoderLib.h:22: IN IMAGE_FORMAT = ImageFormat, MdeModulePkg/Include/Library/ImageDecoderLib.h:52: IN IMAGE_FORMAT = ImageFormat, MdeModulePkg/Include/Protocol/PlatformLogo.h:33:} IMAGE_FORMAT; MdeModulePkg/Include/Protocol/PlatformLogo.h:70: OUT IMAGE_FORMAT = *Format, MdeModulePkg/Library/BmpImageDecoderLib/BmpImageDecoderLib.c:43: IN = IMAGE_FORMAT ImageFormat, MdeModulePkg/Library/BootLogoLib/BootLogoLib.c:47: IN IMAGE_FORMAT = ImageFormat, MdeModulePkg/Library/ImageDecoderLib/ImageDecoderLib.c:55: IN = IMAGE_FORMAT ImageFormat, ~/work/src/edk2(master)>git blame -L33,33 = MdeModulePkg/Include/Protocol/PlatformLogo.h 6313eb25 (Ruiyu Ni 2015-11-12 05:19:22 +0000 33) } IMAGE_FORMAT; ~/work/src/edk2(master)>git blame -L17,17 = MdeModulePkg/Include/Library/ImageDecoderLib.h 345c2b07 (Ruiyu Ni 2015-11-12 05:21:38 +0000 17) #include = Thanks, Andrew Fish > Thanks. >=20 > PS: > The main content of the source file is below: >=20 > /** @file > This library provides image decoding service by managing the = different > image decoding libraries. > =20 > Copyright (c) 2015, Intel Corporation. All rights reserved.
> This program and the accompanying materials are licensed and made = available under > the terms and conditions of the BSD License that accompanies this = distribution. > The full text of the license may be found at > http://opensource.org/licenses/bsd-license.php = . > =20 > THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, > WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR = IMPLIED. > =20 > **/ > #ifndef __IMAGE_DECODER_LIB_H__ > #define __IMAGE_DECODER_LIB_H__ > #include > =20 > typedef > EFI_STATUS > (EFIAPI *DECODE_IMAGE)( > IN IMAGE_FORMAT ImageFormat, > IN UINT8 *Image, > IN UINTN ImageSize, > OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL **GopBlt, > OUT UINTN *GopBltSize, > OUT UINTN *PixelWidth, > OUT UINTN *PixelHeight > ); > =20 > /** > Convert a graphics image to a callee allocated GOP blt buffer. > =20 > @param ImageFormat Format of the image file. > @param Image Pointer to image file. > @param ImageSize Number of bytes in Image. > @param GopBlt Buffer containing GOP version of Image. > @param GopBltSize Size of GopBlt in bytes. > @param PixelWidth Width of GopBlt/Image in pixels. > @param PixelHeight Height of GopBlt/Image in pixels. > =20 > @retval EFI_SUCCESS GopBlt and GopBltSize are returned. > @retval EFI_INVALID_PARAMETER GopBlt or GopBltSize is NULL. > @retval EFI_INVALID_PARAMETER Image is NULL or ImageSize is 0. > @retval EFI_UNSUPPORTED Image is not supported. > @retval EFI_OUT_OF_RESOURCES No enough buffer to allocate. > =20 > **/ > EFI_STATUS > EFIAPI > DecodeImage ( > IN IMAGE_FORMAT ImageFormat, > IN UINT8 *Image, > IN UINTN ImageSize, > OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL **GopBlt, > OUT UINTN *GopBltSize, > OUT UINTN *PixelWidth, > OUT UINTN *PixelHeight > ); > =20 > /** > Register an image decoder. > =20 > @param Decoder An image decoder. > =20 > @retval EFI_SUCCESS The decoder was successfully = registered. > @retval EFI_OUT_OF_RESOURCES No enough resource to register the = decoder. > =20 > **/ > EFI_STATUS > EFIAPI > RegisterImageDecoder ( > IN DECODE_IMAGE Decoder > ); > =20 > #endif >=20 > ------------------------------- >=20 > dashing meng > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel =