Windows host build

Discussion about using Moai SDK - post questions, bugs and issues here.

Moderators: seebs, franciscotufro

Windows host build

Postby Mud » Sat Apr 28, 2012 2:22 pm

The windows host project in the SDK download won't build. There's a call to winhostext_WatchFolder in GlutHost.cpp, but the implementation of that function is not present so the project won't link.

I tried building from source (dev branch on git), but the host project there is broken, too. It contains a bunch of relative paths that are all wrong.

If anyone can direct me to an up-to-date build of the Windows host, I'd appreciate it.

I really want a Windows host that auto restarts when my game files changes like Akuma, but Akuma is out of date and guessing from the winhostext_WatchFolder call, it looks like that restart functionality has been rolled into the reference host.
Mud
 
Posts: 57
Joined: Sun Jan 29, 2012 9:54 pm

Re: Windows host build

Postby thebullno1 » Sun Apr 29, 2012 12:18 am

The dev branch of Akuma is up-to-date with moai.
Back to the topic, I pulled Moai last night and got no problem building it. What errors did you get?
User avatar
thebullno1
 
Posts: 256
Joined: Sat Jul 02, 2011 8:53 am

Re: Windows host build

Postby Mud » Sun Apr 29, 2012 12:47 am

thebullno1 wrote:The dev branch of Akuma is up-to-date with moai.


This? Are you able to build from that? There seem to be files missing (like aku.h).

thebullno1 wrote:Back to the topic, I pulled Moai last night and got no problem building it.


Did you try building the win32 host? \moai-sdk\hosts\vs2010\moai-host.sln

thebullno1 wrote:What errors did you get?


It can't find any of the files. They are all relative paths, and the paths are wrong, as if the source got reorganized but that VS solution never got updated. I fixed the paths and got new errors which I can't remember at the moment; I figured at that point I was going down the wrong path by missing something or trying to fix an outdated solution.

I ended up just writing an external harness to let me monitor a directory and relaunch and position an arbitrary executable, and used that to get the behavior I want with the prebuild Win32 host.
Mud
 
Posts: 57
Joined: Sun Jan 29, 2012 9:54 pm

Re: Windows host build

Postby sean » Mon Apr 30, 2012 6:07 pm

@Mud You can't build anything under the /distribute/moai-sdk/hosts folder in the GitHub source because it assumes the presence of pre-built SDK binaries which, of course, will not exist. You need to build from /vs2008 or /vs2010 to build from source.
User avatar
sean
 
Posts: 120
Joined: Wed Nov 09, 2011 5:57 pm

Re: Windows host build

Postby thebullno1 » Tue May 01, 2012 8:17 am

Mud wrote:
thebullno1 wrote:The dev branch of Akuma is up-to-date with moai.


This? Are you able to build from that? There seem to be files missing (like aku.h).


aku.h is provided by Moai. You need to change visual studio setting to include that. Besides, you need SDL and boost filesystem.
User avatar
thebullno1
 
Posts: 256
Joined: Sat Jul 02, 2011 8:53 am


Return to Moai SDK

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x