Author Topic: Compiling CS in winows  (Read 1714 times)

Taldor

  • Hydlaa Citizen
  • *
  • Posts: 255
  • Tinker (traveling merchant)
    • View Profile
    • Bloodclaw
Compiling CS in winows
« on: May 13, 2004, 03:41:17 pm »
I\'d like to compile the CVS version of CS in windows. And I downloaded the sources from cs, cel and ps already, but i dont know how to compile: wich program should i use, ....

Right now i\'m learning C++, but i\'m still at the DOS-stage. I use dev-c++ but i read somewhere that ps was to big for dev-c++...


dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #1 on: May 13, 2004, 07:15:26 pm »
I believe you either need MSVC 7 or MinGW + gcc (free, but probably more work to install)

I\'m not sure what it is about dev-C++ that doesn\'t work with CS, but I\'ve heard the same thing (that dev-c++ chokes for some reason)

Check out http://www.mingw.org for MinGW details.  Note that if you go with gcc you should avoid gcc 3.4 for now, as there\'s still some things in CS & PS that need to be ironed out before gcc 3.4 will accept them.
Quidquid latine dictum sit, altum sonatur.

Uyaem

  • Hydlaa Notable
  • *
  • Posts: 747
    • View Profile
(No subject)
« Reply #2 on: May 26, 2004, 11:21:24 pm »
Did anyone ever manage to compile from W32 with VisualStudio 7?
To me it seems that the project files included in the MB source in the linux package aren\'t very up-to-date.
Got lots of missing-file-errors (and I can find these files nowhere in the tar.gz.
The internet is "the terrorists'" most important weapon, they say.
Wrong.
Fear is their most important weapon.
Ours is our freedom.

Taldor

  • Hydlaa Citizen
  • *
  • Posts: 255
  • Tinker (traveling merchant)
    • View Profile
    • Bloodclaw
(No subject)
« Reply #3 on: May 27, 2004, 10:02:24 am »
I didn\'t even manage to add all files to the project in msvc6...

but do you want to compile MB? I think everyone is working now on CB... so it isn\'t up to date prolly

Uyaem

  • Hydlaa Notable
  • *
  • Posts: 747
    • View Profile
(No subject)
« Reply #4 on: May 27, 2004, 10:26:04 am »
Quote
Originally posted by Taldor
I didn\'t even manage to add all files to the project in msvc6...


There are project files for msvc somewhere in the subdirectories. Just look *.sln :)

Quote
but do you want to compile MB? I think everyone is working now on CB... so it isn\'t up to date prolly


Yes, I wanted to compile MB from the sources in the tar.gz on sourceforge (not CVS!).
The internet is "the terrorists'" most important weapon, they say.
Wrong.
Fear is their most important weapon.
Ours is our freedom.

Ciry

  • Traveller
  • *
  • Posts: 46
    • View Profile
(No subject)
« Reply #5 on: May 29, 2004, 07:17:29 pm »
About missing files are u talking about \"csutil/scopedmutexlock.h\" ? if yes i have the same problem, i can\'t find this file in the package, but probably i\'v downloaded the wrong version of CS, i\'m looking where i\'v made the mistake.....

genqueue.cpp in apppsclient include this file from cs include path, but i can\'t find it....
« Last Edit: May 29, 2004, 07:19:35 pm by Ciry »

Taldor

  • Hydlaa Citizen
  • *
  • Posts: 255
  • Tinker (traveling merchant)
    • View Profile
    • Bloodclaw
(No subject)
« Reply #6 on: May 30, 2004, 04:11:01 pm »
thx for the tip pogo.

now mvc++6 says that \'cssysdef.h\' is missing and \'...\\src\\client\\gui\\pawsguildjoinwindow.cpp\' doesn\'t exist either. Has anyone a sugesstion?

Uyaem

  • Hydlaa Notable
  • *
  • Posts: 747
    • View Profile
(No subject)
« Reply #7 on: May 30, 2004, 04:53:23 pm »
the standard compiling attempt of CrystalSpace e.g. gives me more than 1000 errors (where most of course are based on the dependencies of the projects.)

E.g. one file that was missing I remember was AL/al.h (from the sound lib OpenAL)...
The internet is "the terrorists'" most important weapon, they say.
Wrong.
Fear is their most important weapon.
Ours is our freedom.

Ciry

  • Traveller
  • *
  • Posts: 46
    • View Profile
(No subject)
« Reply #8 on: May 30, 2004, 06:08:22 pm »
About OpenAL:
make shure u have added the path of inlcude and libs files of the OpenAL folder in MSVC.
Under include folder under OpenAL folder make an AL directory and copy all *.h files inside it.
After this i\'v solved the error about AL\\al.h missing and so....

Ciry

  • Traveller
  • *
  • Posts: 46
    • View Profile
(No subject)
« Reply #9 on: May 30, 2004, 07:31:24 pm »
Ok Guys, i\'v solved my problem with \"csutil/scopedmutexlock.h\", now i have both CS and CEL library built, still working for PS in next days....

(I\'m working with MSVC 6.0)

Now i report what i\'v done to build CS:

Install the last DirectX SDK, if it is the version 8.0 or above is not needed to set the inlcude and libs path, it done it automatically. (i\'m actually using 9.00b)

Install Python and set the include and libs path in ur msvc. (i\'m actually using Python 2.3.3)

Install OpenAL SDK and set the include and libs path.
After installed the OpenAL go into the include folder under ur OpenAL path and make a new directory called AL and copy all the *.h files into it, dunno why is needed but some source file point in this location (like AL\\al.h).

Use only the CS libs package from http://www.planeshift.it, the 0.96 that i was using is wrong for MB.  ;)

Make the folders tree as described in compiling.txt and after decompressed the CS package in CS directory u need also the \"msvc_libs_0.96.zip\" (u can find it on sourceforge) and unpack it in CS folder.

Now u are able to build CS, go in CS\\MK\\VISUALC and open CSALL.DWS, set the GRPLIBS as active project, select the release or debug configuration and launch build, good luck!  :D

Now i report what i\'v done to build CEL:

Open CEL.DSW, add the path of include files for CS > \"CS\\INCLUDE\" and libs > \"CS\\MK\\VISUALC\\CSRELEASE\\BIN\\LIBS\".
Now select one by one the project selecting the desired debug or release config and launch build (build each project 1 by 1).


I hope i\'m usefull, anyway sorry for my bad english and let me know if there is somthing wrong, for me worked, now as soon as i have time i try with ps source, see u guys!  ;)

Ciry

  • Traveller
  • *
  • Posts: 46
    • View Profile
(No subject)
« Reply #10 on: May 31, 2004, 07:02:25 pm »
Yup, compiled, now i have my psclient.exe from source files....  :D

Taldor

  • Hydlaa Citizen
  • *
  • Posts: 255
  • Tinker (traveling merchant)
    • View Profile
    • Bloodclaw
(No subject)
« Reply #11 on: June 02, 2004, 09:25:40 pm »
I got these messages while building Crystal Space (i don\'t understand them, can someone explaine these warning or give a solution?):
...
--------------------Configuration: libcsgeom - Win32 Release--------------------
Compiling...
Command line warning D4002 : ignoring unknown option \'/Ot\'
Command line warning D4002 : ignoring unknown option \'/Og\'
Command line warning D4002 : ignoring unknown option \'/Oi\'
Command line warning D4002 : ignoring unknown option \'/Oy\'
Command line warning D4002 : ignoring unknown option \'/Ob2\'
...
Creating library...
File is a lib, Copy skipped.
--------------------Configuration: libcsutil - Win32 Release--------------------
Compiling...
Command line warning D4002 : ignoring unknown option \'/Ot\'
Command line warning D4002 : ignoring unknown option \'/Og\'
Command line warning D4002 : ignoring unknown option \'/Oi\'
Command line warning D4002 : ignoring unknown option \'/Oy\'
Command line warning D4002 : ignoring unknown option \'/Ob2\'
archive.cpp
..\\..\\include\\csutil/zip.h(28 ) : fatal error C1083: Cannot open include file: \'zlib.h\': No such file or directory
...
..\\..\\include\\csutil/zip.h(28 ) : fatal error C1083: Cannot open include file: \'zlib.h\': No such file or directory
...
xmltiny.cpp
Generating Code...
Error executing cl.exe.

3ds2lev.exe - 2 error(s), 10 warning(s)
« Last Edit: June 02, 2004, 09:26:49 pm by Taldor »

Taldor

  • Hydlaa Citizen
  • *
  • Posts: 255
  • Tinker (traveling merchant)
    • View Profile
    • Bloodclaw
(No subject)
« Reply #12 on: June 02, 2004, 10:04:41 pm »
i solved the zlibs problem now, but i still don\'t know what the first warnings mean

and now \'lib3ds/camera.h\' is missing ...

dfryer

  • Veteran
  • *
  • Posts: 1070
    • View Profile
(No subject)
« Reply #13 on: June 03, 2004, 06:27:56 pm »
Taldor, not all of CrystalSpace has to build.  I don\'t know if the 3D Studio stuff is important (lib3ds).  Does most of the other stuff seem to work?  Can you run the \"walktest\" program included with Crystal Space?
Quidquid latine dictum sit, altum sonatur.

Taldor

  • Hydlaa Citizen
  • *
  • Posts: 255
  • Tinker (traveling merchant)
    • View Profile
    • Bloodclaw
(No subject)
« Reply #14 on: June 03, 2004, 06:53:13 pm »
i solved the lib3ds problem (i dl the required files) but now i get:

Linking...
LINK : fatal error LNK1181: cannot open input file \"lib3ds-120.lib\"
Error executing link.exe.

grpall_typical.lib - 1 error(s), 0 warning(s)

the applications like walktest are not generated


I also tried msys and everything seemed to go fine, but when i try to run walktest i get messages that libpng.dll and libjpeg.dll are missing. (the app works i think, but i\'m not sure. I can see some objects in a black surrounding an i can move with up-down-.. keys)
When i try to run other apps, i get the same message for libfreetype2.dll and lib3ds-120.dll .

I don\'t know wich of the the 2 ways (mvsc or msys+mingw+...) i should go.
« Last Edit: June 03, 2004, 07:01:11 pm by Taldor »