chrisp_21 Posted August 21, 2003 Report Share Posted August 21, 2003 Well I finallly entered the 3D age of computing and so I cannow effectively start coding. I just have one issue with compiling now.. A couple of months ago I checked out xenocide and got itto properly compile. Unfotunately I couldn't run the exe becauseI didn't have an AGP2 or 4 port. I switched MBs and now I'm set up. I checked out the source again and compiled and...lots of errors of course! It seemed that the source was lookingfor include files in different directories. So I reorganized everythingand it MOSTLY compiles. I seem to have one big problem though.The source in main.cpp is looking for <utility/common.h> and wellfor some reason I don't have it. I did a search for common.h onmy machine and talk about looking for a needle in a haystack! Idon't seem to have the correct common.h file. I only have a filecalled fwcommon.h in my bcb6 directory. Is there anyway I canget this file? If someone could post it I could just stick it in myinclude directory. regards,chrisp Link to comment Share on other sites More sharing options...
mamutas Posted August 22, 2003 Report Share Posted August 22, 2003 What devpack did you use for compilation?Here is the official one, which was thoroughly tested. Try to use it. Link to comment Share on other sites More sharing options...
chrisp_21 Posted August 22, 2003 Author Report Share Posted August 22, 2003 That is the devpack I'm using. I went ahead and downloaded itand tried it again, but it still didn't work. I think I know what the problem is though. I had a major hard drive incident a coupleof months ago when I was backing up everything on my C driveto another drive. I used the cp command in cygwin to do thisand well.. it completely FUBARed my HD. All source and copied files got corrupted (or just disappeared) that got "copied"before I realized something was wrong and cancelled the copy(which ment shutting down the computer - probably didn't help).Amazingly scandisk was able to repair the filesystem, but I losta lot. Go figure.. MS saves the day and cygwin bites a nutsack. I was able to recover some of the lost data, but not all of it.It seems that is just another thing that's turned up missing. I seem to be missing a big chuck of the system include files, but BCB6 seems to be running fine. Some of the files that I found and reorganized are in the devpack (and in my bcb6 include directory), but not common.h. I'm willing to bet that a lot of what common.h includes is missing as well... I guess I'll try and reinstall BCB6, although I'm a little reluctantto do that... We'll see what happens. Link to comment Share on other sites More sharing options...
red knight Posted August 23, 2003 Report Share Posted August 23, 2003 First of all download the code again, the old code from the CVS wont work... GreetingsRed Knight (Still Away, just found some time to log on) Link to comment Share on other sites More sharing options...
chrisp_21 Posted August 24, 2003 Author Report Share Posted August 24, 2003 Yeah I downloaded the new code.. same problem. Link to comment Share on other sites More sharing options...
red knight Posted August 24, 2003 Report Share Posted August 24, 2003 Did you defined the Environment Variable Named XENOCIDE?? (Read the devpack instructions on the sticky post)... GreetingsRed Knight Link to comment Share on other sites More sharing options...
chrisp_21 Posted August 25, 2003 Author Report Share Posted August 25, 2003 Yeah I declared the Xenocide env variable. BCB is finding all of the filesin the devpack. Main.cpp includes: #include "./kernel/win32/w32directx.h" Inside of w32directx.h is included: #include <thirdparty/directx/dinput.h>#include <utility/common.h> dinput.h I found in a different directory, and was able to fix.common.h isn't on my system whatsoever. At least not a common.h filethat relates to Xenocide or BCB. I found a file called fwcommon.h in BCBand tried substituting that, but then I was missing 10 of the .h files thatit was including. I get the impression that it may be identical to common.h.That's when I started suspecting that maybe many of the header files got wiped out from my hard drive "incident." I lost about 1/3 of everything onmy disk, so it wouldn't surprise me. Link to comment Share on other sites More sharing options...
mamutas Posted August 25, 2003 Report Share Posted August 25, 2003 (edited) Have you tried to reinstall BCB? EDIT: I just checked the CVS online. There is a common.h file there: http://cvs.sourceforge.net/cgi-bin/viewcvs...tility/common.hDid you get all 4 subdirectories extracted as they are listed here: http://cvs.sourceforge.net/cgi-bin/viewcvs...s.cgi/xenocide/? The all need to go in you %XENOCIDE% directory. It is also where the devpack must go. Edited August 25, 2003 by mamutas Link to comment Share on other sites More sharing options...
chrisp_21 Posted August 26, 2003 Author Report Share Posted August 26, 2003 (edited) Ah no I didn't check out the utility module. I created the directory and put everything in there that Xeno was looking for. When I was checking outit didn't look important, and I didn't think about it later. :/ I must have beenless stupid :freak: the first time and checked it out. I now have common.h andXenocide is happily compiling.. and compiling. It's still compiling now, butI doubt I will get any errors. My poor Celeron 600 may have to chugfor awhile to get through it. THANKS! EDIT: It completely compiled. Edited August 26, 2003 by chrisp_21 Link to comment Share on other sites More sharing options...
mamutas Posted August 26, 2003 Report Share Posted August 26, 2003 Link to comment Share on other sites More sharing options...
chrisp_21 Posted August 26, 2003 Author Report Share Posted August 26, 2003 I seem to have another problem. When I try to build an exe,I keep getting the following error: VCL60.#00 contains invalid OMF record type 0x0f I haven't seen this before.. but then again I've never worked on suchlarge projects in windows before. Any idea what it means?Everything seems OK other than that. Link to comment Share on other sites More sharing options...
red knight Posted August 26, 2003 Report Share Posted August 26, 2003 (edited) I never saw that message before, however gonna explain you what it means... it is saying that VCL60.#00 (that could be the precompiled header of the VCL -Visual Component Library-) binary is corrupted cause OMF is the file format of binary object files (pre linked stuff)... So you should consider reinstall the compiler, but first try to locate that file and delete it, cause that file autogenerates on a build... Another thing to do is try to do a BUILD ALL instead of just MAKE... Hope that helps GreetingsRed Knight Edited August 26, 2003 by red knight Link to comment Share on other sites More sharing options...
chrisp_21 Posted August 29, 2003 Author Report Share Posted August 29, 2003 OK. I am finally up and running at 100%. Thanks RK and Mamutas for the help. I did have a problem with a file missingfrom the geoscape.exe section of the examples.bpg file that came w/ the devpack.It was missing videooptions.cpp. When trying to link it gives an error saying itcan't "export" the XVideoOptionsUI contructor or destroctor. I finally figured outthe file was missing and added it. Now everything builds and runs fine. Whoeverhas the devpack might want to add that file though, and save future recruits somepain. So I can start slinging code at will. Just let me know where to start. Link to comment Share on other sites More sharing options...
mamutas Posted August 29, 2003 Report Share Posted August 29, 2003 Sorry, that was my fault. The code in CVS is a bit ahead of the devpack. Meaning, I have added few files (one being videooptions.cpp and .h) to the CVS, but noone has updated devpack. Actually, I am avoiding to do that, since it might cause more confusion then several people update devpack with their own projects (RK was handling it already, so I decided not to interfere). As for you assignment, then I have couple things in mind. First is to work on XNet (Ufopaedia) research tree loader. I imagine an XML file which describes categories and topics and points to the resource on filesystem. We would need a class to load that file, parse it and manage the data in the memory. XNet UI will communicate with that class. Second is to work on options management class. We have a class which loads configuration from file. We need to extend it to save configuration back and then to add more methods. That is from me so far. RK might have something else. You choose. Link to comment Share on other sites More sharing options...
red knight Posted August 29, 2003 Report Share Posted August 29, 2003 (edited) I think that is important so if you want to take it, just say so, if not we can find another thing that you would like to do... By the way, I had updated the devpack at home but didnt upload it yet cause I am working in a restructuration of the engine so the devpack will be a little unstable for a while... will do that when commit. Mamutas, Can you add it to the current devpack? Tell micah to give you access to my directory. So we should add a Dev's FAQ Question (some doc guy please can you handle this?) like this: The compiler sais some methods are missing when linking (not compiling). What is happening? Answer: The devpack may be outdated and some files that are at the source are missing from the build project, just find where are those methods implemented and add the .cpp file into the project. GreetingsRed Knight Edited August 29, 2003 by red knight Link to comment Share on other sites More sharing options...
mamutas Posted August 31, 2003 Report Share Posted August 31, 2003 I have split that thread and moved programming related part here. Link to comment Share on other sites More sharing options...
Recommended Posts