EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=617)
-   -   dr4 compiling help (https://www.eqemulator.org/forums/showthread.php?t=14100)

axion9 06-02-2004 10:07 PM

dr4 compiling help
 
Can someone please post a quick walkthrough concerning compiling the 5-29-04.zip file for dr4 using visual c++.

I searched and tried using the free compiler but the free trial was out-of-date. I have visual c++ but am unsure of how to compile and what files to compile. It may be that I have to have a project open but am unsure. :?

Any help would be appreciated and any flames would be expected.

Thanks in advance to all/any who help.

Scorpious2k 06-02-2004 10:45 PM

In vc++ you open the workspaces emusharemem.dsw, world.dsw and zone.dsw one at a time.

Go to build and select set active configuratiom. pick release

Then from build do a rebuild all

That will compile all programs for each and link them for you.

Cans 06-04-2004 01:56 PM

Hmm, when I compile emusharemem.dll, i get:

Code:

--------------------Configuration: EMuShareMem - Win32 Release--------------------
Compiling...
NPCTypes.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.h(16) : error C2065: 'CALLBACK_DBLoadNPCTypes' : undeclared identifier
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.h(16) : error C2146: syntax error : missing ')' before identifier 'cbDBLoadNPCTypes'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.h(16) : error C2059: syntax error : ')'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(29) : error C2146: syntax error : missing ')' before identifier 'cbDBLoadNPCTypes'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(29) : error C2059: syntax error : ')'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(29) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(29) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2146: syntax error : missing ')' before identifier 'cbDBLoadNPCTypes'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2086: 'pDLLLoadNPCTypes' : redefinition
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2059: syntax error : ')'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\NPCTypes.cpp(61) : error C2447: missing function header (old-style formal list?)
Spells.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\EMuShareMem\../zone/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Error executing cl.exe.

EMuShareMem.dll - 13 error(s), 0 warning(s)

And when I do zone.exe:

Code:

--------------------Configuration: Zone - Win32 Release--------------------
Compiling...
attack.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
beacon.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
client.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
client_process.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\client_process.cpp(28) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
command.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
doors.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
entity.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
EQEMuError.cpp
faction.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
forage.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
groups.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
hate_list.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
loottables.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Map.cpp
mob.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
MobAI.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
net.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
npc.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Object.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
parser.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
petitions.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
PlayerCorpse.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
spawn2.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
spawngroup.cpp
spells.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
worldserver.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
zone.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
zonedbasync.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\zone\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
classes.cpp
crc32.cpp
database.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\database.cpp(25) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
dbasync.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/dbcore.h(8) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
dbcore.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\dbcore.cpp(5) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
DBMemLeak.cpp
debug.cpp
EMuShareMem.cpp
EQNetwork.cpp
eqtime.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
guilds.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Item.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
md5.cpp
misc.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\misc.cpp(9) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
MiscFunctions.cpp
moremath.cpp
Mutex.cpp
packet_dump.cpp
packet_dump_file.cpp
packet_functions.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\packet_functions.cpp(22) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
races.cpp
serverinfo.cpp
TCPConnection.cpp
timer.cpp
Error executing cl.exe.

Zone.exe - 33 error(s), 0 warning(s)

And World.exe:

Code:

--------------------Configuration: World - Win32 Release--------------------
Compiling...
client.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\client.cpp(9) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
console.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
LoginServer.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
net.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
zoneserver.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\world\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
classes.cpp
crc32.cpp
database.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\database.cpp(25) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
dbasync.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/dbcore.h(8) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
dbcore.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\dbcore.cpp(5) : fatal error C1083: Cannot open include file: 'errmsg.h': No such file or directory
DBMemLeak.cpp
debug.cpp
EMuShareMem.cpp
EQEMuError.cpp
EQNetwork.cpp
eqtime.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
guilds.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Item.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\../common/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
md5.cpp
misc.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\misc.cpp(9) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
MiscFunctions.cpp
moremath.cpp
Mutex.cpp
packet_dump.cpp
packet_dump_file.cpp
packet_functions.cpp
C:\Documents and Settings\Aaron\Desktop\EQEMu-05-29-2004\common\packet_functions.cpp(22) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
races.cpp
serverinfo.cpp
TCPConnection.cpp
timer.cpp
Error executing cl.exe.

World.exe - 13 error(s), 0 warning(s)

I've done the whole include thing, as directed by that tutorial and I've made sure that everything was spelt correctly. Anyone know how to fix this?

Xabob 06-04-2004 04:25 PM

Read Stickys this is not a Support fourm

socalledsin 06-04-2004 05:00 PM

For real, wtf were you thinking asking for help in the help forum? :roll:

m0oni9 06-04-2004 05:04 PM

Remove npctypes.cpp/.h from the emusharemem project!

socalledsin 06-04-2004 06:06 PM

takin out the npc stuff brought it down to just one error

C:\Documents and Settings\So called Sin\Desktop\EQEMu-05-29-2004\EMuShareMem\../zone/../common/database.h(30) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
timer.cpp
debug.cpp
Mutex.cpp
Error executing cl.exe.

what now?

Flame_storm 06-07-2004 06:21 AM

Im getting same errors, about Zlib.h, i have zlib installed!
what is goin wrong?

Derision 06-07-2004 06:34 AM

In VS NET, click Tools/Options, then select Project/VC++ Directories, then select 'Include Files' in the 'Show directories for:' dropdown, then make sure you have the paths to the location of your mysql.h and zlib.h files in there.

Pyrix 06-07-2004 06:36 AM

why do u say this to him he should read the f****************** tutorials

Flame_storm 06-07-2004 10:53 AM

Cuz he is not an asshole.

Why do you post flames?

Derision 06-07-2004 11:13 AM

Quote:

Originally Posted by Pyrix
why do u say this to him he should read the f****************** tutorials

Quote:

Originally Posted by Flame_storm
Cuz he is not an asshole.

Flame_storm has it right, this board has it's share of arrogant, unhelpful people.

Pyrix, if I choose to spend my time to try and help someone, what harm does it do to you ? 10 seconds of your time to skip over the post ? This is a support forum, if you don't have the tolerance to try and help people who are new to EQEmu and aren't as PC savvy as you, don't bother posting.


All times are GMT -4. The time now is 09:26 AM.

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