??????
You are not logged in.
Pages: 1
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
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
Configure just makes the makefiles for you.
Then you must:
cd gameSource
make
Offline
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
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
Here is an image of the output:
Offline
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
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:
Offline
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:
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
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
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
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
Thanks computermouth!
I downloaded the unix source from the link you posted above and ran runToBuild in it and it worked straight away.
Offline
Huh? All of those functions are definitely defined in game.h. Were you using an older version of minorGems from that TCD thread?
Offline
Okay, so we're good here?
Sounds like you may have been using an out-of-date pull of minorGems....
Offline
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
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
Try Linux, get free. #!++ (CrunchbangPlusPlus) is a stable distribution based on Debian 8. Keep it fast, keep it pretty.
Offline
Ok, I have added the steps to get it working into the OP.
Offline
Pages: 1