Erlang/OTP Forums

Author Message

<  Advanced Erlang/OTP  ~  Building erlang (and erl_interface) on Windows

nesrait
Posted: Sat May 02, 2009 7:42 pm Reply with quote
User Joined: 02 May 2009 Posts: 33 Location: Portugal
Hi all!

During the last week I've tried to build erl_interface using MinGW on windows and after a completely hackish (http://erlang.org/pipermail/erlang-questions/2009-April/043235.html) attempt I've gone back and tried to do it the right way: following the details in the file README.WIN32 included in erlang's source.

Since I encountered a bunch of problems I would now like to contribute back with what I've learned so far (and get the community's feeback on what's missing Wink).

I used Visual C++ 2008 SP1 Express (free is always nice!!) and got pretty far into the building process.

The first attachment (README.txt) reports on the steps necessary to [almost] build erlang using cygwin + Visual C++ (cl.exe).
The second one (README MinGW.txt) describes how to setup cygwin and mingw to prepare an erl_interface build (notice: there's a bug in erl_interface/Makefile.in: $USING_MINGW -> $(USING_MINGW)).

By the way... has anyone encountered problems using erl_interface built using MinGW? My "ports" are consistently crashing with a badarg when certain data is sent/received from the port (this isn't R13B specific, it also happens in R12B-5). :\

It would be pretty cool to have a "Installing Erlang on Windows" HOWTO describing all problems that someone could encounter in the building process! Smile

Cheers,
Davide Smile
View user's profile Send private message
nesrait
Posted: Mon May 11, 2009 11:57 am Reply with quote
User Joined: 02 May 2009 Posts: 33 Location: Portugal
Ahoy!

Just wanted to share some progress on using erl_interface on windows (for who it may concern): you have to set stdin/out to binary mode to get your code to work! Smile
Details here:
http://erlang.org/pipermail/erlang-questions/2004-April/012097.html
http://www.erlang.org/ml-archive/erlang-questions/200305/msg00259.html
and here
http://www.trapexit.org/How_to_use_ei_to_marshal_binary_terms_in_port_programs

:Davide
View user's profile Send private message
timrila
Posted: Thu Jun 07, 2012 10:02 am Reply with quote
User Joined: 28 Mar 2012 Posts: 32
Nice article, great!I like it, thanks for sharing it with us. its worth reading! keep posting like this! thanks for sharing the great ideas.
Soccer Jerseys
Spain Soccer Jersey
Netherlands Soccer Jersey
Real Madrid Jersey
View user's profile Send private message
wuji
Posted: Sat Aug 18, 2012 5:30 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
that we're seeing -- and we've seen some of this this [h3]cheap designer *beep*[/h3] this behavior in the past couple months -- might suggest
Meaning hyperactivity, hyper energy, been possibly up and not not replica designer bags for sale not sleeping for days. What we might be seeing
is the post effects."But Randazzo also said there was a a cheap replica *beep* a third possibility. He might simply be faking it."It's possible,"
said when asked if Holmes' behavior could be all an an [h4]Cheap Ralph Lauren Shirts[/h4] an act. "It is possible. We'll leave that open," she
adding that most people who lie about that sort of of [h1]designer replica *beep*[/h1] of behavior are sociopaths and "What we've heard about his
does not suggest sociopath at all.""Let's keep that in mind mind cheap Christian Louboutin mind that he was studying neuroscience. He was studying
the type of brain issues that we're going to be be cheap Christian Louboutin be talking about throughout this whole case," she said.'Berlin Patient'
Brown Says He Is Still HIV-FreeFirst Man Thought to Be Be [h2]cheap replica *beep*[/h2] Be Cured of HIV Dispels Rumors, Announces New FoundationBy
A. MCCLELLAN, M.D.July 24, 2012— Timothy Ray Brown, who is is cheap designer *beep* is believed to be the first person to have ever
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum