Aurel300/ammer

how to config and add path hl.h?

Closed this issue · 11 comments

how to config and add path hl.h?

"hl.h" no such file or directory.

build-common.hxml
-D ammer.hl.hlInclude="D:\Downloads\hl-1.10.0-win\hl-1.10.0-win\include"
-D ammer.hl.hlLibrary="D:\Downloads\hl-1.10.0-win\hl-1.10.0-win"
--hl bin/hl/sample.hl

how to config?it's seem config like here is wrong

Please confirm that D:\Downloads\hl-1.10.0-win\hl-1.10.0-win\include contains hl.h and D:\Downloads\hl-1.10.0-win\hl-1.10.0-win contains libhl.lib.

Could you try without the quotes? Like so:

build-common.hxml
-D ammer.hl.hlInclude=D:\Downloads\hl-1.10.0-win\hl-1.10.0-win\include
-D ammer.hl.hlLibrary=D:\Downloads\hl-1.10.0-win\hl-1.10.0-win
--hl bin/hl/sample.hl

If that still doesn't work, please provide the generated bin/hl/Makefile.hl.ammer file.

it's seem not include stddef.h

image

image

how to add C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib

I've install 2015,2017,

Ok, this is not a problem with ammer configuration, but with your terminal. On Windows, after installing MSVC, there should be a "Visual Studio Developer Command Prompt" available in the start menu. Alternatively, you can run the vcvars32 script in a regular command line, which should setup the correct environment variables for stddef.h and others to work.

-- deleted -- filed new Linux-specific issue: #11

@Aurel300 -- your documentation includes these steps, but perhaps include a short blurb saying, "If you encounter the following error, you don't have the right environment. Make sure you're running in the visual studio command prompt, or run vcvars32". It's just human nature to miss little details like this (I did it myself like 3 times even with the documentation right there!)

@larsiusprime Yes, I opened #12 so I don't forget about the FAQ :)

@sonygod Bump: did my last suggestion solve the problem? Can we close this issue?

test.zip

I can compile ,but still can not run .

it's throw error say: can not load ammer_adder.hdll


%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" " x86_amd64

@sonygod That's a step forward :) See this section of the poc readme (recently added). Make sure both ammer_adder.hdll and adder.dll are in the current working directory.

image

finally,it's work.

help other guys if there are not visual studio command was find.

create a link like

%windir%\syswow64\cmd.exe /k ""D:\tools\Visual Studio 2015 Enterprise\Visual Studio 2015 Enterprise\Common7\Tools\vsvars32.bat""