.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 2 SDK (http://forums.bots-united.com/forumdisplay.php?f=62)
-   -   Compiling the Source SDK (http://forums.bots-united.com/showthread.php?t=3165)

stefanhendriks 09-12-2004 16:25

Compiling the Source SDK
 
I put this here, because if i put this below, then i guess it will be missed.

Problem:
i cannot compile the sdk. I did not change a freaking thing. This is insane.

Ok, so i did convert the project files, thanks to PMB for his reference to the filebase... Now, the converting went ok. I also found files that the SDK was asking for, so it did not bother about it , and so it compiles... almost...

I am trying to compile the empty_serverplugin project, the only error i get is:
Quote:

serverplugin_empty.cpp
..\..\public\vector.h(245) : error C2485: 'align' : unrecognized extended attribute
..\..\public\vector.h(245) : error C2059: syntax error : '('
Error executing cl.exe.
which is in file Vector.h, the problem is 'align(16)' should be a regocnizable command! So , perhaps my MSVC 6.0 is screwed? or do i HAVE to install an SP of it? I'd rather avoid them... , but if thats the only way i will try.

I have to say, this HLSDK is way more bigger then the HL1SDK, and i get nuts when i look at it. Even an 'empty' project, as they call it, is FREAKING LARGE.

as reference, here is the code snipper
Code:

//-----------------------------------------------------------------------------
// Here's where we add all those lovely SSE optimized routines
//-----------------------------------------------------------------------------
#ifdef _WIN32
class __declspec(align(16)) VectorAligned : public Vector
#elif _LINUX
class __attribute__((aligned(16))) VectorAligned : public Vector
#endif

the error is at line 'class __declspec(align(16))....

stefanhendriks 09-12-2004 16:33

Re: Compiling the Source SDK
 
ok, i think i might know why it does not compile. Simply because my MSVC is to old. I guess i havet o install the service pack...

confirmation found:
SP 5 (NOT 6!!) can compile for SSE, which is needed... so i better download that huge pack.

stefanhendriks 09-12-2004 18:07

Re: Compiling the Source SDK
 
Compiling succesfull with SP5.

Pierre-Marie Baty 09-12-2004 18:41

Re: Compiling the Source SDK
 
Moving successfull to the coding forum.

@$3.1415rin 09-12-2004 18:51

Re: Compiling the Source SDK
 
SSE needs ( in most cases ) aligned data, and obviously HalfLife 2 uses SSE. I guess that can cause a lot of difficulties in the future. I once wrote a little vector class using SSE ( in my application it was of no use since the limiting factor was the memory interface speed ) and this alignement stuff and coherence with existing code wasnt the easiest thing to do. hopefully all this lowlevel stuff will be done by the engine, since otherwise, it's getting scary with linux and windows support together, since this inline asm and SSE intrinsics are not a standard as far as I know


All times are GMT +2. The time now is 13:58.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.