PlaneShift
Support => Technical Help: Problems BEFORE entering the game => Topic started by: Taldor 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++...
-
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.
-
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.
-
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
-
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 :)
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!).
-
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....
-
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?
-
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)...
-
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....
-
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! ;)
-
Yup, compiled, now i have my psclient.exe from source files.... :D
-
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)
-
i solved the zlibs problem now, but i still don\'t know what the first warnings mean
and now \'lib3ds/camera.h\' is missing ...
-
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?
-
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.
-
well, with mingw I think you need the crystal space \"mingwlibs\" package? I don\'t know much about it, but it might include libjpeg & company.
Does MSVC stop when it hits an error? If so, can you disable that behaviour?
-
Originally posted by dfryer
well, with mingw I think you need the crystal space \"mingwlibs\" package? I don\'t know much about it, but it might include libjpeg & company.
I installed it, but the files are missing so they aren\'t included, i think.
Does MSVC stop when it hits an error? If so, can you disable that behaviour?
Yes it stops. No I can\'t (is it possible?)
-
The best place to go is the #crystalspace channel on irc.freenode.net, if you do IRC. There\'s often a couple people there who use MSVC - I don\'t have access to a copy right now so I can\'t help you.
I would suspect that the csmingwlibs package that you installed either isn\'t correctly installed, or maybe is the wrong version? Or, maybe I\'m delusional and it doesn\'t have things like libjpeg in it at all.
Another place to go for help is the crystal-main mailinglist (crystal-main at sourceforge.net), you can sign up through the sourceforge page.
-
i read somewhere on another forum that the dlls i was looking for could be named diffrently, so they were included but under another name...
Now no more dlls are required but i get a windows message: (Translated from dutch)CS Standard Application: walktest.exe - Application erro The instruction op 0x657ae092 points to memory on 0x000000000. \'Read\' on the memory failed.
OK to end the program
Cancel to trace errrors in the program
I have had the same error with other applications as well (including planeshift)
I think i understan what is means (a segmentation fault), but i have no idea why these errors occur.
(i have 512 mb ram, a p4@2.8Ghz and Gforce4MX 440, ...)
-
Can you provide a backtrace?
Also, I\'m assuming you\'re using current CVS versions of planeshift, CS and CEL?
Thanks,
Daniel
-
Yep, I use the CVS versions.
Now the walktest.exe quits after loading (i can see a dos-window but it dissapears before i can read it)
Then i ran another ot these CS programs (tbtut.exe) an the i had another segmentation fault, here\'s the backtrace (I hope this is what you mean)
...
657AE046 add byte ptr [eax],al
657AE048 add byte ptr [eax],al
657AE04A add byte ptr [eax],al
657AE04C add byte ptr [eax],al
657AE04E add byte ptr [eax],al
657AE050 add byte ptr [eax],al <- here\'s the error
657AE052 add byte ptr [eax],al
657AE054 add byte ptr [eax],al
657AE056 add byte ptr [eax],al
657AE058 add byte ptr [eax],al
657AE05A add byte ptr [eax],al
657AE05C add byte ptr [eax],al
657AE05E add byte ptr [eax],al
...
-
I\'m trying to compile CS again (with MSVC6). There were many unincluded files, but i found them all after a while. But now there are some undeclared identifiers:
Compiling...
freefnt2.cpp
D:\\C++\\CVS\\CS\\CS\\plugins\\font\\server\\freefnt2\\freefnt2.cpp(246) : error C2065: \'FT_ENCODING_UNICODE\' : undeclared identifier
D:\\C++\\CVS\\CS\\CS\\plugins\\font\\server\\freefnt2\\freefnt2.cpp(323) : error C2065: \'FT_Activate_Size\' : undeclared identifier
D:\\C++\\CVS\\CS\\CS\\plugins\\font\\server\\freefnt2\\freefnt2.cpp(397) : error C2065: \'FT_LOAD_TARGET_MONO\' : undeclared identifier
D:\\C++\\CVS\\CS\\CS\\plugins\\font\\server\\freefnt2\\freefnt2.cpp(443) : error C2065: \'FT_RENDER_MODE_NORMAL\' : undeclared identifier
Error executing cl.exe.
grpall_newrenderer.lib - 4 error(s), 0 warning(s)
[EDIT] i deleted the project, just as the other projects that give errors, but when grall_newrenderer is built walktest crashes.
Here\'s another warning, sprcal3d seemed me important
Compiling...
sprcal3d.cpp
D:\\C++\\CVS\\CS\\CS\\plugins\\mesh\\sprcal3d\\object\\sprcal3d.cpp(1336) : error C2039: \'calculateVertex\' : is not a member of \'CalPhysique\'
..\\..\\include\\csws/cal3d/physique.h(36) : see declaration of \'CalPhysique\'
D:\\C++\\CVS\\CS\\CS\\plugins\\mesh\\sprcal3d\\object\\sprcal3d.cpp(1456) : error C2039: \'calculateVertex\' : is not a member of \'CalPhysique\'
..\\..\\include\\csws/cal3d/physique.h(36) : see declaration of \'CalPhysique\'
D:\\C++\\CVS\\CS\\CS\\plugins\\mesh\\sprcal3d\\object\\sprcal3d.cpp(1525) : error C2039: \'calculateVertex\' : is not a member of \'CalPhysique\'
..\\..\\include\\csws/cal3d/physique.h(36) : see declaration of \'CalPhysique\'
D:\\C++\\CVS\\CS\\CS\\plugins\\mesh\\sprcal3d\\object\\sprcal3d.cpp(1528 ) : error C2039: \'calculateVertex\' : is not a member of \'CalPhysique\'
..\\..\\include\\csws/cal3d/physique.h(36) : see declaration of \'CalPhysique\'
D:\\C++\\CVS\\CS\\CS\\plugins\\mesh\\sprcal3d\\object\\sprcal3d.cpp(1531) : error C2039: \'calculateVertex\' : is not a member of \'CalPhysique\'
..\\..\\include\\csws/cal3d/physique.h(36) : see declaration of \'CalPhysique\'
D:\\C++\\CVS\\CS\\CS\\plugins\\mesh\\sprcal3d\\object\\sprcal3d.cpp(1934) : error C2039: \'removeAction\' : is not a member of \'CalMixer\'
..\\..\\include\\csws/cal3d/mixer.h(38 ) : see declaration of \'CalMixer\'
Error executing cl.exe.
grpall_newrenderer.lib - 6 error(s), 0 warning(s)
(I have the same problems when I try to build grall_typical.)