[Rpcemu] Wtr.: Re: How to build RPCemu for Windows.
janrinze at gmail.com
Fri Jul 18 17:01:26 BST 2008
unix has usleep for microseconds.
so when taking into account the differences between the platforms perhaps
_sleep is a better solution..
2008/7/18 Joe Burmeister <jab_joe at hotmail.com>:
> Hi Steffen, rpcemu
> About Sleep()
> it works in milliseconds but POSIX sleep() is in seconds......
> at least that was my understanding....
> > Date: Fri, 18 Jul 2008 00:00:57 +0200
> > To: rpcemu at riscos.info
> > From: steffen at huber-net.de
> > Subject: [Rpcemu] Wtr.: Re: How to build RPCemu for Windows.
> > Hi David (and everybody else),
> > I also don't know anything about C and using it on Windows, so I decided
> > to just try and see how far I get...
> > ...and, a few hours later, I now have
> > - a seemingly working MinGW gcc environment
> > - the Eclipse IDE along with CDT and the SVN client using the
> > MinGW build environment
> > - the current RPCemu sources from SVN
> > - a successfully "built from latest sources" RPCemu.exe
> > (Eclipse was chosen because I use it at work for Java development
> > and so I'm familiar with it wrt using CVS and SVN)
> > The most time consuming tasks for someone not familiar with
> > this C stuff is
> > 1.) how to get a makefile compatible with Windows
> > (thankfully, the Eclipse IDE seems to be able to do that automatically)
> > 2.) which libs are needed for linking
> > A ready-to-use Windows build script would be great, as well
> > as a "how-to" for people starting from scratch.
> > > I assume this means MinGW http://www.mingw.org/ Following the
> > > link goes to a page with nothing to download.
> > Use
> > http://sourceforge.net/project/showfiles.php?group_id=2435
> > and download the "Automated MinGW installer"
> > I would suggest you download and install the Base set along
> > with g++ and MinGW make.
> > Then download the readily-built "allegro for mingw" libs package.
> > You already seem to have the RPCemu sources. I needed
> > to change rpc-win.c since linking failed with function "sleep"
> > not being found - I just changed it to Sleep, which seems
> > to be an equivalent one from the Win32 API.
> > Libs to be linked against are mingw32, comdlg32 and alleg.
> > Confusingly, these are called lib.a on your harddisc,
> > but need to be passed as -l to the linker.
> > Now you have everything to successfully build RPCemu from
> > sources.
> > Steffen
> > _______________________________________________
> > Rpcemu mailing list
> > Rpcemu at riscos.info
> > http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu
> Find out how to make Messenger your very own TV! Try it Now!<http://clk.atdmt.com/UKM/go/101719648/direct/01/>
> Rpcemu mailing list
> Rpcemu at riscos.info
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpcemu