Hi!
I'm trying to compile the infamous SOP_Star example with nmake on windows but it errors bc/ of a space that is in the path of I think the Microsoft SDK. I would fix that if I knew where it got the paths from. I strictly followed the guidelines from the HDK, however it errors when invoking nmake install saying
“'CProgram' is not recognized as an internal or external command,
operable program or batch file.”
Here's the full console out.
C:\projects\cpp\SOP>nmake install
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
echo Compiled on: > taginfo
date /T >> taginfo
time /T >> taginfo
echo by: %USERNAME%@%COMPUTERNAME% >> taginfo
sesitag -c -f taginfo > tagdefines
“C:\VS2012\VC\bin\amd64\cl” -c -nologo -TP -Zc:forScope -DVERSION=“13.0.
206” -DI386 -DWIN32 -DSWAP_BITFIELDS -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DNOM
INMAX -DSTRICT -DWIN32_LEAN_AND_MEAN -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_DEPREC
ATE -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -DBOOST_ALL_NO_LIB -DS
ESI_LITTLE_ENDIAN -DAMD64 -DSIZEOF_VOID_P=8 -DFBX_ENABLED=1 -DOPENCL_ENABLED=1 -
DOPENVDB_ENABLED=1 -I . -I “CPROGRA~1/SIDEEF~1/HOUDIN~1.401/toolkit/include”
-I “C:\VS2012\VC/include” -I “CProgram Files/Microsoft SDKs/Windows/v6.0A/Incl
ude” -wd4355 -w14996 -O2 -DNDEBUG -MD -EHsc -GR -bigobj -DMAKING_DSO @tagdefines
SOP_Star.C -FoSOP_Star.o
SOP_Star.C
del taginfo tagdefines
“C:\VS2012\VC\bin\amd64\link” -DLL SOP_Star.o -LIBPATH:“C:\VS2012\VC/lib
/amd64” -LIBPATH:“CProgram Files/Microsoft SDKs/Windows/v6.0A/Lib/x64” -LIB
PATH:“CPROGRA~1/SIDEEF~1/HOUDIN~1.401/custom/houdini/dsolib” “CPROGRA~1/SIDE
EF~1/HOUDIN~1.401/custom/houdini/dsolib/*.a” “CPROGRA~1/SIDEEF~1/HOUDIN~1.401/
custom/houdini/dsolib/*.lib” -outOP_Star.dll
Microsoft (R) Incremental Linker Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
Creating library SOP_Star.lib and object SOP_Star.exp
“CProgram Files/Microsoft SDKs/Windows/v6.0A/Bin/x64/mt.exe” -manifest
SOP_Star.dll.manifest -outputresourceOP_Star.dll;2
'CProgram' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: ‘"CProgram Files/Microsoft SDKs/Windows/v6.0A/Bin/x
64/mt.exe’ : return code ‘0x1’
Stop.
[HDK] compile issues with nmake VS2012
4777 4 1- Phong
- Member
- 65 posts
- Joined: July 2008
- Offline
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
- Phong
- Member
- 65 posts
- Joined: July 2008
- Offline
Thanks! That allowed to compile the DLL, but copying it to the DSO directory causes problems. I think it's because of the slashes. I know there is a variable where you can define where custom DSOs go, but I can't find it right now.
Creating library SOP_Star.lib and object SOP_Star.exp
if not exist CUsers/nhatphong.tran/Documents\houdini13.0\dso mkdir C
Users/nhatphong.tran/Documents\houdini13.0\dso
copy /Y SOP_Star.dll CUsers/nhatphong.tran/Documents\houdini13.0\dso
The syntax of the command is incorrect.
NMAKE : fatal error U1077: ‘copy’ : return code ‘0x1’
Stop.
Creating library SOP_Star.lib and object SOP_Star.exp
if not exist CUsers/nhatphong.tran/Documents\houdini13.0\dso mkdir C
Users/nhatphong.tran/Documents\houdini13.0\dso
copy /Y SOP_Star.dll CUsers/nhatphong.tran/Documents\houdini13.0\dso
The syntax of the command is incorrect.
NMAKE : fatal error U1077: ‘copy’ : return code ‘0x1’
Stop.
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
- Phong
- Member
- 65 posts
- Joined: July 2008
- Offline
-
- Quick Links