public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Jarlstrom, Laurie" <laurie.jarlstrom@intel.com>
To: "inovgorodtsev@itti.com.pl" <inovgorodtsev@itti.com.pl>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: FW: UEFI Driver Libraries problem
Date: Wed, 12 Dec 2018 16:45:33 +0000	[thread overview]
Message-ID: <10380531DF222B45964BE3E93EFE5F049CE4A0C2@fmsmsx104.amr.corp.intel.com> (raw)
In-Reply-To: <f0aee0a639c4042c6e839720983126f0.squirrel@newmailer.itti.com.pl>


Hi Ivan,

I am forwarding your question to the email list for EDK II, edk2-devel@lists.01.org and will answer there.

To join this email list see: https://github.com/tianocore/tianocore.github.io/wiki/edk2-devel and then join the https://lists.01.org/mailman/listinfo/edk2-devel email list for edk2-devel


Thanks,
Laurie

Laurie.jarlstrom@intel.com, 

-----Original Message-----
From: edk2-devel [mailto:mailman-bounces@lists.01.org] On Behalf Of inovgorodtsev@itti.com.pl
Sent: Wednesday, December 12, 2018 5:14 AM
To: edk2-devel-owner@lists.01.org
Subject: UEFI Driver Libraries problem

Hello,
at the beggining I wanted to say, that maybe here on this page it will be easier to understand my problem, there are some pictures explaining and nice code formatting:

https://stackoverflow.com/questions/53741304/compile-uefi-application-driver-using-edk2

I'm trying to build UEFI Application/Driver, but I get errors when I'm trying to include library:
#include "C:\MyWorkspace\ShellPkg\Include\Library\ShellLib.h"
Errors:
1>Building ...
c:\myworkspace\MdeModulePkg\Library\CustomizedDisplayLib\CustomizedDisplayLib.inf
[IA32]
1>C:\MyWorkspace\ShellPkg\Include\Library\ShellLib.h(22): fatal error
C1083: Cannot open include file: 'Protocol/EfiShellInterface.h': No such file or directory
1>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\cl.exe"'
: return code '0x2'

If I try another method:

EFI_STATUS
EFIAPI
BootCheckDriverEntryPoint (
  IN EFI_HANDLE        ImageHandle,
  IN EFI_SYSTEM_TABLE  *SystemTable
  )
{
    EFI_SHELL_PROTOCOL    *EfiShellProtocol;
    EFI_STATUS            Status;

    Status = gBS->LocateProtocol(&gEfiShellProtocolGuid,NULL,(VOID
**)&EfiShellProtocol);

  //
  // Install UEFI Driver Model protocol(s).
  //

  Status = EfiLibInstallDriverBindingComponentName2 (
             ImageHandle,
             SystemTable,
             &gBootCheckDriverBinding,
             ImageHandle,
             &gBootCheckComponentName,
             &gBootCheckComponentName2
             );
  ASSERT_EFI_ERROR (Status);

  return Status;
}

I get.. linker errors I suppose. I also tried to include some libraries in property pages, but I'm not very familiar with Visual Makefile project, I could have done something wrong.

1>Building ...
c:\myworkspace\MdeModulePkg\Library\FileExplorerLib\FileExplorerLib.inf
[IA32]
1>c:\myworkspace\source\BootCheck.c(111): error C2065:
'EFI_SHELL_PROTOCOL': undeclared identifier
1>c:\myworkspace\source\BootCheck.c(111): error C2065: 'EfiShellProtocol':
undeclared identifier
1>c:\myworkspace\source\BootCheck.c(111): warning C4552: '*': result of
expression not used
1>c:\myworkspace\source\BootCheck.c(114): error C2065: 'EfiShellProtocol':
undeclared identifier


I would appreciate any useful information, thank you.
Ivan Novgorodtsev




       reply	other threads:[~2018-12-12 16:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f0aee0a639c4042c6e839720983126f0.squirrel@newmailer.itti.com.pl>
2018-12-12 16:45 ` Jarlstrom, Laurie [this message]
2018-12-12 17:09   ` UEFI Driver Libraries problem Jarlstrom, Laurie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10380531DF222B45964BE3E93EFE5F049CE4A0C2@fmsmsx104.amr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox