Official eMule-Board: I Compiled Emule 0.49b In Vs2005 - Official eMule-Board

Jump to content


Page 1 of 1

I Compiled Emule 0.49b In Vs2005 compile step,this may help somebody.

#1 User is offline   JohnLLLLL 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 14-October 08

Post icon  Posted 14 October 2008 - 07:21 AM

. install VS2005
. install Windows Software Development Kit (SDK) for Windows Server 2008 and .NET Framework 3.5
don't install platform SDK
. you may need to download and install .NET Framework 3.5
. install VS2005 sp1
. install Microsoft Visual Studio 2005 Extensions for Windows Workflow Foundation
. add include and lib dir to VC 2005
. install DirectX SDK
not use DirectX SDK Jun08,it hot have dxtrans.h . i use dxsdk april 2006
make sure include and lib dir is registered in VC 2005


. download eMule0.49b-Sources and extract to D:\eMule0.49b-Sources
. these lib already in the source:
CxImage , id3lib , miniupnpc
. you need download :
crypto++ 5.2.1 (cryptopp521.zip) don't use 5.5.x
libpng (libpng-1.2.32.tar.bz2)
resizablelib(ResizableLib_1_3.zip)
zlib(zlib123.zip)

. 1.make sure all lib source extract
. 2.make sure all lib source output .lib file can be access from emule_vc8.sln(modify linker->input)
. 3.now we must compile all lib use UNICODE and MultiThread(/MTd)
(this correct nafx..lib and uafx..lib already defined link error.)
. 4.resizablelib and emule need "Use MFC in a Static Library", others use "Use Standard Windows Libraries"
. 5.all lib compile in debug mode(/Zi or /ZI), so we can debug
. 6.elete preprocessor WINAPI in zlib 's project option
(this correct miss external function link error.)

. 1. some vc8's .sln is missed,but all can find .dsw file or vc7's .sln .so all vc8's .sln can be got.
. 2. some lib will compile fail due to header file miss.make sure project include is ok.
. 3. make these change:

==crypto51\default.cpp
line 36 : b[0] = (byte) (i >> 8);
line 48 : b[0] = (byte) (i >> 8);
==crypto51\eccrypto.cpp
line 104 :
template <typename T>
inline bool operator()(const EcRecommendedParameters<T>& a, const EcRecommendedParameters<T>& B) {return a.oid < b.oid;}
==crypto51\files.cpp
line 187:
if(inString==NULL) inString=(const byte *)"\0\0\0\0";
==crypto51\fipstest.cpp
line 257:
HMODULE h = GetModuleHandleA(moduleFilename);
line 322:
OutputDebugStringA("In memory integrity check failed. This may be caused by debug breakpoints or DLL relocation.\n");
line 340:
OutputDebugStringA((moduleFilename + (" integrity check failed. Actual MAC is: " + hexMac) + "\n").c_str());
==crypto51\integer.cpp
line 53:
T *AlignedAllocator<T>::allocate(CPP_TYPENAME AlignedAllocator<T>::size_type n, const void *)
==crypto51\integer.h
line 44:
T * allocate(size_type n, const void *);
==crypto51\zdeflate.cpp
line 100:
inline bool operator()(const HuffmanNode &lhs, const unsigned int rhs) const {return lhs.freq < rhs;}
==crypto51\zinflate.cpp
line 17:
inline bool operator()(const CryptoPP::HuffmanDecoder::CodeInfo &lhs, const CryptoPP::HuffmanDecoder::CodeInfo &rhs)
{return lhs.code < rhs.code;}
==id3lib\src\tag_file.cpp
line 54:
fh = ::CreateFileA(path,





.................it works.
somebody may need this.i think.
there may be some mistake,please tell me,if you like.

This post has been edited by JohnLLLLL: 15 October 2008 - 01:33 PM

0

#2 User is offline   Stulle 

  • [Enter Mod] Dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5804
  • Joined: 07-April 04

Posted 14 October 2008 - 08:18 AM

why don't you simply share your complete src package?

i was actually thinking about making an official src package for VS05 based on the morphxt package but if yours is good...
I am an emule-web.de member and fan!

[Imagine there was a sarcasm meter right here!]

No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
0

#3 User is offline   fox88 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 4974
  • Joined: 13-May 07

Posted 14 October 2008 - 05:10 PM

View PostJohnLLLLL, on Oct 14 2008, 11:21 AM, said:

crypto++ 5.2.1 (cryptopp521.zip) don't use 5.5.x

A while ago I compiled 0.48a with crypto Version 5.5.2 (9/24/2007)
Maybe some day I'll repeat it for 0.49b.
0

#4 User is offline   JohnLLLLL 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 14-October 08

Posted 15 October 2008 - 03:45 AM

View PostStulle, on Oct 14 2008, 04:18 PM, said:

why don't you simply share your complete src package?

i was actually thinking about making an official src package for VS05 based on the morphxt package but if yours is good...


I am new to use such tortoseSVN or sourceforge.net, and i am not use linux.
tell me how to share it,thank you so much.
0

#5 User is offline   Stulle 

  • [Enter Mod] Dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5804
  • Joined: 07-April 04

Posted 15 October 2008 - 05:29 AM

just get all the files (excluding things like *.ncb and such) into a .rar or .7z package and put it on a server.
I am an emule-web.de member and fan!

[Imagine there was a sarcasm meter right here!]

No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
0

#6 User is offline   JohnLLLLL 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 14-October 08

Posted 15 October 2008 - 01:20 PM

ok,here is the link.

eMule0.49b-Sources-JohnLLLL.rar
0

#7 User is offline   Stulle 

  • [Enter Mod] Dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5804
  • Joined: 07-April 04

Posted 15 October 2008 - 02:53 PM

just cleaned up the package some more and uploaded it to my space:

eMule0.49b-Sources-JohnLLLL.rar
I am an emule-web.de member and fan!

[Imagine there was a sarcasm meter right here!]

No, there will not be a new version of my mods. No, I do not want your PM. No, I am certain, use the board and quit sending PMs. No, I am not kidding, there will not be a new version of my mods just because of YOU asking for it!
0

#8 User is offline   Sebastian2 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 196
  • Joined: 18-November 02

Posted 30 November 2008 - 06:36 PM

Hello,

hope this thread will get seeable in subforum with a new post...

Im new to VS and have a VS2005 on Win2kSP4.

Im trying only to compile the sourcecode at first...

I extracted the normal source. Then the source from JohnLLLL. Then the lib. After that startet VS and because it wanted to let it made the changes for using with VS2005. No errors all changed only some warnings. Then installed speech sdk and pointed the 2 links to them in VS.

After that choosed Release in Dropdown and then "emule erstellen". It brings errors. I dont know why they come up. Maybe someone can help?

Fehler	20	error A2070: invalid instruction operands	e:\Dokumente und Einstellungen\Administrator\Desktop\eMule0.49b-Sources\zlib\contrib\masmx86\inffas32.asm	647	
Fehler	21	error A2070: invalid instruction operands	e:\Dokumente und Einstellungen\Administrator\Desktop\eMule0.49b-Sources\zlib\contrib\masmx86\inffas32.asm	649	
Fehler	22	error A2070: invalid instruction operands	e:\Dokumente und Einstellungen\Administrator\Desktop\eMule0.49b-Sources\zlib\contrib\masmx86\inffas32.asm	663	
Fehler	23	error A2070: invalid instruction operands	e:\Dokumente und Einstellungen\Administrator\Desktop\eMule0.49b-Sources\zlib\contrib\masmx86\inffas32.asm	720	
Fehler	24	error PRJ0019: Ein Tool hat einen Fehlercode aus folgender Quelle zurückgegeben: "Ein benutzerdefinierter Buildschritt wird ausgeführt."	zlib	
Fehler	8318	fatal error C1083: Datei (Include) kann nicht geöffnet werden: "ddraw.h": No such file or directory	E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\strmif.h	21826	
Fehler	11158	fatal error C1083: Datei (Include) kann nicht geöffnet werden: "upnp.h": No such file or directory	e:\dokumente und einstellungen\administrator\desktop\emule0.49b-sources\srchybrid\UPnPImplWinServ.h	28	
Fehler	11165	fatal error C1083: Datei (Include) kann nicht geöffnet werden: "upnp.h": No such file or directory	e:\dokumente und einstellungen\administrator\desktop\emule0.49b-sources\srchybrid\UPnPImplWinServ.h	28	
Fehler	17901	fatal error C1083: Datei (Include) kann nicht geöffnet werden: "ddraw.h": No such file or directory	E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\strmif.h	21826	
Fehler	18694	fatal error C1083: Datei (Include) kann nicht geöffnet werden: "ddraw.h": No such file or directory	E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\strmif.h	21826	
Fehler	19134	fatal error C1083: Datei (Include) kann nicht geöffnet werden: "ddraw.h": No such file or directory	E:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\strmif.h	21826	



22164 warnings are there too...

Does someone know the problem?

Greetings!
Sebastian

This post has been edited by Sebastian2: 30 November 2008 - 06:50 PM

0

#9 User is offline   fox88 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 4974
  • Joined: 13-May 07

Posted 30 November 2008 - 06:52 PM

Have you tried to read from the beginning before posting?
0

#10 User is offline   Sebastian2 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 196
  • Joined: 18-November 02

Posted 30 November 2008 - 06:58 PM

I have read it but I thought the new source from JohnLLLL will contain all the files that are described in first post isnt it?

Edit: I will try installing newest DirectX SDK...

Greetings!
Sebastian

This post has been edited by Sebastian2: 30 November 2008 - 07:08 PM

0

#11 User is offline   Sebastian2 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 196
  • Joined: 18-November 02

Posted 30 November 2008 - 07:46 PM

Now I installed dxsdk april 2006 but I cant find the lib or include-directory from it. Even dont know where it is installed. It didnt asked me where to install. My Win2k is on Drive E: so where is it?
I searched in E:\programme\directx and e:\programme\gemeinsame dateien\directx doesnt contain the directory lib or include too...

Greetings!
Sebastian
0

#12 User is offline   Sebastian2 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 196
  • Joined: 18-November 02

Posted 30 November 2008 - 09:43 PM

Because of the errors with ddraw I thought it would be a problem with DirectX. I installed the SDK but didnt find the lib-directory or include.

So I took the emulefuturesources from another thread and put the .h-files from directx-directory directly into srchybrid. Now there are more errors (14) but less warnings (1127).

Now this errors occur:

Fehler	1	error A2070: invalid instruction operands	e:\Dokumente und Einstellungen\Administrator\Desktop\eMule0.49b-Sources\zlib\contrib\masmx86\inffas32.asm	647	
Fehler	2	error A2070: invalid instruction operands	e:\Dokumente und Einstellungen\Administrator\Desktop\eMule0.49b-Sources\zlib\contrib\masmx86\inffas32.asm	649	
Fehler	3	error A2070: invalid instruction operands	e:\Dokumente und Einstellungen\Administrator\Desktop\eMule0.49b-Sources\zlib\contrib\masmx86\inffas32.asm	663	
Fehler	4	error A2070: invalid instruction operands	e:\Dokumente und Einstellungen\Administrator\Desktop\eMule0.49b-Sources\zlib\contrib\masmx86\inffas32.asm	720	
Fehler	5	error PRJ0019: Ein Tool hat einen Fehlercode aus folgender Quelle zurückgegeben: "Ein benutzerdefinierter Buildschritt wird ausgeführt."	zlib	
Fehler	615	error C2664: '_wctime32': Konvertierung des Parameters 1 von 'const time_t *' in 'const __time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\wtime.inl	37	
Fehler	616	error C2664: 'errno_t _wctime32_s(wchar_t *,size_t,const __time32_t *)': Konvertierung des Parameters 3 von 'const time_t *' in 'const __time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\wtime.inl	43	
Fehler	619	error C2664: '_ctime32': Konvertierung des Parameters 1 von 'const time_t *' in 'const __time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\time.inl	38	
Fehler	620	error C2664: 'errno_t _ctime32_s(char *,size_t,const __time32_t *)': Konvertierung des Parameters 3 von 'const time_t *' in 'const __time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\time.inl	44	
Fehler	621	error C2664: '_gmtime32': Konvertierung des Parameters 1 von 'const time_t *' in 'const __time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\time.inl	51	
Fehler	622	error C2664: '_gmtime32_s': Konvertierung des Parameters 2 von 'const time_t *' in 'const __time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\time.inl	57	
Fehler	623	error C2664: '_localtime32': Konvertierung des Parameters 1 von 'const time_t *' in 'const __time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\time.inl	64	
Fehler	624	error C2664: '_localtime32_s': Konvertierung des Parameters 2 von 'const time_t *' in 'const __time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\time.inl	69	
Fehler	625	error C2664: '_time32': Konvertierung des Parameters 1 von 'time_t *' in '__time32_t *' nicht möglich	E:\Programme\Microsoft Visual Studio 8\VC\include\time.inl	81	


I really cant say whats the problem. Can someone help?

Greetings!
Sebastian
0

  • Member Options

Page 1 of 1

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