H15.5 (windows) compile makefile Error: " *** missing separator. Stop."

   4753   4   0
User Avatar
Member
30 posts
Joined: Oct. 2011
Offline
Hi,
I'm trying to compile the simple example Sop_Start.C by a makefile from the docs:
http://archive.sidefx.com/docs/hdk15.5/_h_d_k__intro__compiling.html#HDK_Intro_Compiling_Makefiles [archive.sidefx.com]

The node compiles fine with Hcustom, but when trying to use makefile I get a separator error.Google shows the error might be a format issue with tabs on my makefile, but I cant see any tabs or unnecessary spaces.

My make file:
INSTDIR =C:\Users\DZND\Documents\houdini15.5\
DSONAME = SOP_Star.dll
SOURCES = SOP_Star.C
!INCLUDE C:\houdini\15.5.480\toolkit\makefiles\Makefile.nmake
the 4th line is throwing the error.Am I missing something here?

I'm wanting to compile a node using makefiles, so I can include differs files easier. Rather than referencing everything in the one .cpp node code.

H15.5/win7/vs2015

Cheers


Edited by AlexLombardi - July 19, 2016 01:02:28
User Avatar
Member
301 posts
Joined: July 2005
Offline
Hi,

Are you using the character ‘!’ as a negation ?

Depending on which make program you use, it might be the ‘-’ character (I don't have windows to verify at the moment)

https://www.gnu.org/software/make/manual/html_node/Include.html [gnu.org]

Cheers
Nicholas Yue
User Avatar
Member
30 posts
Joined: Oct. 2011
Offline
@nicholas_yue
Yep I tried with and without the ‘!’ & ‘-’

@nodeway
switching slashes didn't make a difference.



What I found was setting “!INCLUDE” to lower case “include”, initialized the Makefile.nmake. But now I get the same error,only its pointing to the nmake file now. When looking at the Makefile.nmake included with Houdini in a text editor, I noticed all if/else/include statements are all uppcase, with ‘!’ in front. Is this correct for windows?


Also there is a test for MSC_VER between 2012 or 2008:
if ([$(CC) /? 2>&1 | findstr /C:"Version 17" > nul] == 0)
# MSVC 2012
MSC_VER = 17
elseif ([$(CC) /? 2>&1 | findstr /C:"Version 15" > nul] == 0)
# MSVC 2008
MSC_VER = 15
else
error ==== Unknown version of Visual C++ ====
endif

Dont we need a 2015 test as well? What is the correct int for 2015 version?

User Avatar
Member
30 posts
Joined: Oct. 2011
Offline
Houdini 15.5.557 - Add support for MSVC 2015 to the HDK nmake file on Windows.
Shweeet
  • Quick Links