Raised This Month: $51 Target: $400
 12% 

need installation help with visual c++ 2008


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 07-23-2008 , 11:22   need installation help with visual c++ 2008
Reply With Quote #1

hello,

very noob question ... but ...

i have problems to get the sample plugin compiled ... i am noob with visual c++ 2008 and have no idea which files i need and how i have to put them together ...

i copied the folder from...
svn://svn.alliedmods.net/svnroot/sourcemm/tags/sourcemm-1.4.3

into:
C:\sourcemm_1.4

and i want to compile the
C:\sourcemm_1.4\sourcemm\sample_mm

I open visual c++ ... then the project file from the sample_mm ... right click on it "create" ... and then it says:

Code:
1>Kompilieren...
1>cvars.cpp
1>c:\sourcemm_1.4\sourcemm\ismmplugin.h(19) : fatal error C1083: Datei (Include) kann nicht geöffnet werden: "interface.h": No such file or directory
1>SamplePlugin.cpp
1>c:\sourcemm_1.4\sourcemm\ismmplugin.h(19) : fatal error C1083: Datei (Include) kann nicht geöffnet werden: "interface.h": No such file or directory
1>Code wird generiert...
1>Das Buildprotokoll wurde unter "file://c:\sourcemm_1.4\sourcemm\sample_mm\msvc8\Debug\BuildLog.htm" gespeichert.
1>sample_mm - 2 Fehler, 0 Warnung(en)
what do i have to do? :-/
i think i have to add the SDK files from valve? which files exactly? and how do i add it?

thanks a lot for every help
andi
__________________
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
Xtrm2Matt
Member
Join Date: Nov 2004
Location: England, UK
Old 07-26-2008 , 08:06   Re: need installation help with visual c++ 2008
Reply With Quote #2

You need the HL2SDK and set up the environment variables in your PC. I downloaded it from http://www.sourcemm.net/?go=downloads.

Extract it somewhere, then set up the following environment variables (My Computer -> Properties -> Advanced -> Environment Variables):

HL2SDK - G:\HL2SDK\hl2sdk\
HL2SDKOB - G:\HL2SDK\hl2sdk-ob\

Also make sure you've added the SourceMM variables:

SOURCEMM14 - G:\HL2SDK\sourcemm-1.4.4
SOURCEMM16 - G:\HL2SDK\sourcemm-1.6.1

Obviously, change the path to each depending on where you put them on your own system. Restart MSVS and it should compile fine.
Xtrm2Matt is offline
Tauphi
SourceMod Donor
Join Date: Sep 2004
Location: Germany
Old 09-23-2008 , 00:39   Re: need installation help with visual c++ 2008
Reply With Quote #3

I begin to hate C++ ...

i set the environment variables in windows to the following:
HL2SDK - c:\sourcemm\hl2sdk\
HL2SDKOB - c:\sourcemm\hl2sdk-ob\
SOURCEMM14 - C:\sourcemm\tags\sourcemm-1.4.4
SOURCEMM16 - C:\sourcemm\tags\sourcemm-1.6.2

then i go into this folder:
C:\sourcemm\tags\sourcemm-1.6.2\sample_mm\msvc8

and doubleclick this file:
sample_mm.sln

then my visual studio 2008 starts ... and on the left side i see the project "sample plugin" ... i make a right click on it ... click the first "create" or whatever its called in the english version to compile it ...

and i get this
Code:
1>------ Erstellen gestartet: Projekt: sample plugin, Konfiguration: Debug - Orange Box Win32 ------
1>Kompilieren...
1>sample_mm.cpp
1>c:\sourcemm\hl2sdk-ob\public\tier0\dbg.h(569) : error C3861: "_vsnprintf": Bezeichner wurde nicht gefunden.
1>Das Buildprotokoll wurde unter "file://c:\sourcemm\tags\sourcemm-1.6.2\sample_mm\msvc8\Debug - Orange Box\BuildLog.htm" gespeichert.
1>sample plugin - 1 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
wtf ?
what i am doing wrong ?
__________________
Tauphi is offline
Send a message via ICQ to Tauphi Send a message via Skype™ to Tauphi
Reply



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


All times are GMT -4. The time now is 05:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode