Comments (10)
Hi, Jimmy
maybe you could try like below:
-
open a command window,
- subst K: “C:\Program Files (x86)\Microsoft Visual Studio 11.0”,
- run “k:\VC\bin\vcvars.bat “ ,
- in computer -> properties -> advanced systerm setting -> environment varibles, add a new value: TSSTOOLS_PATH=K:
FYI
from tpm2-tss.
Do we intend to support nmake? Has anyone successfully built this code using nmake before?
from tpm2-tss.
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.
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.
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.
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.
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.
thanks Teddy, will give it a try when possible.
from tpm2-tss.
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.
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)
- PolicyTemplate calculation incorrect HOT 1
- authValue or authPolicy is not available for selected entity while NV_Read HOT 2
- The value of TPM2_TRANSIENT_LAST is incorrect (off-by-one) HOT 1
- tss2-esapi HOT 1
- TPM import OpenSSL AES key and persist the key via ESYS APIs
- how to delete an algorithm? HOT 1
- Is there a good method to delete or disable algorithms? HOT 7
- Add support for new (post-quantum) algorithms HOT 1
- Error when compiling and installing the libraries from INSTALL.md
- ifapi_json_TPM2_CC_serialize Undefined constant when parsing PP_commands
- MacOS builds HOT 1
- Tests: Add check for PCR16==0x000..000 to pre test checks
- Fapi_Import crashes with SIGSEGV when importing a policy that contains "null" element HOT 1
- JSON files after creation HOT 1
- JSON file suddenly empty
- Getting /dev/tpm0: Device or resource busy error when trying to write data to nv slot using ESAPI Esys_NV_Write function
- About the SM2 algorithm does not recognize the problem
- Arm64 Build HOT 1
- Mismatch in implementation TPM2B_DATA structure vs. documentation/specification HOT 1
- tpm2 createprimary fails on Ubuntu 22.04 LTS When FIPS is enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tpm2-tss.