Compile Problem Win32 VS2005

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
Post Reply
Arkaiden
Posts: 30
Joined: Tue Sep 04, 2007 11:40 am

Compile Problem Win32 VS2005

Post by Arkaiden » Wed Dec 10, 2008 5:44 am

Hi,
following this guide : http://eq2emulator.net/forums/viewtopic.php?t=131 I tried to compile the sources on my own.
But when I compile the source, I get the following Error:
fatal error LNK1181: Eingabedatei "zlib.lib" kann nicht geöffnet werden. World
in english:
error LNK1181: include file zlib.lib could not be opened.
The file exists, and I configured Visual Studio, for the right directory.
I think the file is found, because I don't get an error telling me zlib.lib could not be found or sth similar.
Any help is apreciated =)

Arkaiden
Posts: 30
Joined: Tue Sep 04, 2007 11:40 am

Post by Arkaiden » Tue Dec 16, 2008 2:53 am

Noone here, who can help me?
Could really need some help =)

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Tue Dec 16, 2008 12:33 pm

No one answered because you must not have followed the Server compile instructions where it clearly states you need to include libraries and includes in your environment, or you would not have that problem.
Re-read the compile guide, follow it step by step. It should not have changed in years.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Tue Dec 16, 2008 4:10 pm

You probably didn't add the correct directory for library. You got the include directory added, but you need the library directory to be correct as well.

Arkaiden
Posts: 30
Joined: Tue Sep 04, 2007 11:40 am

Post by Arkaiden » Tue Dec 16, 2008 11:53 pm

I read the guide 7 times or even more.
I've added all directories to Visual Studio.
The include path is correct and after rechecking I can say the library directory is also correct.
But the Error message is still there.
Of course I can redo everything from the guide but I don't think the 8th try will fix my problem.

Arkaiden
Posts: 30
Joined: Tue Sep 04, 2007 11:40 am

Post by Arkaiden » Wed Dec 17, 2008 12:08 am

Ok sth I've seen reading the compile guides.
http://eq2emulator.net/forums/viewtopic.php?t=131
talks about "reference files" in Point 7.
http://eq2emulator.net/forums/viewtopic.php?t=100
talks about "library files" in Point 4.
these guides talk about 2 different configurations so
which one is the actual working one? =)
My Error is gone using the second guide(the older one).
but that gives me other Errors =)

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Post by Scatman » Wed Dec 17, 2008 12:13 am

You need to link both library files and include files, not just one or the other. So between both, you need to point Visual Studio to four different directories, 2 library directories (1 from MySql and 1 from zlib) and 2 include directories (1 from MySql and 1 from zlib)
What other errors are you receiving?

Arkaiden
Posts: 30
Joined: Tue Sep 04, 2007 11:40 am

Post by Arkaiden » Wed Dec 17, 2008 12:33 am

I added both library files and include files!!
my include files:
http://85.88.7.31/VS2005_eq2_include.jpg
my library files:
http://85.88.7.31/VS2005_eq2_library.jpg
my Error:
http://85.88.7.31/VS2005_eq2_error.jpg
=)
pictures say more than thousand words!
PS: I'm using the latest svn, Revision 179

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Post by Jabantiz » Wed Dec 17, 2008 1:56 am

What about reference files. In visual studio 2008 I have another mysql/lib/opt under reference files and it compiles fine for me.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Wed Dec 17, 2008 2:00 am

Arkaiden wrote:pictures say more than thousand words!
More like a thousand German words... :shock:

Arkaiden
Posts: 30
Joined: Tue Sep 04, 2007 11:40 am

Post by Arkaiden » Wed Dec 17, 2008 2:59 am

@Jabantiz
added this folder to the reference files, but the errors are the same as before.
@John Adams
Ok, it's german =))
But the LNK Errors are multilingual as far as I know.

Arkaiden
Posts: 30
Joined: Tue Sep 04, 2007 11:40 am

Post by Arkaiden » Wed Dec 17, 2008 4:19 am

ok, I got it working.
The Solution compiles fine if I am using the Release flag, it still doesn't work with debug.
Kind of wierd but for now I can live with that.
Thanks to all that tried to help me!!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests