Am 23.08.2014 um 01:17 schröbte Thijs Schreijer:
> Building LuaSec on windows gives me;
>
> Installing https://rocks.moonscript.org/luasec-0.5-2.src.rock...
> Using https://rocks.moonscript.org/luasec-0.5-2.src.rock... switching to 
> 'build' mode
> mingw32-gcc -O2 -c -o src/x509.o -IC:/Program Files (x86)/Lua/5.1/include/ 
> src/x509.c -DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DLUASEC_EXPORTS 
> -DBUFFER_DEBUG -DLUASEC_API=__declspec(dllexport) -Isrc/ -Isrc/luasocket
> src/x509.c:15:25: fatal error: openssl/ssl.h: No such file or directory
>   #include <openssl/ssl.h>
>                           ^
> compilation terminated.
>
> Error: Build error: Failed compiling object src/x509.o
>
>
> The external dependency on Windows ought to default to "c:\external", so I 
> would have expected some "-IC:\external\include" parameter in the gcc command 
> above (that is where I put the OpenSSL stuff).
>
> Doesn't this work by default? Should I add something explicitly?

It does work by default, but the rockspec has to *specify* an external 
dependency (that is then looked for in the `external_deps_dirs`). The 
LuaSec rockspec only does so for Unices.
My guess is that the rockspec author has openssl installed in the 
compiler default paths on Windows ...


>
> Any help is appreciated
> Thijs

Philipp



------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to