You want MdeModulePkg/Library/UefiHiiLib


From: David F. [mailto:df7...@gmail.com]
Sent: Friday, February 01, 2013 10:47 AM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Adding printf via StdLib

Is that an optional thing some packages may include, some type of .inc file?  
Anyway, did that and that leads to:

c:\edk2\testpkg\testpkg.dsc(...): error 4000: Instance of library class 
[HiiLib] is not found
        in [c:\edk2\ShellPkg\Library\UefiShellLib\UefiShellLib.inf] [X64]
        consumed by module [c:\edk2\testpkg\hello\hello.inf]

But I didn't see any .inc file in the EdkCompatibilityPkg folder which is the 
only place I found HiiLib via:
C:\edk2>dir hiilib /s
 Volume in drive C is Windows 7
 Volume Serial Number is 5233-4330

 Directory of 
C:\edk2\EdkCompatibilityPkg\Foundation\Library\EdkIIGlueLib\Library

01/31/2013  06:37 PM    <DIR>          HiiLib
               0 File(s)              0 bytes

On Fri, Feb 1, 2013 at 10:16 AM, Tim Lewis 
<tim.le...@insyde.com<mailto:tim.le...@insyde.com>> wrote:
David -

The easiest way is just to put

!include StdLib\StdLib.inc

At the end of your testpkg.dsc



From: David F. [mailto:df7...@gmail.com<mailto:df7...@gmail.com>]
Sent: Friday, February 01, 2013 10:11 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] Adding printf via StdLib

Hi,
Still learning the build system - I used the driver wizard to create a new 
package and driver, modified to be application, and used the SystemTable to 
print out some text.  That all worked fine, so my next step is to use printf 
instead.  So I added Stdio|StdLib/LibC/Stdio/Stdio.inf to the .dsc file and in 
the .inf file added   StdLib/StdLib.dec under [Packages] and Stdio under 
[LibraryClasses], changed code to use printf(L"text"), then tried to build but 
it stops with

c:\edk2\testpkg\testpkg.dsc(...): error 4000: Instance of library class [LibC] 
is not found
        in [c:\edk2\StdLib\LibC\Stdio\Stdio.inf] [X64]
        consumed by module [c:\edk2\testpkg\hello\hello.inf]
Do I have to somehow figure out all the different library classes and add them 
to the .dsc file, or can't it just find itself??

TIA!!

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to