Page 1 of 1

Compile Problem Win32 VS2005

Posted: Wed Dec 10, 2008 5:44 am
by Arkaiden
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 =)

Posted: Tue Dec 16, 2008 2:53 am
by Arkaiden
Noone here, who can help me?
Could really need some help =)

Posted: Tue Dec 16, 2008 12:33 pm
by John Adams
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.

Posted: Tue Dec 16, 2008 4:10 pm
by LethalEncounter
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.

Posted: Tue Dec 16, 2008 11:53 pm
by Arkaiden
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.

Posted: Wed Dec 17, 2008 12:08 am
by Arkaiden
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 =)

Posted: Wed Dec 17, 2008 12:13 am
by Scatman
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?

Posted: Wed Dec 17, 2008 12:33 am
by Arkaiden
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

Posted: Wed Dec 17, 2008 1:56 am
by Jabantiz
What about reference files. In visual studio 2008 I have another mysql/lib/opt under reference files and it compiles fine for me.

Posted: Wed Dec 17, 2008 2:00 am
by John Adams
Arkaiden wrote:pictures say more than thousand words!
More like a thousand German words... :shock:

Posted: Wed Dec 17, 2008 2:59 am
by Arkaiden
@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.

Posted: Wed Dec 17, 2008 4:19 am
by Arkaiden
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!!