Cum sa compilezi Ascent [Windows]

Tutoriale care va vor ajuta sa va creati propriul server WoW

Cum sa compilezi Ascent [Windows]

Postby Duster » 14 Sep 2007, 14:34

Pasul 1: Downloadarea fisierelor necesare

1. Downloadam Microsoft Visual C++ 2005 ( nu 2008 deoarece nu va merge ) - download
2. Downloadam Platform SDK Files - download
3. Downloadam un client SVN ( Tortoise de exemplu ) - download
4. Downloadam sursa de pe svn://emupedia.com/svn/ascent
- cream folderul ascent unde vrem sa downloadam sursa - vezi poza
- click dreapta in interiorul acestuia - TurtoiseSVN - Export
- la URL of repository punem http://projects.emupedia.com/svn/ascent (user: anonymous, no pass)
- la Export directory punem calea unde vrem sa downloadam ( este pusa pe default in directorul unde ne aflam )
- apasam OK

Pasul 2: Configurarea C++ sa foloseasca fisierele Platform SDK

1. Porniti Visual C++
2. Deschidem fisierul ascentVC80 (atentie sa nu deschideti ascentVC70) localizat in /ascent/win
3. Mergem la Tools/Options - vezi poza
4. Mergem la tabul Projects and Solutions localizat pe partea stanga
5. Selectam VC++ Directories - vezi poza
6. Dati click pe iconita care arata ca un nou folder Image si introduceti aici
Code: Select all
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin

7. Mergeti pe partea dreapta unde scrie Show Directories for: selectati Library files - vezi poza
8. Repetati aceeasi lucru cu iconita care arata ca un nou folder Image , dar de data asta introduceti
Code: Select all
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib

9. Mergeti iar pe partea dreapta unde scrie Show Directories for: si selectati Includes
10. Repetati acelasi lucru punand codul
Code: Select all
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include


11. Acum mergeti in folderul C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults
12. In fisierul corewin_express.vsprops ( pe care il puteti deschide cu WorldPad) modifati linia cu AdditionalDependencies= astfel incat sa contina urmatorul cod
Code: Select all
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib" />

13. Salvati fisierul si restartati Visual C++

Pasul 3 - Compilarea Ascent


1. Deschideti ascentVC80
2. Mergeti la Build/Configuration Manager
3. Selectati in loc de Debug Release - vezi poza
4. Inchideti Configuration Manager
5. Mergeti la Build/Build Solution sau apasati F7
6. Astepti sa compileze (o sa dureze ceva), mesajul de final ar trebui sa arate ceva in genul - vezi poza
Code: Select all
========== Build: 6 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========


Pasul 4 - Compilarea Scripturilor


1. Deschideti scripts2005.sln din \ascent\src\scripts
2. Exact ca mai sus, mergeti la Tools/Options - Projects and Solutions - VC++ Directories
3. La Show Directories for: selectati Library files Image si introduceti calea *DriveLetter*:\ascent\bin\release
Code: Select all
E:\ascent\bin\release

4. Faceti acelasi lucru ca la Pasul 3 ( 2-5 )
5. Si de aceasta data ar trebui sa aveti 0 build errors

Cam asta a fost, pentru orice intrebari postati aici :)


Original scris in limba engleza pentru AscentEmu Forums de Vandam
Copyright traducere, adaptare si imbunatatire: DusTeR @ Ultimate.ro
©Ultimate Empire 2006-2007
Last edited by Duster on 06 Dec 2007, 14:50, edited 1 time in total.
May the loot be with you!
User avatar
Duster
[Rocket Scientist]
[Rocket Scientist]
 
Posts: 4223
Joined: 06 Aug 2007, 13:55
Location: Who knows?...

Postby GhOSt » 07 Oct 2007, 12:51

imi apare ceva de genu
========== Build: 1 succeeded, 5 failed, 0 up-to-date, 1 skipped ==========
de ce?
ce sa fac?
pls help :(
GhOSt
[Ultimate User]
[Ultimate User]
 
Posts: 32
Joined: 06 Oct 2007, 16:57

Postby Duster » 07 Oct 2007, 12:57

ai configurat fisierele sa foloseasca Platform SDK?

de asemenea, incearca sa iei o sursa din svn://emupedia.com/svn/ascent/branches/ si nu pe cea din trunk ( deoarece este instabila si sunt mari sanse sa dea erori de compilare )
May the loot be with you!
User avatar
Duster
[Rocket Scientist]
[Rocket Scientist]
 
Posts: 4223
Joined: 06 Aug 2007, 13:55
Location: Who knows?...

Postby GhOSt » 07 Oct 2007, 12:59

iar la mine mai e o faza apar 7 proiecte nu 6 ca la tine
poate o fi de la aia
am urmat Pasul 2
oricum ms mult deocamdata
Last edited by GhOSt on 07 Oct 2007, 13:01, edited 1 time in total.
GhOSt
[Ultimate User]
[Ultimate User]
 
Posts: 32
Joined: 06 Oct 2007, 16:57

Postby Duster » 07 Oct 2007, 13:00

proiectul ala care e skipped, e realmserver si tu n-ai treaba cu el ( e inca in developare ) - just ignore it
May the loot be with you!
User avatar
Duster
[Rocket Scientist]
[Rocket Scientist]
 
Posts: 4223
Joined: 06 Aug 2007, 13:55
Location: Who knows?...

Postby GhOSt » 07 Oct 2007, 13:09

eu iti dau id-u meu de mess si vb acolo? julien_pachaman

Ofer asistenta doar pe forum :)

uite ce-mi zice
1>------ Build started: Project: gamemonkey, Configuration: Release Win32 ------
2>------ Build started: Project: shared, Configuration: Release Win32 ------
2>Compiling...
1>Compiling...
1>gmSystemLib.cpp
2>Log.cpp
1>..\..\dep\src\gm\gmSystemLib.cpp(26) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>Util.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>StackWalker.cpp
2>..\..\src\shared\StackWalker.cpp(26) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
2>MersenneTwister.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>MemoryLeaks.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>CrashHandler.cpp
2>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>ascent_getopt.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>ThreadPool.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\threading\../Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>Mutex.cpp
2>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>SocketWin32.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>SocketOpsWin32.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>SocketMgrWin32.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>Socket.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>WowCrypt.cpp
2>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>Sha1.cpp
2>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>BigNumber.cpp
2>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>Config.cpp
2>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>DBCStores.cpp
2>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>DBC.cpp
2>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\shared\database\../Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>Database.cpp
2>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
2>Generating Code...
1>Build log was saved at "file://c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\win\VC80\gamemonkey___Win32_Release\BuildLog.htm"
1>gamemonkey - 1 error(s), 0 warning(s)
2>Build log was saved at "file://c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\win\VC80\shared___Win32_Release\BuildLog.htm"
2>shared - 20 error(s), 0 warning(s)
3>------ Build started: Project: game, Configuration: Release Win32 ------
4>------ Build started: Project: logonserver, Configuration: Release Win32 ------
4>Compiling...
3>Compiling...
4>LogonStdAfx.cpp
3>StdAfx.cpp
4>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\logonserver\../shared/Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
4>Build log was saved at "file://c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\win\VC80\logonserver___Win32_Release\BuildLog.htm"
4>logonserver - 1 error(s), 0 warning(s)
3>c:\documents and settings\julien\desktop\wow needs\ascent\trunk\src\game\../shared/Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
3>Build log was saved at "file://c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\win\VC80\game___Win32_Release\BuildLog.htm"
3>game - 1 error(s), 0 warning(s)
5>------ Skipped Build: Project: realmserver, Configuration: Release Win32 ------
5>Project not selected to build for this solution configuration
6>------ Build started: Project: ascent, Configuration: Release Win32 ------
6>Compiling...
6>Master.cpp
6>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
6>Main.cpp
6>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
6>CConsole.cpp
6>c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\src\shared\Common.h(215) : fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory
6>Generating Code...
6>Build log was saved at "file://c:\Documents and Settings\Julien\Desktop\Wow needs\ascent\trunk\win\VC80\Release\BuildLog.htm"
6>ascent - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 5 failed, 1 up-to-date, 1 skipped ==========

:(( :(( :((
GhOSt
[Ultimate User]
[Ultimate User]
 
Posts: 32
Joined: 06 Oct 2007, 16:57

Postby Duster » 07 Oct 2007, 13:13

compileaza o versiune stabila, nu din /trunk :)
May the loot be with you!
User avatar
Duster
[Rocket Scientist]
[Rocket Scientist]
 
Posts: 4223
Joined: 06 Aug 2007, 13:55
Location: Who knows?...

Postby GhOSt » 07 Oct 2007, 13:14

SCUZE!!! n-am obs ca ai zis branches. dar pe care? ca sunt 1_5_stable, 1_6_stable,1_7_stable
GhOSt
[Ultimate User]
[Ultimate User]
 
Posts: 32
Joined: 06 Oct 2007, 16:57

Postby Duster » 07 Oct 2007, 13:16

incearca 1_6_stable ( am incercat sa pun 1_7_stable pe server si am avut probleme serioase cu logonserver)

si mai uita-te odata daca la Includes apare si

Code: Select all
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
May the loot be with you!
User avatar
Duster
[Rocket Scientist]
[Rocket Scientist]
 
Posts: 4223
Joined: 06 Aug 2007, 13:55
Location: Who knows?...

Postby GhOSt » 07 Oct 2007, 13:20

"Include files" si apoi C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include? ca sa am facut
n-ar fi mai simplu daca iti dau id-u meu de mess?
GhOSt
[Ultimate User]
[Ultimate User]
 
Posts: 32
Joined: 06 Oct 2007, 16:57

Postby Duster » 07 Oct 2007, 13:28

sa fie asha

Image

nu, e mai bine sa discutam aici pe forum pentru ca vor mai fi si alti useri care vor avea aceste probleme si sa fie deja discutate :)
May the loot be with you!
User avatar
Duster
[Rocket Scientist]
[Rocket Scientist]
 
Posts: 4223
Joined: 06 Aug 2007, 13:55
Location: Who knows?...

Postby GhOSt » 07 Oct 2007, 13:34

ok, ai dreptate in legatura ca sa popstez pe forum.
asa am faut la exact cum ai zis u dar tot nu merge.
imi apare
========== Build: 1 succeeded, 5 failed, 0 up-to-date, 1 skipped ========== :( :((

am folosit-o pe cea: ascent\branches\1_6_stable\win
GhOSt
[Ultimate User]
[Ultimate User]
 
Posts: 32
Joined: 06 Oct 2007, 16:57

Postby Duster » 07 Oct 2007, 13:38

Uita-te daca ai facut acelasi lucru si pentru Executables Files si pentru Library files - pe urma restarteaza VC++

ai modificat fisierul corewin_express.vsprops ?

si mai da copy paste la noile erori :)
May the loot be with you!
User avatar
Duster
[Rocket Scientist]
[Rocket Scientist]
 
Posts: 4223
Joined: 06 Aug 2007, 13:55
Location: Who knows?...

Postby GhOSt » 07 Oct 2007, 13:41

la executbile files ce sa scriu? ca nu era nimik :)
GhOSt
[Ultimate User]
[Ultimate User]
 
Posts: 32
Joined: 06 Oct 2007, 16:57

Postby Duster » 07 Oct 2007, 13:43

executables era prima pe default

Code: Select all
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
May the loot be with you!
User avatar
Duster
[Rocket Scientist]
[Rocket Scientist]
 
Posts: 4223
Joined: 06 Aug 2007, 13:55
Location: Who knows?...

Next

Return to Tutoriale

Who is online

Users browsing this forum: No registered users and 1 guest