Windows Compilation From Source

Windows Compilation From Source

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Windows Compilation From Source

Post by SinbadEV »

So I have devcpp, tortoise svn, and the python version of scons installed...

** SinbadEV's Head Explodes **

Tortoise grabs the svns no problems... but scons gives this error...

Code: Select all

E:\SpringSource>scons configure
scons: Reading SConscript files ...

Now configuring.  If something fails, consult `config.log' for details.

Detected platform : windows
WARNING: support is incomplete
Checking cl version... cl not found
E:\SpringSource>
DevCpp can only import dsp files but under system/build both vc7andvc8 only have the vcproj files.

How am I supposed to compile from source with DevCpp and no cygwin?
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

robed wrote:I'm robed, not sinbad ;p

Grrrr.... fraking bizatching shitnatshitfbjdu809y89n d5i '


scons sucks ass on windows, and some people con't afford a $500 copy of VC, some people happend to have a broken stolen VC install disc! Make this work on DevCpp, or i'mah kill people, like, your mom, or mine, maybe just sinbad. Grrr...
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

devcpp is crap.

do the following steps:
  1. sacrifice a virgin goat on the grave of your brother's sister's cousin's aunt twice removed...
  2. beat up one linux user using a 1980 cobol instruction manual...
  3. find a peice of core memory, something the size of 1024kb... and bash your self over the head with it.
  4. now unistall devcpp
this house is clean
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Detected platform : windows
WARNING: support is incomplete
so join heze and get it to work!
Keiichi
Posts: 20
Joined: 23 Aug 2005, 18:30

Post by Keiichi »

The problem with scons is that it does not import the shell enviroment and therefore you have to modify the Sconstruct file to import it.

BUT that does not work. At least not with the Spring Sconstruct (but that may be due to the incomplete windows support).

Also the doc of scons seems to be incomplete or incorrect regarding the windows support, because it says it first tries msvc and then mingw. As i have both installed and it did not bother to try to find mingw i guess scons on windows is completely borked.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Keiichi wrote:Also the doc of scons seems to be incomplete or incorrect regarding the windows support, because it says it first tries msvc and then mingw. As i have both installed and it did not bother to try to find mingw i guess scons on windows is completely borked.
To me it seems that's it's doing exactly what it's supposed to do: you have both installed, so it picks msvc :roll:
User avatar
robed
Posts: 56
Joined: 02 Mar 2006, 03:18

Post by robed »

Well, the important part here is getting spring to compiler without buying MSVC, or downloading a ~free~ copy, for "personal" use ;p

if mingw works, at all, then I can get sinbad to install it :D
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

robed wrote:Well, the important part here is getting spring to compiler without buying MSVC, or downloading a ~free~ copy, for "personal" use ;p

if mingw works, at all, then I can get sinbad to install it :D
I don't have either one.

Just do it the other way round, install mingw and make spring work nice with it :-)
User avatar
robed
Posts: 56
Joined: 02 Mar 2006, 03:18

Post by robed »

We'll give it a try, he might TeamSpeak me this morning, or if not then we'll try sunday, whenever I happen to wake up
Xon
Posts: 33
Joined: 07 May 2005, 17:07

Post by Xon »

robed wrote:Well, the important part here is getting spring to compiler without buying MSVC, or downloading a ~free~ copy, for "personal" use ;p

if mingw works, at all, then I can get sinbad to install it :D
Or you could go download Visual C++ 2005 for free from Microsoft. You can get a free copy from Microsoft for about another 6 months, then you have to pay to get a copy.Linky.

After the period when you can get it for free is up, you do not have to pay for the free copy you downloaded. You have 2 options; download the webinstaller and you need to register or download the iso and you dont need to register.

You will also need to download the Win32 SDK, with a link provided on the website.
Keiichi
Posts: 20
Joined: 23 Aug 2005, 18:30

Post by Keiichi »

Tobi wrote:
Keiichi wrote:Also the doc of scons seems to be incomplete or incorrect regarding the windows support, because it says it first tries msvc and then mingw. As i have both installed and it did not bother to try to find mingw i guess scons on windows is completely borked.
To me it seems that's it's doing exactly what it's supposed to do: you have both installed, so it picks msvc :roll:
Quoting the man-page : "By default, scons knows how to search for available programming tools on various systems. On WIN32 systems, scons searches in order for the Microsoft Visual C++ tools, the MinGW tool chain, the Intel compiler tools, and the PharLap ETS compiler."

Although Mingw and cygwin are in the path too, it does not search for them. So it does NOT do what it is expected to do.

edit : Ok, cygwin is a different thing, but it SHOULD detect mingw.
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

Okay... I have MinGW working, but it looks like robed decided to sleep the entire day.... soooo... what do I do now... I've installed tortoise, python, scons, mingw... and some other stuff... what do I do now... have a local svn repository with all the source in it too... what am I supposed to do now?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Grab and install all dependencies mentioned on http://spring.clan-sy.com/wiki/SetupGuide from http://www.devpaks.org (or get them from their respective homepages and compile from source :P).

Then switch to the directory having the file 'SConstruct' (in a terminal) and type

Code: Select all

scons configure
Post all errors you get plus config.log (generated in that same directory) and wait till a reply :wink:
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

Okay... Just for the sake of making sure my scons installation works (because I have no clue how to install devpacks yet)

Code: Select all

E:\testSCons>scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cl /nologo /c hello.c /Fohello.obj
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [hello.obj] Error 1
scons: building terminated because of errors.

where SConstruct Contains >
Program('hello.c')
and hello.c contains >
int
main()
{
printf("Hello, world!\n");
}
Edit1: From whining on the scons forum I have discovered that I need to somehow tell scons to use mingw instead of M$ stuff.... but I don't see anything even resembling a preferences file in the thing...

Edit2:

Code: Select all

E:\testSCons>scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -c -o hello.o hello.c
hello.c:5:8: warning: no newline at end of file
g++ -o hello.exe hello.o
scons: done building targets.
E:\testSCons>hello
Hello, world!
okay... now I guess I just have to start hunting down the 6 bagillion dependencies and I'll be ready to test the srping compile... :P
User avatar
robed
Posts: 56
Joined: 02 Mar 2006, 03:18

Post by robed »

Tell me who to kill to get libboost_regex-vc80-mt-1_33.lib and libboost_regex-vc80-mt-gd-1_33.lib. I will kill them, gladly. BTW your V8.vxproj file was made by a monkey, yah, a smoking monkey. he can't type worth shit though, ../../../vclibs\SDL-1.2.8? 1.2.*8* ?!?!?!?! Maybe i'll kill the monkey, anyone? kill the monkey? Ohh, ohh, yah, please let me...
patmo98
Posts: 188
Joined: 09 Jan 2006, 17:51

Post by patmo98 »

robed wrote:Tell me who to kill to get libboost_regex-vc80-mt-1_33.lib and libboost_regex-vc80-mt-gd-1_33.lib. I will kill them, gladly.
You can find them both here http://fileuniverse.com/?p=showitem&ID=2416
robed wrote:BTW your V8.vxproj file was made by a monkey, yah, a smoking monkey. he can't type worth shit though, ../../../vclibs\SDL-1.2.8? 1.2.*8* ?!?!?!?! Maybe i'll kill the monkey, anyone? kill the monkey? Ohh, ohh, yah, please let me...
Um, I'm using SDL 1.2.8. What wrong with that?

Try looking at http://taspring.clan-sy.com/phpbb/viewt ... 9257#49257 to find the rest of the build libs. I think you need glew, OpenAL, freetype, boost, SDL, zlib, DevIL, and maeby SDL-mixer.
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

http://spring.clan-sy.com/dl/spring-vclibs.exe contains 1.2.9 even though the svn project is looking for 1.2.8 is the problem... I think those FU links will probably do the trick however...
User avatar
robed
Posts: 56
Joined: 02 Mar 2006, 03:18

Post by robed »

patmo98 wrote: Um, I'm using SDL 1.2.8. What wrong with that?
If i was a monkey, no if i was a smoking monkey, no if I was a crack smoking mokey, I could still figure out that having two 'additional includes' directories, namely ../../vclibs/SDL-1.2.8 and ../../vclibs/SDL-1.2.9, would work much better then just one... Wether both, or one, or the other were present.

So what I really want to ask the mokey who made the .vcproj files is what are you smoking, cause it sure as fraking hell ain't crack, and you need to lay off the stuff!
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I had to get that package recently, and it took age sto downlaod, so i packaged it in a rar file and uplaoded it to fileuniverse as soon as I got it.

http://www.fileuniverse.com/?p=showitem&ID=2577
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

I know this isn't the right place to whine... but it would be nice if people who posted stuff like that on fileuniverse would also include a file list/directory listing for what's been posted...
Post Reply

Return to “Engine”