CORDIAL MINUET ENSEMBLE

??????

You are not logged in.

#1 2015-01-27 11:40:58

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Compiling for Windows

Has anyone been successful in compiling CM for windows? I've had a go but am a bit lost.

What I have done so far:
- Installed MinGW
- Installed SDL 1.2
(both following Iceman's instructions regarding TCD: http://thecastledoctrine.net/forums/vie … 913#p7913)
- Downloaded the CM source and minorGems placing them in the same folder
- Ran msys.bat, navigated to the CM source directory and ran configure
Now, when I run configure it asks me to "Select Platform"

When I type '3' for "Win32 using MinGW" it just seems to quit and gives no output.

Edit:
Ok, I figured this out and for those wondering here is what to do:

1. Download and install minGW
Follow the instructions here until "After Installing You Should ..."

2. Download and install SDL1.2 for MinGW
Follow the instructions here.

3. Download the CW Unix Source
You can find it  here (it's the last one)
Unzip the folder somewhere.

4. Run mysis (it will be in your minGW folder, eg.  C:\MinGW\msys\1.0\msys.bat )

Mount minGW into mysys by typing:
mount c:/mingw /mingw
(changing the path name as necessary)

Navigate to the folder containing the CW source and type:
runToBuild

Select option 3 - Win32 using minGW.

And at should compile!

Last edited by joshwithguitar (2015-01-29 13:17:16)

Offline

#2 2015-01-27 13:12:52

computermouth
Member
Registered: 2014-12-27
Posts: 134

Re: Compiling for Windows

Quick checklist.

Do you have MSYS installed?
Did you grab the SDL development libraries(not the runtime or source)?
Did you get the source from here?

I've always had terrible luck with getting near anything to work properly under MSYS or Cygwin.

One of the other castledoctrine forum members mentions cross compiling from Linux. That's an option, but you'd have to change the compiler in 'CMSource/minorGems/game/platforms/SDL/Makefile.MinGW' on line 40 from g++ to g++-mingw-w64-[your_platform].

EDIT:
You could also put new 'echo "$someVariable"' lines in the configure script to see what it's doing or where it's bailing.

Last edited by computermouth (2015-01-27 13:17:41)


Try Linux, get free. #!++ (CrunchbangPlusPlus) is a stable distribution based on Debian 8. Keep it fast, keep it pretty.

Offline

#3 2015-01-27 16:13:03

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Compiling for Windows

Configure just makes the makefiles for you.

Then you must:
cd gameSource
make

Offline

#4 2015-01-28 02:24:28

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Re: Compiling for Windows

Thanks Jason,

I've run the make files and am now getting a string of errors of the form:
Makefile:710: [filename].dep: No such file or directory
this is followed by a long string of ../../minorGems/[filepath]/[filename].cpp ../../minorGems/ etc..
at the end there is the error
make: *** [Makefile.minorGems_dependencies] Error 127

computermouth wrote:

Do you have MSYS installed?
Did you grab the SDL development libraries(not the runtime or source)?
Did you get the source from here?

Yes, as I said I am using MSYS
Yes, I downloaded the minGW devepoment library of SDL and installed it using the instructions iceman linked in his post.
I found the source files on sourceforge, I imagine they are the same.

Offline

#5 2015-01-28 02:48:19

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Re: Compiling for Windows

Here is an image of the output:
make

Offline

#6 2015-01-28 07:39:00

..
Member
Registered: 2014-11-21
Posts: 259

Re: Compiling for Windows

That always happens the first time that you run 'make' on a clean copy. Ignore those messages. Looking at your screenshot I can see that it didn't get much further, but you didn't post the actual error message.

Offline

#7 2015-01-28 10:59:21

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Re: Compiling for Windows

Thanks ..

I did post the error but I can understand if you missed it in the previous post:

make: *** [Makefile.minorGems_dependencies] Error 127

Here is the rest of the output:

make2

Offline

#8 2015-01-28 11:54:03

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Re: Compiling for Windows

Ok, figured out my problem was that I had to mount minGW in msys with:
mount c:/mingw /mingw

g++ is now working.

However, I'm getting some new errors:

make3

I don't imagine I would have to modify the code to get it working, right?

Last edited by joshwithguitar (2015-01-28 12:05:42)

Offline

#9 2015-01-28 12:16:51

..
Member
Registered: 2014-11-21
Posts: 259

Re: Compiling for Windows

It looks like the include path isn't right and it's not finding game.h. Relative to game.cpp, game.h should be at ../../minorGems/game/game.h. minorGems and CordialMinuet should be in the same folder (otherwise you should edit CordialMinuet/configure).

Offline

#10 2015-01-28 12:27:11

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Re: Compiling for Windows

Yeah, that is odd as I have them in the same folder and it is obviously finding everything else.

Edit: None of these functions are declared in game.h anyway and I'm not sure where they are declared. I guess I'll try to figure it out in the morning, off to bed now.

Last edited by joshwithguitar (2015-01-28 12:53:50)

Offline

#11 2015-01-28 17:13:50

computermouth
Member
Registered: 2014-12-27
Posts: 134

Re: Compiling for Windows

Is this with the UnixSource? I'd think the runToBuild would work on windows under msys since it's pretending to be a unix environment. That way, if the problem lies in placement of files, using the other source should do it. It has the same platform specific prompts.


Try Linux, get free. #!++ (CrunchbangPlusPlus) is a stable distribution based on Debian 8. Keep it fast, keep it pretty.

Offline

#12 2015-01-28 22:05:43

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Re: Compiling for Windows

Thanks computermouth!

I downloaded the unix source from the link you posted above and ran runToBuild in it and it worked straight away.

Offline

#13 2015-01-28 23:19:11

..
Member
Registered: 2014-11-21
Posts: 259

Re: Compiling for Windows

Huh? All of those functions are definitely defined in game.h. Were you using an older version of minorGems from that TCD thread?

Offline

#14 2015-01-28 23:49:05

jasonrohrer
Administrator
Registered: 2014-11-20
Posts: 802

Re: Compiling for Windows

Okay, so we're good here?

Sounds like you may have been using an out-of-date pull of minorGems....

Offline

#15 2015-01-29 02:43:52

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Re: Compiling for Windows

Yep, that must have been the problem.

Thanks everyone for helping, it is working now.

I'll post some detailed instructions soon of how I got it to work to make it easier for anyone else who has no idea what they are doing.

Offline

#16 2015-01-29 06:49:34

computermouth
Member
Registered: 2014-12-27
Posts: 134

Re: Compiling for Windows

I thought it might. I had actually been trying to build it similarly. I'd gotten the source from sourceforge instead of the forum, so when I saw your line about copying minorGems to the same folder, figured you must be in the same boat. Glad it worked big_smile


Try Linux, get free. #!++ (CrunchbangPlusPlus) is a stable distribution based on Debian 8. Keep it fast, keep it pretty.

Offline

#17 2015-01-29 13:17:44

joshwithguitar
Member
Registered: 2015-01-07
Posts: 128

Re: Compiling for Windows

Ok, I have added the steps to get it working into the OP.

Offline

Board footer

Powered by FluxBB