GithubHelp home page GithubHelp logo

Comments (10)

BenyuXu avatar BenyuXu commented on August 26, 2024

Hi, Jimmy
maybe you could try like below:

  1. open a command window,
    
  2. subst K: “C:\Program Files (x86)\Microsoft Visual Studio 11.0”,
  3. run “k:\VC\bin\vcvars.bat “ ,
  4. in computer -> properties -> advanced systerm setting -> environment varibles, add a new value: TSSTOOLS_PATH=K:

FYI

from tpm2-tss.

flihp avatar flihp commented on August 26, 2024

Do we intend to support nmake? Has anyone successfully built this code using nmake before?

from tpm2-tss.

wcarthur1 avatar wcarthur1 commented on August 26, 2024

For command line builds, I use msbuild from the project’s root dir:

msbuild tss.sln

I think you have to be in a VS 2010 command prompt window OR a command window from which you’ve run the following:
call %TSSTOOLS_PATH%\vc\bin\vcvars32.bat

I don’t know if nmake works—haven’t tried it. I’d suggest msbuild.

Will Arthur
Intel Corporation
Server Security Firmware
803-216-2101

From: Philip Tricca [mailto:[email protected]]
Sent: Thursday, November 12, 2015 9:54 PM
To: 01org/TPM2.0-TSS [email protected]
Subject: Re: [TPM2.0-TSS] sysapi build failure in window: NMAKE: expanded cmdline too long (#64)

Do we intend to support nmake? Has anyone successfully built this code using nmake before?


Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-156307749.

from tpm2-tss.

gwei3 avatar gwei3 commented on August 26, 2024

msbuild tss.sln will report similar error.

the issue is how to build the tpm20lib-tpm project. that project is using nmake to build, isn't it?

from tpm2-tss.

wcarthur1 avatar wcarthur1 commented on August 26, 2024

I guess I got around this by doing the following:

subst k: c:"Program Files (x86)\Microsoft Visual Studio 11.0"
call k:\vc\bin\vcvars32.bat"
set TSSTOOLS_PATH=k:"\VC\bin"

Will Arthur
Intel Corporation
Server Security Firmware
803-216-2101

From: Gang(Jimmy) Wei [mailto:[email protected]]
Sent: Tuesday, November 24, 2015 3:10 PM
To: 01org/TPM2.0-TSS [email protected]
Cc: Arthur, Will C [email protected]
Subject: Re: [TPM2.0-TSS] sysapi build failure in window: NMAKE: expanded cmdline too long (#64)

msbuild tss.sln will report similar error.

the issue is how to build the tpm20lib-tpm project. that project is using nmake to build, isn't it?


Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-159391066.

from tpm2-tss.

gwei3 avatar gwei3 commented on August 26, 2024

I am using VS2012, and it seems like the TSSTOOLS_PATH variable doesn't impact it at all - I tried.

IMHO, the expanded NMAKE cmdline is now 11446 chars, just reduce tens of chars in the beginning should not make sense for fix it.

Have you ever build the tip in window? and have you ever tried VS2012?

Maybe I should try VS2011 later...

from tpm2-tss.

theopolis avatar theopolis commented on August 26, 2024

Maybe a can of worms, but CMake is very nice for support cross-platform builds. You can then generate your Makefile/SLNs/NMake files, etc. ;)

from tpm2-tss.

gwei3 avatar gwei3 commented on August 26, 2024

thanks Teddy, will give it a try when possible.

from tpm2-tss.

flihp avatar flihp commented on August 26, 2024

The build instructions state that VS2010 is the supported VS version and as @gwei3 says he's using VS2012. IMO this issue should be closed as "won't fix". If we'd like to upgrade to a newer version of VS that should probably go into a new ticket. If anyone disagrees with this please feel free to reopen the issue.

from tpm2-tss.

theopolis avatar theopolis commented on August 26, 2024

I agree!

(another plug!) If you get CI building for VS you can explicitly choose/test the versions. ;)

I can also add some anecdotal memories from trying VS 15 and having the build bark.

from tpm2-tss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.