Discuss the massively-multiplayer home defense game.
You are not logged in.
Pages: 1
When I'm trying to compile the source, I do my ./configure , select windows.
next step, I go to gameSource and do a make.
^ posted the error.
Thanks in advance.
Offline
So... you're using MinGW, I'm hoping? :-)
Anyway, it looks like you need to install the g++ package for MinGW. That is the C++ compiler.
Offline
Also... please behave with your custom-compiled Windows binary....
Offline
Also... please behave with your custom-compiled Windows binary....
Shall I fear my tapes in-game all to be watched?
Still, thanks.
PS: I'd like it if you did link the DL.
Last edited by DaVinci (2014-01-31 12:30:03)
Offline
You mean the DL for the g++ MinGW package?
Gosh, I haven't installed MinGW in an awfully long time, so I don't remember. There are instructions here:
http://www.mingw.org/wiki/InstallationHOWTOforMinGW
I think there's an "automated package installer" thing for MinGW now that lets you check boxes for things like g++ (or maybe it's included with GCC).
Or maybe you mean linking to a DL of the client that you build? :-)
Offline
You mean the DL for the g++ MinGW package?
Gosh, I haven't installed MinGW in an awfully long time, so I don't remember. There are instructions here:
http://www.mingw.org/wiki/InstallationHOWTOforMinGW
I think there's an "automated package installer" thing for MinGW now that lets you check boxes for things like g++ (or maybe it's included with GCC).
Or maybe you mean linking to a DL of the client that you build? :-)
I meant the downloading link for the minGW.
This is the new error now.
Offline
--------------------------------------------------
Please write somewhere what is required to build the client for all the operating systems supported.
I seemed to get SDL,OpenGL and such but a list of them would help a lot of other people.
Offline
bump.
the error I can't deal with is:
got OpenGL, got SDL, got minGW with gcc++
Last edited by DaVinci (2014-01-31 14:49:27)
Offline
Hi,
I'm getting the same error as above post about windows.h. Fresh (virtual) install of Ubuntu, just installed g++, mingw, sdl, windows.h is in the mingw folder in /usr/. Any ideas?
Last edited by blankettyblankblank (2014-01-31 20:24:01)
Offline
Hi,
I'm getting the same error as above post about windows.h. Fresh (virtual) install of Ubuntu, just installed g++, mingw, sdl, windows.h is in the mingw folder in /usr/. Any ideas?
Mate, I kinda got what is causing this.
mingW's "<>" includes can't find it although they exist at /usr/include/mingwfolder/.
I manually copy-pasted the windows.h and changed the <> into "" so it would get called from the same folder as the .cpp file.
But I'm sure a more clean way is possible, so I'm googling for it. When I find it, I'll post it.
Offline
Bump.
Offline
the windows.h solution is not completely found atleast by my presence, but:
cp -a FOLDEROFMING /usr/include/
does get the headers I suppose.
Offline
make: *** No rule to make target `../../minorGems/system/win32/windows.h', needed by `../../minorGems/system/win32/TimeWin32.o'. Stop.
and this would be the new error we'd get. no solutions yet.
Offline
_mingw.h:268:2: error: #error Only Win32 target is supported!
The latest error after a fresh install of the sauce.
Offline
bump
Offline
Bump, Also I'm using Ubuntu, cross-compiling for Windows. To clear minds.
Offline
bump.
Offline
I don't know what you mean about "Using Ubuntu" to build for Windows! I've never tried that, and I have NO idea if that will work. I've always booted into Windows and run MinGW from inside Windows.
Anyway, I think you may need the: w32api package on MinGW.
You should NOT change it to "windows.h" instead of <windows.h>.... the "<>" brackets tell it to look in the system path, which is where windows.h is kept!
Requirements are:
SDL, OpenGL, g++
The source package is set up so that building on Linux (for Linux) is super easy. Mac is also pretty easy, if you have SDL installed. But Windows building is a bit of a headache because getting MinGW installed correctly is a bit of a headache!
And trying to do it from inside Ubuntu is something I've never tried, so you're on your own there! :-)
Offline
I don't know what you mean about "Using Ubuntu" to build for Windows! I've never tried that, and I have NO idea if that will work. I've always booted into Windows and run MinGW from inside Windows.
Anyway, I think you may need the: w32api package on MinGW.
You should NOT change it to "windows.h" instead of <windows.h>.... the "<>" brackets tell it to look in the system path, which is where windows.h is kept!
Requirements are:
SDL, OpenGL, g++The source package is set up so that building on Linux (for Linux) is super easy. Mac is also pretty easy, if you have SDL installed. But Windows building is a bit of a headache because getting MinGW installed correctly is a bit of a headache!
And trying to do it from inside Ubuntu is something I've never tried, so you're on your own there! :-)
Can you write a guide on how to do it on Windows then?
I built my client on linux already.
Last edited by DaVinci (2014-02-06 10:12:24)
Offline
I've just managed to compile it on Windows, so here's the guide (at least what worked for me).
1. Download MinGW, SDL
a. MinGW link - Download minGW-get-setup.exe
b SDL Link - Download the last one, says (MinGW32) after it
2. Install MinGW
a. Instructions (Do everything until you finish the "After Installing you Should" section)
b. Packages that I used: mingw-developer-tool, mingw32-base, mingw32-gcc-g++, and msys-base
c. Be sure to make a new fstab file - the installation includes fstab.sample, which does NOT work. Just copy it all into a new file and save it as "fstab" (with quotes - otherwise, it's saved as a useless text file)
3. Install SDL
a. Instructions - Up to "Your first SDL program"
b. You might have to copy the SDL.dll file into Windows/SysWOW64 instead of Windows/Sys32
4. Compile the Game
a. Read "How to connect to the main server" and follow instructions for the key
b. Launch the msys shorcut that you made in 2. (if you didn't, run C:\MinGW\msys\1.0\msys.bat)
c. Navigate to your CastleDoctrine_vXX_UnixSource folder (using cd "C:/Users/etc..." - If the address has spaces, uses "\ " for them)
d. Run runToBuild (just type it and press enter)
The game should be compiled!
That's essentially what I did (with a whole lot of mistakes along the way). I never encountered a <windows.h> error, so I don't know if those instructions will bypass it or not.
Last edited by iceman (2014-02-06 19:41:51)
Fortress Theory Mod - New objects, tools, and paintings!
I keep dying of a natural cause - Stupidity
The biggest thing that Castle Doctrine has taught me is that the price of your house is proportional to the stupidity of the mistake that kills you.
Offline
I tried to cross-compile it to Windows on Linux, that's why.
Thanks for your contribution to this, I'll add it to wiki
Offline
My computer is telling me runToBuild command not found
Offline
Are you running it from inside the MSYS console?
Fortress Theory Mod - New objects, tools, and paintings!
I keep dying of a natural cause - Stupidity
The biggest thing that Castle Doctrine has taught me is that the price of your house is proportional to the stupidity of the mistake that kills you.
Offline
Yes
Offline
Pages: 1