public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* EDK2 build using Visual Studio
@ 2017-06-05  8:23 GN Keshava
  2017-06-05 12:43 ` Gao, Liming
  2017-06-05 21:33 ` Blibbet
  0 siblings, 2 replies; 8+ messages in thread
From: GN Keshava @ 2017-06-05  8:23 UTC (permalink / raw)
  To: edk2-devel@lists.01.org; +Cc: Carsey, Jaben

Hi,

I was able to build EDK2 using VS2008. Did anyone used VS2015 and built the
EDK2?
If yes, I want to know how I can do it.

Thanks.
With regards,
Keshava


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: EDK2 build using Visual Studio
  2017-06-05  8:23 EDK2 build using Visual Studio GN Keshava
@ 2017-06-05 12:43 ` Gao, Liming
  2017-06-05 13:04   ` GN Keshava
  2017-06-05 21:33 ` Blibbet
  1 sibling, 1 reply; 8+ messages in thread
From: Gao, Liming @ 2017-06-05 12:43 UTC (permalink / raw)
  To: GN Keshava, edk2-devel@lists.01.org; +Cc: Carsey, Jaben

Keshava:
  You can build platform with -t VS2015 or -t VS2015x86 to enable VS2015 tool chain. 

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of GN Keshava
> Sent: Monday, June 5, 2017 4:23 PM
> To: edk2-devel@lists.01.org
> Cc: Carsey, Jaben <jaben.carsey@intel.com>
> Subject: [edk2] EDK2 build using Visual Studio
> 
> Hi,
> 
> I was able to build EDK2 using VS2008. Did anyone used VS2015 and built the
> EDK2?
> If yes, I want to know how I can do it.
> 
> Thanks.
> With regards,
> Keshava
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: EDK2 build using Visual Studio
  2017-06-05 12:43 ` Gao, Liming
@ 2017-06-05 13:04   ` GN Keshava
  2017-06-05 14:04     ` Gao, Liming
  0 siblings, 1 reply; 8+ messages in thread
From: GN Keshava @ 2017-06-05 13:04 UTC (permalink / raw)
  To: Gao, Liming, edk2-devel@lists.01.org; +Cc: Carsey, Jaben

Hi Liming,

Thanks for the reply.
I had tried this, but was getting errors that I didn't get on VS2008,
mainly, error LNK2001 unresolved external symbol __fltused

I didnt get this error on VS2008, but the same workspace is giving this
error on VS2015. :(

Thanks.
With regards,
Keshava


On Mon, 5 Jun 2017 at 18:13 Gao, Liming <liming.gao@intel.com> wrote:

> Keshava:
>   You can build platform with -t VS2015 or -t VS2015x86 to enable VS2015
> tool chain.
>
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> GN Keshava
> > Sent: Monday, June 5, 2017 4:23 PM
> > To: edk2-devel@lists.01.org
> > Cc: Carsey, Jaben <jaben.carsey@intel.com>
> > Subject: [edk2] EDK2 build using Visual Studio
> >
> > Hi,
> >
> > I was able to build EDK2 using VS2008. Did anyone used VS2015 and built
> the
> > EDK2?
> > If yes, I want to know how I can do it.
> >
> > Thanks.
> > With regards,
> > Keshava
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: EDK2 build using Visual Studio
  2017-06-05 13:04   ` GN Keshava
@ 2017-06-05 14:04     ` Gao, Liming
  2017-06-05 14:46       ` Andrew Fish
  0 siblings, 1 reply; 8+ messages in thread
From: Gao, Liming @ 2017-06-05 14:04 UTC (permalink / raw)
  To: GN Keshava, edk2-devel@lists.01.org; +Cc: Carsey, Jaben

_fltused  symbol is generated by compiler. You can just define this symbol in one C file to satisfy the linker like below:

int _fltused = 1;

Thanks
Liming
From: GN Keshava [mailto:keshava.gn@gmail.com]
Sent: Monday, June 5, 2017 9:04 PM
To: Gao, Liming <liming.gao@intel.com>; edk2-devel@lists.01.org
Cc: Carsey, Jaben <jaben.carsey@intel.com>
Subject: Re: [edk2] EDK2 build using Visual Studio

Hi Liming,

Thanks for the reply.
I had tried this, but was getting errors that I didn't get on VS2008, mainly, error LNK2001 unresolved external symbol __fltused

I didnt get this error on VS2008, but the same workspace is giving this error on VS2015. :(

Thanks.
With regards,
Keshava


On Mon, 5 Jun 2017 at 18:13 Gao, Liming <liming.gao@intel.com<mailto:liming.gao@intel.com>> wrote:
Keshava:
  You can build platform with -t VS2015 or -t VS2015x86 to enable VS2015 tool chain.

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org<mailto:edk2-devel-bounces@lists.01.org>] On Behalf Of GN Keshava
> Sent: Monday, June 5, 2017 4:23 PM
> To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> Cc: Carsey, Jaben <jaben.carsey@intel.com<mailto:jaben.carsey@intel.com>>
> Subject: [edk2] EDK2 build using Visual Studio
>
> Hi,
>
> I was able to build EDK2 using VS2008. Did anyone used VS2015 and built the
> EDK2?
> If yes, I want to know how I can do it.
>
> Thanks.
> With regards,
> Keshava
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> https://lists.01.org/mailman/listinfo/edk2-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: EDK2 build using Visual Studio
  2017-06-05 14:04     ` Gao, Liming
@ 2017-06-05 14:46       ` Andrew Fish
  2017-06-08 10:29         ` GN Keshava
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Fish @ 2017-06-05 14:46 UTC (permalink / raw)
  To: GN Keshava; +Cc: edk2-devel@lists.01.org


> On Jun 5, 2017, at 7:04 AM, Gao, Liming <liming.gao@intel.com> wrote:
> 
> _fltused  symbol is generated by compiler. You can just define this symbol in one C file to satisfy the linker like below:
> 
> int _fltused = 1;
> 

Keshava,

Looks like _fltused is emitted by the MSVC to tell the C runtime it needs to link in floating point libraries. EFI edk2 code does not support floating point, so you may run into porting issues from tool chain to toolchain if you use floating point. 

Thanks,

Andrew Fish


> Thanks
> Liming
> From: GN Keshava [mailto:keshava.gn@gmail.com]
> Sent: Monday, June 5, 2017 9:04 PM
> To: Gao, Liming <liming.gao@intel.com>; edk2-devel@lists.01.org
> Cc: Carsey, Jaben <jaben.carsey@intel.com>
> Subject: Re: [edk2] EDK2 build using Visual Studio
> 
> Hi Liming,
> 
> Thanks for the reply.
> I had tried this, but was getting errors that I didn't get on VS2008, mainly, error LNK2001 unresolved external symbol __fltused
> 
> I didnt get this error on VS2008, but the same workspace is giving this error on VS2015. :(
> 
> Thanks.
> With regards,
> Keshava
> 
> 
> On Mon, 5 Jun 2017 at 18:13 Gao, Liming <liming.gao@intel.com<mailto:liming.gao@intel.com>> wrote:
> Keshava:
>  You can build platform with -t VS2015 or -t VS2015x86 to enable VS2015 tool chain.
> 
>> -----Original Message-----
>> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org<mailto:edk2-devel-bounces@lists.01.org>] On Behalf Of GN Keshava
>> Sent: Monday, June 5, 2017 4:23 PM
>> To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
>> Cc: Carsey, Jaben <jaben.carsey@intel.com<mailto:jaben.carsey@intel.com>>
>> Subject: [edk2] EDK2 build using Visual Studio
>> 
>> Hi,
>> 
>> I was able to build EDK2 using VS2008. Did anyone used VS2015 and built the
>> EDK2?
>> If yes, I want to know how I can do it.
>> 
>> Thanks.
>> With regards,
>> Keshava
>> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
>> https://lists.01.org/mailman/listinfo/edk2-devel
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: EDK2 build using Visual Studio
  2017-06-05  8:23 EDK2 build using Visual Studio GN Keshava
  2017-06-05 12:43 ` Gao, Liming
@ 2017-06-05 21:33 ` Blibbet
  1 sibling, 0 replies; 8+ messages in thread
From: Blibbet @ 2017-06-05 21:33 UTC (permalink / raw)
  To: edk2-devel

On 06/05/2017 01:23 AM, GN Keshava wrote:
> I was able to build EDK2 using VS2008. Did anyone used VS2015 and built
> the EDK2? If yes, I want to know how I can do it.

You might check out how the VisualUEFI project builds EDK2.
According to it's readme, it works with VS2015.
https://github.com/ionescu007/VisualUefi

Here's a blog post that also shows info on using VS2015 with EDK2:
http://pete.akeo.ie/2015/01/easily-create-uefi-applications-using.html



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: EDK2 build using Visual Studio
  2017-06-05 14:46       ` Andrew Fish
@ 2017-06-08 10:29         ` GN Keshava
  2017-06-08 14:29           ` Andrew Fish
  0 siblings, 1 reply; 8+ messages in thread
From: GN Keshava @ 2017-06-08 10:29 UTC (permalink / raw)
  To: Andrew Fish, Gao, Liming; +Cc: edk2-devel@lists.01.org

Hi Liming,

Sorry, I mixed up the things :(

If I try VS2015x86 , I'm getting this error:

Build environment: Windows-post2008Server-6.2.9200
Build start time: 15:54:28, Jun.08 2017

build: : warning: Tool chain [VS2015x86] is not defined


build...
 : error 4000: Not available
        [VS2015x86] not defined. No toolchain available for build!


- Failed -
Build end time: 15:54:28, Jun.08 2017
Build total time: 00:00:00

Am I missing anything here?

Thanks.
Regards,
Keshava

On Mon, 5 Jun 2017 at 20:16 Andrew Fish <afish@apple.com> wrote:

>
> > On Jun 5, 2017, at 7:04 AM, Gao, Liming <liming.gao@intel.com> wrote:
> >
> > _fltused  symbol is generated by compiler. You can just define this
> symbol in one C file to satisfy the linker like below:
> >
> > int _fltused = 1;
> >
>
> Keshava,
>
> Looks like _fltused is emitted by the MSVC to tell the C runtime it needs
> to link in floating point libraries. EFI edk2 code does not support
> floating point, so you may run into porting issues from tool chain to
> toolchain if you use floating point.
>
> Thanks,
>
> Andrew Fish
>
>
> > Thanks
> > Liming
> > From: GN Keshava [mailto:keshava.gn@gmail.com]
> > Sent: Monday, June 5, 2017 9:04 PM
> > To: Gao, Liming <liming.gao@intel.com>; edk2-devel@lists.01.org
> > Cc: Carsey, Jaben <jaben.carsey@intel.com>
> > Subject: Re: [edk2] EDK2 build using Visual Studio
> >
> > Hi Liming,
> >
> > Thanks for the reply.
> > I had tried this, but was getting errors that I didn't get on VS2008,
> mainly, error LNK2001 unresolved external symbol __fltused
> >
> > I didnt get this error on VS2008, but the same workspace is giving this
> error on VS2015. :(
> >
> > Thanks.
> > With regards,
> > Keshava
> >
> >
> > On Mon, 5 Jun 2017 at 18:13 Gao, Liming <liming.gao@intel.com<mailto:
> liming.gao@intel.com>> wrote:
> > Keshava:
> >  You can build platform with -t VS2015 or -t VS2015x86 to enable VS2015
> tool chain.
> >
> >> -----Original Message-----
> >> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org<mailto:
> edk2-devel-bounces@lists.01.org>] On Behalf Of GN Keshava
> >> Sent: Monday, June 5, 2017 4:23 PM
> >> To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> >> Cc: Carsey, Jaben <jaben.carsey@intel.com<mailto:jaben.carsey@intel.com
> >>
> >> Subject: [edk2] EDK2 build using Visual Studio
> >>
> >> Hi,
> >>
> >> I was able to build EDK2 using VS2008. Did anyone used VS2015 and built
> the
> >> EDK2?
> >> If yes, I want to know how I can do it.
> >>
> >> Thanks.
> >> With regards,
> >> Keshava
> >> _______________________________________________
> >> edk2-devel mailing list
> >> edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> >> https://lists.01.org/mailman/listinfo/edk2-devel
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel
>
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: EDK2 build using Visual Studio
  2017-06-08 10:29         ` GN Keshava
@ 2017-06-08 14:29           ` Andrew Fish
  0 siblings, 0 replies; 8+ messages in thread
From: Andrew Fish @ 2017-06-08 14:29 UTC (permalink / raw)
  To: GN Keshava; +Cc: Gao, Liming, edk2-devel@lists.01.org


> On Jun 8, 2017, at 3:29 AM, GN Keshava <keshava.gn@gmail.com> wrote:
> 
> Hi Liming,
> 
> Sorry, I mixed up the things :(
> 
> If I try VS2015x86 , I'm getting this error:
> 
> Build environment: Windows-post2008Server-6.2.9200
> Build start time: 15:54:28, Jun.08 2017
> 
> build: : warning: Tool chain [VS2015x86] is not defined
> 
> 
> build...
> : error 4000: Not available
>        [VS2015x86] not defined. No toolchain available for build!
> 
> 
> - Failed -
> Build end time: 15:54:28, Jun.08 2017
> Build total time: 00:00:00
> 
> Am I missing anything here?
> 

Keshava,

Is your Conf/tools_def.txt old? Does it match https://github.com/tianocore/edk2/blob/master/BaseTools/Conf/tools_def.template

You may need to run:  Edk2Setup.bat --reconfig

Thanks,

Andrew Fish

> Thanks.
> Regards,
> Keshava
> 
> On Mon, 5 Jun 2017 at 20:16 Andrew Fish <afish@apple.com> wrote:
> 
>> 
>>> On Jun 5, 2017, at 7:04 AM, Gao, Liming <liming.gao@intel.com> wrote:
>>> 
>>> _fltused  symbol is generated by compiler. You can just define this
>> symbol in one C file to satisfy the linker like below:
>>> 
>>> int _fltused = 1;
>>> 
>> 
>> Keshava,
>> 
>> Looks like _fltused is emitted by the MSVC to tell the C runtime it needs
>> to link in floating point libraries. EFI edk2 code does not support
>> floating point, so you may run into porting issues from tool chain to
>> toolchain if you use floating point.
>> 
>> Thanks,
>> 
>> Andrew Fish
>> 
>> 
>>> Thanks
>>> Liming
>>> From: GN Keshava [mailto:keshava.gn@gmail.com]
>>> Sent: Monday, June 5, 2017 9:04 PM
>>> To: Gao, Liming <liming.gao@intel.com>; edk2-devel@lists.01.org
>>> Cc: Carsey, Jaben <jaben.carsey@intel.com>
>>> Subject: Re: [edk2] EDK2 build using Visual Studio
>>> 
>>> Hi Liming,
>>> 
>>> Thanks for the reply.
>>> I had tried this, but was getting errors that I didn't get on VS2008,
>> mainly, error LNK2001 unresolved external symbol __fltused
>>> 
>>> I didnt get this error on VS2008, but the same workspace is giving this
>> error on VS2015. :(
>>> 
>>> Thanks.
>>> With regards,
>>> Keshava
>>> 
>>> 
>>> On Mon, 5 Jun 2017 at 18:13 Gao, Liming <liming.gao@intel.com<mailto:
>> liming.gao@intel.com>> wrote:
>>> Keshava:
>>> You can build platform with -t VS2015 or -t VS2015x86 to enable VS2015
>> tool chain.
>>> 
>>>> -----Original Message-----
>>>> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org<mailto:
>> edk2-devel-bounces@lists.01.org>] On Behalf Of GN Keshava
>>>> Sent: Monday, June 5, 2017 4:23 PM
>>>> To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
>>>> Cc: Carsey, Jaben <jaben.carsey@intel.com<mailto:jaben.carsey@intel.com
>>>> 
>>>> Subject: [edk2] EDK2 build using Visual Studio
>>>> 
>>>> Hi,
>>>> 
>>>> I was able to build EDK2 using VS2008. Did anyone used VS2015 and built
>> the
>>>> EDK2?
>>>> If yes, I want to know how I can do it.
>>>> 
>>>> Thanks.
>>>> With regards,
>>>> Keshava
>>>> _______________________________________________
>>>> edk2-devel mailing list
>>>> edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
>>>> https://lists.01.org/mailman/listinfo/edk2-devel
>>> _______________________________________________
>>> edk2-devel mailing list
>>> edk2-devel@lists.01.org
>>> https://lists.01.org/mailman/listinfo/edk2-devel
>> 
>> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-06-08 14:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-05  8:23 EDK2 build using Visual Studio GN Keshava
2017-06-05 12:43 ` Gao, Liming
2017-06-05 13:04   ` GN Keshava
2017-06-05 14:04     ` Gao, Liming
2017-06-05 14:46       ` Andrew Fish
2017-06-08 10:29         ` GN Keshava
2017-06-08 14:29           ` Andrew Fish
2017-06-05 21:33 ` Blibbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox