Hi, I am using vs + cmake + rebar. C++ part is buit with cmake + vs and rest erlang code is buit with rebar. All build procedures is made from one build.bat file. Works well.
Hi Tony,
I spent a lot of time fighting with Windows (Mingw/Msys), Rebar, and
Erlang to get them all playing nicely together well to generate a
decent windows release for Nitrogen, and it works pretty reliably now.
You can use my instructions for compiling Nitrogen as a basis for
getting your stuff working:
https://github.com/nitrogen/nitrogen/blob/master/rel/overlay/win/README.md
On Sun, May 13, 2012 at 10:44 PM, Tony Rogvall wrote:The next thing was that I specified:{"(win32)","priv/dthread_drv.dll",["c_src/dthread.c", "c_src/dthread_drv.c"]},
You don't need that win32 rule.
rebar automatically switches the extension on Windows as follows:
1. priv/foo_drv.so -> priv/foo_drv.dll
2. priv/foo -> priv/foo.exe
This leads to the (bug?) that the spec ended up as {spec, drv,".dll", ...} the file was linked as .dll, no wonder I could not findit :-)
Thanks for the bug report. Can you confirm it's fixed in the ta-dll
branch?