Official eMule-Board: Howto Build The Emule Sources (with Vs2002) - Official eMule-Board

Jump to content


  • (14 Pages)
  • +
  • « First
  • 11
  • 12
  • 13
  • 14

Howto Build The Emule Sources (with Vs2002)

#241 User is offline   zaxxar 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 12
  • Joined: 24-February 03

Posted 18 February 2005 - 02:44 PM

hmm... seems that my libs are really messed up...
strange thing, 44b still compiles and works without any problems...
using my libs an trying to compile 45b under .NET2002 brings up those errors showed in my last post.
using the project from sun-project.de, trying to compile with .NET2002 (no problem, .sln in srchybrid isn't converted already) brings only 2 errors - but won't work
emule error LNK2001: unresolved external symbol "struct _iobuf * __cdecl std::_Fiopen(char const *,int,int)" (?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z)
emule error LNK2001: unresolved external symbol "struct _iobuf * __cdecl std::_Fiopen(char const *,int,int)" (?_Fiopen@std@@YAPAU_iobuf@@PBDHH@Z)
emule fatal error LNK1120: 1 unresolved externals


compiling in .NET2003 works fine... :bounce:

must be one simple setting to succeed in compiling emule with .NET2002 :angry:

thx4help :thumbup:
0

#242 User is offline   odi84 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 24-February 05

Posted 25 February 2005 - 06:04 PM

I had the same problem using VS.NET 2002.
Recompiling Crypto5.1 and ID3Lib should solve the problem!!
0

#243 User is offline   juhuichbins 

  • Member
  • PipPip
  • Group: Members
  • Posts: 23
  • Joined: 05-October 02

Posted 20 March 2005 - 05:53 PM

CiccioBastardo, on Feb 17 2005, 11:58 PM, said:

I had the same problems.

The problem with ResizableLib is solved by simply changing the destination dir of the linker output.

The other problems were solved only by using the libs settings found in the archive found from Uncle_Bob signature.
Had not time to check why, but I presume it's a compiler setting (one of the hundred settings you can mess with ;) ).

I managed to compile correctly ZZUL .45b
View Post


i still have the same problems.
tried both solutions and nearly all problems are fixed except this one:

Quote

emule error LNK2001: Nichtaufgelöstes externes Symbol "protected: void __thiscall CResizableDialog::EnableSaveRestore(unsigned short const *,int)" (?EnableSaveRestore@CResizableDialog@@IAEXPBGH@Z)
emule error LNK2001: Nichtaufgelöstes externes Symbol "protected: void __thiscall CResizableSheet::EnableSaveRestore(unsigned short const *,int,int)" (?EnableSaveRestore@CResizableSheet@@IAEXPBGHH@Z)
emule error LNK2001: Nichtaufgelöstes externes Symbol "public: __thiscall CResizableDialog::CResizableDialog(unsigned short const *,class CWnd *)" (??0CResizableDialog@@QAE@PBGPAVCWnd@@@Z)
emule error LNK2001: Nichtaufgelöstes externes Symbol "public: __thiscall CResizableSheet::CResizableSheet(unsigned short const *,class CWnd *,unsigned int)" (??0CResizableSheet@@QAE@PBGPAVCWnd@@I@Z)


could anyone help me please?
0

#244 User is offline   xnorf 

  • eMule King
  • PipPipPipPipPipPipPip
  • Group: Validating
  • Posts: 4790
  • Joined: 30-December 02

Posted 21 March 2005 - 06:13 PM

I have a problem with building the libz.lib. I downloaded zlib 1.2.2 (it's the only version available on http://www.gzip.org/zlib) and some file are no longer included from bluecows HowTo.

bluecow, on Jun 24 2003, 10:15 AM, said:

Building the zlib library
3. Add the following files to the project,
infblock.c
infcodes.c
infutil.cView Post
My guess is that something doesn't compile correctly. ;) This is the output for the debug solution:

Quote

Ausgabefenster
Kompilieren...
cl: Befehlszeile warning D4025: '/MLd' wird durch '/MTd' außer Kraft gesetzt
zutil.c
uncompr.c
trees.c
inftrees.c
inflate.c
gzio.c
d:\eMule\eMule\srchybrid\zlib\gzio.c(267) : warning C4267: '=': Konvertierung von 'size_t' nach 'uInt', Datenverlust möglich
d:\eMule\eMule\srchybrid\zlib\gzio.c(303) : warning C4267: '=': Konvertierung von 'size_t' nach 'uInt', Datenverlust möglich
d:\eMule\eMule\srchybrid\zlib\gzio.c(440) : warning C4267: '-=': Konvertierung von 'size_t' nach 'uInt', Datenverlust möglich
d:\eMule\eMule\srchybrid\zlib\gzio.c(451) : warning C4267: '=': Konvertierung von 'size_t' nach 'uInt', Datenverlust möglich
deflate.c
crc32.c
compress.c
adler32.c
Code wird generiert...
Bibliothek wird erstellt...
Ergebnisse
Das Build-Protokoll wurde unter "file://d:\eMule\zlib\libz\Debug\BuildLog.htm" gespeichert.
libz - 0 Fehler, 5 Warnung(en)
The libz.lib is created. When I try to compile the emule project, I get the output:

Quote

LINK : fatal error LNK1104: Datei '..\zlib\debug\zlib.lib' kann nicht geöffnet werden
Translation: File zlib\debug\zlib.lib can not be opened. So I renamed libz.lib to zlib.lib, but I get the same output again.
0

#245 User is offline   michelinok 

  • Member
  • PipPip
  • Group: Members
  • Posts: 42
  • Joined: 13-October 03

Post icon  Posted 29 March 2005 - 05:35 PM

I got this error when building emule...

Fatal error LNK1181: cannot open input file '.upnplib\win32project\Release\upnplib.lib'

...i've checked...and the folder doesn't exist....

Where can i find this library?
0

#246 User is offline   Alexander V. Zinin 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 10-April 05

Posted 11 April 2005 - 08:24 AM

Recompile crypto.

drorsdd, on Aug 21 2003, 01:25 AM, said:

hi all, after reading this thread and avi_3k's i still dont know how to overcome this errors:
emule fatal error LNK1120: 1 unresolved externals
emule error LNK2001: unresolved external symbol "struct _iobuf * __cdecl std::_Fiopen(char const *,int)" (?_Fiopen@std@@YAPAU_iobuf@@PBDH@Z)


this errors are after i try to build emue.sln
i did build zlib. sln,cryptlib.sln, id3lib.sln and all came out fine with no errors.
im on VS..NET  7.1
and win2k.

thnks.

edit: figured this out , ignore post!
View Post

0

#247 User is offline   Borschtsch 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 77
  • Joined: 25-November 04

Posted 29 April 2005 - 11:15 AM

Hi, guys.
I am making an eMule Mod for one big Local Net and not so long i have met with some problem.
eMule, compiled with .NET 2002, worked perfectly on Win9x, WinNT systems.
But after some code change (not compiler/linker configuration), on Windows 98 i have got an error when trying to run an application - "Unkown File Format, Please reinstall Application" or something like this (cannot tell exactly, i have a russian version). On WinNT systems .EXE runs OK! Could anybody tell what is going on?

Buggy compiler/linker? Need .NET 2003? or What?

This post has been edited by Borschtsch: 29 April 2005 - 11:20 AM

0

#248 User is offline   Borschtsch 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 77
  • Joined: 25-November 04

Posted 30 April 2005 - 06:13 AM

The problem is easy to solve
http://support.micro...b;EN-US;Q137248
0

#249 User is offline   dani_555 

  • Platinum eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2913
  • Joined: 22-March 04

Posted 01 May 2005 - 03:46 PM

Hello, I've got a problem compiling the cryptolib. I'm using VS2005 beta, here's the build log:

Build Log:
    
Build started: Project: cryptest, Configuration: Debug|Win32


Command Lines:

Creating temporary file "c:\Ordner\eMule\eMule\crypto51\CTDebug\RSP00000C19403552.rsp" with contents
[
/OUT:".\CTDebug/cryptest.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:".\CTDebug\cryptest.exe.intermediate.manifest" /DEBUG /PDB:".\CTDebug/cryptest.pdb" /SUBSYSTEM:CONSOLE /OPT:NOWIN98 /MACHINE:X86 odbc32.lib odbccp32.lib Ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib .\debug\cryptlib.lib

".\ctdebug\adhoc.obj"

".\ctdebug\bench.obj"

".\ctdebug\datatest.obj"

".\ctdebug\regtest.obj"

".\ctdebug\test.obj"

".\ctdebug\validat1.obj"

".\ctdebug\validat2.obj"

".\ctdebug\validat3.obj"

".\CTDebug\cryptest.exe.embed.manifest.res"
]
Creating command line "link.exe @c:\Ordner\eMule\eMule\crypto51\CTDebug\RSP00000C19403552.rsp /NOLOGO /ERRORREPORT:PROMPT"


Output Window:  

Linking...
LINK : fatal error LNK1104: cannot open file '.\debug\cryptlib.lib'


Results:
    
Build log was saved at "file://c:\Ordner\eMule\eMule\crypto51\CTDebug\BuildLog.htm"
cryptest - 1 error(s), 0 warning(s)


How to solve this problem?
0

#250 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 01 May 2005 - 04:57 PM

I don't know if V$ 2005 complies to the same "standards" as 2003 (though I doubt it...) so I can't give a proper answer...
Though, one thing is interesting:

Quote

Creating command line "link.exe @c:\Ordner\eMule\eMule\crypto51\CTDebug\RSP00000C19403552.rsp /NOLOGO /ERRORREPORT:PROMPT"


Output Window: 

Linking...
LINK : fatal error LNK1104: cannot open file '.\debug\cryptlib.lib'

Maybe check the paths?
0

#251 User is offline   gcostanza 

  • Philosopher
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 805
  • Joined: 10-October 04

Posted 01 May 2005 - 05:06 PM

dani_555, on May 1 2005, 05:46 PM, said:

Hello, I've got a problem compiling the cryptolib. I'm using VS2005 beta, here's the build log:
View Post


How did you manage to get it to compile clean before linking in the first place? What did you change? I get too many errors in the templates (using beta2) - perhaps not worth the hassle.

Yep - there're a lot of changes in VS2005. The one that is most notable is scoped variables e.g. you can't use "for (int i=0...)" and then use "i" out of the loop - emule does that a lot.
"Computer Science is no more about computers than astronomy is about telescopes."
-- E. W. Dijkstra
"Computers are useless. They can only give you answers."
-- Pablo Picasso
0

#252 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 01 May 2005 - 05:12 PM

gcostanza, on May 1 2005, 06:06 PM, said:

Yep - there're a lot of changes in VS2005. The one that is most notable is scoped variables e.g. you can't use "for (int i=0...)" and then use "i" out of the loop - emule does that a lot.

Yep, which is imho technically wrong in the language (or what V$ defines as C++) - this should never be possible, but I stumbled over it a lot... (mostly after errors occured, caused by that)
0

#253 User is offline   dani_555 

  • Platinum eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2913
  • Joined: 22-March 04

Posted 01 May 2005 - 05:23 PM

gcostanza, on May 1 2005, 06:06 PM, said:

dani_555, on May 1 2005, 05:46 PM, said:

Hello, I've got a problem compiling the cryptolib. I'm using VS2005 beta, here's the build log:
View Post


How did you manage to get it to compile clean before linking in the first place? What did you change? I get too many errors in the templates (using beta2) - perhaps not worth the hassle.
View Post

I added in pubkey.h:
#include "asn.h" // OID class fix

and changed line 38 in integer.cpp to:
typename AllocatorBase<T>::pointer AlignedAllocator<T>::allocate(size_type n, const void *)

This solutions are by Avi-3k.

I'm using beta 2 too.

This post has been edited by dani_555: 01 May 2005 - 05:24 PM

0

#254 User is offline   gcostanza 

  • Philosopher
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 805
  • Joined: 10-October 04

Posted 01 May 2005 - 05:46 PM

dani_555, on May 1 2005, 07:23 PM, said:

I added in pubkey.h:
#include "asn.h" // OID class fix

and changed line 38 in integer.cpp to:
typename AllocatorBase<T>::pointer AlignedAllocator<T>::allocate(size_type n, const void *)

This solutions are by Avi-3k.
I'm using beta 2 too.
View Post


Yeah, I had those too - still can't get past xutility. Perhaps I need to download clean sourcetree as I'm using a copy of my "regular" one. Weird - I had other "template" problems in DialogMinTrayBtn that I can't get over. Might be some switch or define... Just wanted to let you know that if you manage to accomplish the endevour there are people like me that eagerly await the results (being very lazy to work them out themselves). :+1:

About the scope thingie - it's a switch now (/Zc:forScope) - force conformance in for scope. If only there was a switch to make programmers conformant... :D

This post has been edited by gcostanza: 01 May 2005 - 05:51 PM

"Computer Science is no more about computers than astronomy is about telescopes."
-- E. W. Dijkstra
"Computers are useless. They can only give you answers."
-- Pablo Picasso
0

#255 User is offline   ROT 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 10-June 05

Posted 10 June 2005 - 04:49 PM

is it possible to compile emule with Visual Studio 6 :s
0

#256 User is offline   Zune 

  • Premium Member
  • PipPipPipPipPip
  • Group: Members
  • Posts: 284
  • Joined: 09-May 04

Posted 06 July 2005 - 02:09 PM

Just a small question... The source itself compiles quite fine here. However, linking takes a lot of time (about 5 minutes!) and afterwards I get the following warning:

Finished generating code
LINK : warning LNK4089: all references to 'comdlg32.dll' discarded by /OPT:REF

My question: Does it matter in any ways? With former builds of emule I never had such a warning.

Zune
0

#257 User is offline   Stewe 

  • 海賊
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 799
  • Joined: 22-November 03

Posted 16 August 2005 - 01:33 PM

I got the beta 2 of Visual C++ 2005.

Any clue what to do with:
Build Log Build started: Project: emule, Configuration: Release|Win32
Command Lines emule : warning PRJ0041 : Cannot find missing dependency 'afxres.h' for file 'emule.rc'. Your project may still build, but may continue to appear out of date until this file is found.


emule : warning PRJ0041 : Cannot find missing dependency 'afxres.rc' for file 'emule.rc'. Your project may still build, but may continue to appear out of date until this file is found.

Creating temporary file "d:\emulesrc\srchybrid\release\BAT00000337402304.bat" with contents
[
@echo off

ml.exe /c /Cx /coff /Fo .\release\ "d:\emulesrc\srchybrid\SHA_asm.asm"



if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"

exit 1

:VCEnd
]
Creating command line "d:\emulesrc\srchybrid\release\BAT00000337402304.bat"
Creating temporary file "d:\emulesrc\srchybrid\release\BAT00000437402304.bat" with contents
[
@echo off

ml.exe /c /Cx /coff /Fo .\release\ "d:\emulesrc\srchybrid\MD4_asm.asm"



if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"

exit 1

:VCEnd
]
Creating command line "d:\emulesrc\srchybrid\release\BAT00000437402304.bat"
Output Window Performing Custom Build Step
'ml.exe' is not recognized as an internal or external command,
operable program or batch file.
Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
Results Build log was saved at "file://d:\emulesrc\srchybrid\release\BuildLog.htm"
emule - 1 error(s), 0 warning(s)

Fixed that, but it appears like 2005 beta does not include MFC...

This post has been edited by Stewe: 16 August 2005 - 01:44 PM

Increase the size of your download by 50%, <a href='http://www.emule-project.net/home/perl/help.cgi?l=1' target='_blank'>RTFM!</a>
0

#258 User is offline   Stewe 

  • 海賊
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 799
  • Joined: 22-November 03

Posted 17 August 2005 - 02:57 PM

I have no clue why, but I compiled the thing. Of course that doesn't mean it's gonna link correctly....

Quote

emule error LNK2005: "public: void __thiscall CxImage::SetTransIndex(long)" (?SetTransIndex@CxImage@@QAEXJ@Z) already defined in TitleMenu.obj
emule error LNK2005: "public: void * __thiscall CxImage::GetDIB(void)const " (?GetDIB@CxImage@@QBEPAXXZ) already defined in FrameGrabThread.obj
emule error LNK2005: "public: unsigned long __thiscall CxImage::GetHeight(void)const " (?GetHeight@CxImage@@QBEKXZ) already defined in FrameGrabThread.obj
emule error LNK2005: "public: unsigned long __thiscall CxImage::GetWidth(void)const " (?GetWidth@CxImage@@QBEKXZ) already defined in FrameGrabThread.obj


Etc etc etc....
I HATE this error.
For reference I'm using C++ .NET 2003 Enterprise
Increase the size of your download by 50%, <a href='http://www.emule-project.net/home/perl/help.cgi?l=1' target='_blank'>RTFM!</a>
0

#259 User is offline   eryen 

  • Member
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: 28-March 05

Posted 30 August 2005 - 07:42 PM

This is the best source kit for eMule.
Ready2Compile sources
Tnx to iONiX.AiRu

Contains
Lib Version
Crypto++ 5.2.1
CxImage 5.99c
id3lib 3.8.3
libpng 1.2.8
ResizableLib 1.3
zlib 1.2.2

I updated it
Update: zlib 1.2.2=>1.2.3
Add: SpechToText
Updated Ready2Compile Sources (rapidshare.de)

If u use this source pack u will never get any error.
Just extract eMule sources to directory \srchybrid
or manualy add emule project :P

This post has been edited by eryen: 30 August 2005 - 11:37 PM

0

#260 User is offline   raccoon.i 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 27-January 05

Posted 25 March 2006 - 08:45 PM

juhuichbins, on Mar 20 2005, 01:53 PM, said:

i still have the same problems.
tried both solutions and nearly all problems are fixed except this one:

Quote

emule error LNK2001: Nichtaufgelöstes externes Symbol "protected: void __thiscall CResizableDialog::EnableSaveRestore(unsigned short const *,int)" (?EnableSaveRestore@CResizableDialog@@IAEXPBGH@Z)
emule error LNK2001: Nichtaufgelöstes externes Symbol "protected: void __thiscall CResizableSheet::EnableSaveRestore(unsigned short const *,int,int)" (?EnableSaveRestore@CResizableSheet@@IAEXPBGHH@Z)
emule error LNK2001: Nichtaufgelöstes externes Symbol "public: __thiscall CResizableDialog::CResizableDialog(unsigned short const *,class CWnd *)" (??0CResizableDialog@@QAE@PBGPAVCWnd@@@Z)
emule error LNK2001: Nichtaufgelöstes externes Symbol "public: __thiscall CResizableSheet::CResizableSheet(unsigned short const *,class CWnd *,unsigned int)" (??0CResizableSheet@@QAE@PBGPAVCWnd@@I@Z)


could anyone help me please?
View Post


Realize this is a little after the fact, but I only recently took a stab at building eMule myself (using VS.NET 2002). The problem above with EnableSaveRestore has to do with how you build ResizableLib. Specifically:

In Project | Properties | General, make sure 'Character Set' is set to 'Use Unicode Character Set'.
In Project | Properties | C/C++ | Language, make sure 'Treat wchar_t as Built-in Type' is set to 'Yes (/Zc:wchar_t)'.

Hopefully this will help someone down the line.
0

  • Member Options

  • (14 Pages)
  • +
  • « First
  • 11
  • 12
  • 13
  • 14

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users