-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build on windows #398
Comments
I tied to find answer on google: "BaseTsd.h No such file or directory". But most of the search result is about "basetsd.h", not "BaseTsd.h". |
I believe BaseTsd.h and basetsd.h means the same thing in Windows as file path/names are case insensitive there. Also, it would help a lot if the |
They're the same. Now I've solved the enviroment problem. Howerver, when I used rebar3 to build brod, the output is confused: PS D:\zhangsiyang\study\src\brod-master> rebar3 compile I could not find the snappyer.dll in the path, neither could I find any .beam files in brod directory |
what's your OTP version ? |
OTP 22, the last log is "Linking d:/zhangsiyang/study/src/brod-master/_build/default/lib/snappyer/priv/snappyer.dll", and the command did not hang, I can continue other commands. There's no error report. PS D:\zhangsiyang\study\src\brod-master> rebar3 compile PathD:\zhangsiyang\study\src\brod-master PS D:\zhangsiyang\study\src\brod-master> |
Please try set a |
There're some error codes in the debug information, but the main point is readable: Microsoft (R) Incremental Linker Version 14.00.24215.1 /out:snappy-sinksource.exe Makefile:4: recipe for target 'compile' failed Link error |
The compiler is cl.exe The command line is: ===> sh(cmd /q /c cl.exe -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/in And In my computer, there's the snappy-sinksource.obj file, but no snappy-sinksource.o file. On windows, it should link the .obj file, on linux, it's used .o file, right ? |
The whole debug infoi: ===> sh info: ===> opts: [{env,[{"ALLUSERSPROFILE","C:\ProgramData"}, ===> Port Cmd: cmd /q /c cl.exe /c /Zi /Wall -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/include" -I"c:/Program Files/erl9.3/erts-9.3/include" c_src/snappy-sinksource.cc /Foc_src/snappy-sinksource.obj ===> Compiling c_src/snappy-sinksource.cc snappy-sinksource.cc ===> sh info: ===> opts: [{env,[{"ALLUSERSPROFILE","C:\ProgramData"}, ===> Port Cmd: cmd /q /c cl.exe /c /Zi /Wall -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/include" -I"c:/Program Files/erl9.3/erts-9.3/include" c_src/snappy-stubs-internal.cc /Foc_src/snappy-stubs-internal.obj ===> Compiling c_src/snappy-stubs-internal.cc snappy-stubs-internal.cc ===> sh info: ===> opts: [{env,[{"ALLUSERSPROFILE","C:\ProgramData"}, ===> Port Cmd: cmd /q /c cl.exe /c /Zi /Wall -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/include" -I"c:/Program Files/erl9.3/erts-9.3/include" c_src/snappy.cc /Foc_src/snappy.obj ===> Compiling c_src/snappy.cc snappy.cc ===> sh info: ===> opts: [{env,[{"ALLUSERSPROFILE","C:\ProgramData"}, ===> Port Cmd: cmd /q /c cl.exe /c /Zi /Wall -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/include" -I"c:/Program Files/erl9.3/erts-9.3/include" c_src/snappyer.cc /Foc_src/snappyer.obj ===> Compiling c_src/snappyer.cc snappyer.cc ===> Linking e:/study/src/brod-master/_build/default/lib/snappyer/priv/snappyer.dll ===> opts: [{env,[{"ALLUSERSPROFILE","C:\ProgramData"}, ===> Port Cmd: cmd /q /c cl.exe -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/include" -I"c:/Program Files/erl9.3/erts-9.3/include" c_src/snappy-sinksource.o c_src/snappy-stubs-internal.o c_src/snappy.o c_src/snappyer.o /link /DLL /MACHINE:X64 /DLL /LIBPATH:"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/lib" erl_interface.lib ei.lib /OUT:e:/study/src/brod-master/_build/default/lib/snappyer/priv/snappyer.dll ===> sh(cmd /q /c cl.exe -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/include" -I"c:/Program Files/erl9.3/erts-9.3/include" c_src/snappy-sinksource.o c_src/snappy-stubs-internal.o c_src/snappy.o c_src/snappyer.o /link /DLL /MACHINE:X64 /DLL /LIBPATH:"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/lib" erl_interface.lib ei.lib /OUT:e:/study/src/brod-master/_build/default/lib/snappyer/priv/snappyer.dll) cl: ÃüÁîÐÐ warning D9024 :ÎÞ·¨Ê¶±ðµÄÔ´ÎļþÀàÐÍ¡°c_src/snappy-sinksource.o¡±£¬¼Ù¶¨Îª¶ÔÏóÎļþ /out:snappy-sinksource.exe Makefile:4: recipe for target 'compile' failed |
I found that, if I use these command on path of "snappyer\c_src": cl.exe -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/include" -I"c:/Program Files/erl9.3/erts-9.3/include" ./snappy-sinksource.obj ./snappy-stubs-internal.obj ./snappy.obj ./snappyer.obj /link /DLL /MACHINE:X86 /DLL /LIBPATH:"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/lib" erl_interface.lib ei.lib /OUT:e:/study/src/brod-master/_build/default/lib/snappyer/priv/snappyer.dll it could build the dll successfully. Howerver, from the debug infomation, I found that, the command is : cl.exe -I"c:/Program Files/erl9.3/lib/erl_interface-3.10.1/in These two commands have two differents: My erlang/OTP is installed 64bit, and the LIB enviroment Paht is: In the first command, if I change the MACHINE:X86 to MACHINE:X64, there would be an error report: How to solve these problems ??? |
not sure if this will help, but could you try to execute |
I try to build brod on windows 7 and I have installed the MinGW. But when I run the command 'make compile', I got the error " fatal error C1083: BaseTsd.h No such file or directory". Could anyone help me ?
The text was updated successfully, but these errors were encountered: