.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 2 SDK
Half-Life 2 SDK For developments focused around the Half-Life 2 engine Half-Life 2

Reply
 
Thread Tools
Compiling the Source SDK
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Compiling the Source SDK - 09-12-2004

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))....


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me

Last edited by stefanhendriks; 09-12-2004 at 16:26..
  
Reply With Quote
Re: Compiling the Source SDK
Old
  (#2)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Compiling the Source SDK - 09-12-2004

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.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me

Last edited by stefanhendriks; 09-12-2004 at 16:54..
  
Reply With Quote
Re: Compiling the Source SDK
Old
  (#3)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Compiling the Source SDK - 09-12-2004

Compiling succesfull with SP5.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Compiling the Source SDK
Old
  (#4)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Compiling the Source SDK - 09-12-2004

Moving successfull to the coding forum.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Compiling the Source SDK
Old
  (#5)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Compiling the Source SDK - 09-12-2004

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



Last edited by @$3.1415rin; 09-12-2004 at 18:53..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com