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

Jump to content


  • (14 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »

Howto Build The Emule Sources (with Vs2002)

#41 User is offline   Tron 

  • Gesegnet sei der Verstand, der zu klein für Zweifel ist.
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 764
  • Joined: 25-December 02

Post icon  Posted 29 September 2003 - 02:07 AM

Greetings... :love:

ÖÖörrrrggggs... :shock:

Coders are lazy...

Can please someone of those, who made the converting too VS successfull use diff and do also zip the resulting patchfile and share them in emulenet ?

needed software:

http://sourceforge.n...ojects/gnuwin32

file diffutils
http://prdownloads.s...in.exe?download


http://prdownloads.s...in.exe?download


parameters (4 mousepusher) :-k

where e:\1 is the path of the adapted source
and e:\2 is the path original source


C:\Programme\GnuWin32\bin\diff -d --context=2 -r e:\1 e:\2 >patch.diff

diff -d -context=2 pathadapted pathoriginal >outfile

and we all can than rebuilt with

cd original
c:\programme\gnuwin32\bin\patch --verbose -ipatch.diff

:+1:

thanks
Tron :respect:

This post has been edited by Tron: 29 September 2003 - 02:13 AM

0

#42 User is offline   Moonlight 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 522
  • Joined: 16-March 03

Posted 29 September 2003 - 04:28 AM

I sort of hate diff/patch... I try to use it to re-apply my tweaks when new mules come out but most hunks fail so I end up having to most of it by hand anyway.

And if coders are so lazy, then the 'proper' diff command line should be:

diff -drc2 originaldir moddeddir > difffile

I personally prefer the unified diff.

Quote

diff -d -context=2 pathadapted pathoriginal >outfile
I'm not 100% certain but I think your directories are swapped here so you'll have to use patch -R to apply your diffs.
0

#43 User is offline   BavarianBlue 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 29-September 03

Posted 29 September 2003 - 03:13 PM

hi,

much things has changed to compile emule30b.
(some more other components as id3/crypto/zlib in 30b necessary,
called libpng...)

can anyone gimme a link for the
complete "ready-to-compile"-sources-zipfile please.
or only the complete compiled libpng folder in a zip.
load it up plz to my ftp in the PUBLIC dir:
ftp://riesenhirni.ath.cx
(anonymous allowed!)

thx for any links/uploads! :)

This post has been edited by BavarianBlue: 29 September 2003 - 04:20 PM

0

#44 User is offline   Tron 

  • Gesegnet sei der Verstand, der zu klein für Zweifel ist.
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 764
  • Joined: 25-December 02

Post icon  Posted 29 September 2003 - 04:42 PM

[quote name='Moonlight' date='Sep 29 2003, 05:28 AM'] And if coders are so lazy, then the 'proper' diff command line should be:

diff -drc2 originaldir moddeddir > difffile

I personally prefer the unified diff.

Quote

diff -d -context=2 pathadapted pathoriginal >outfile

:-k Yupp... that saves a little bit keypressing, but does no changes on the result.

btw... what's about the diff-file now?

I think, I will need some hours to do it self manually, that will waste time... :cry2:
But, on the other side... it will heavyly reduces the copy & paste mods... :-k

And that the diff and patch not work with you right... hmmm... the Free-BSD-brothers and linux-brothers have build their world on it... :love:
0

#45 User is offline   BavarianBlue 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 29-September 03

Posted 29 September 2003 - 06:10 PM

ok, one more try...

what i have:

- crypto51 (ready compiled)
- zlib (ready compiled)
- id3lib (ready compiled)
- emule30b sources (not compiled yet... :cry: )

what i need to go on:

- compiled CxImage folder
- compiled Jigle folder(need this to be compiled?)
- compiled png folder

if anyone can send me this gimme a pm.

thx

This post has been edited by BavarianBlue: 29 September 2003 - 06:11 PM

0

#46 User is offline   Mertsch 

  • Hardcore Downloader
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 491
  • Joined: 14-September 02

Posted 29 September 2003 - 09:47 PM

holy shit I finally got it .... damn why want the devs to prevent anybody without VERY MUCH time / skills not to compile code .... every damn release is harder to get ... one sec let me create ..... a fine .rar .... just a final test ....

seems to work hes compiling .....

linking ... compiling ....

generating code....

yeahaaaa no error no warning .... now just a test if it really works ... executing ...

error error ... need this dll need that dll

wah DAMN NOW S*** MY DI** 30b welcome back 30a
0

#47 User is offline   AgentSmith 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 71
  • Joined: 23-October 02

Posted 29 September 2003 - 09:59 PM

I agree. This fucked up dll and lib and whatever shit sucks so hard that i gotta choke after every new release.
do the devs want to make it less and less opensource?
what the hell is it about to make just one fine file that, once extracted, makes it possible for everybody to do a nice clean selfbuild by just one click?
so afraid about newbs? suckers..
0

#48 User is offline   Moonlight 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 522
  • Joined: 16-March 03

Posted 29 September 2003 - 11:03 PM

Everyting that's in the mule is open-source...

... but the devs are not using all the libraries' standard sources and output folders so some files have to be shuffled around. On top of that, some libraries have a bit of *nix heritage ('make config') that I do not quite know what to do with in Windows. (this is why I ended up using LIB binaries for ID3Lib which actually happened to be only the DLL interface library instead of a statically linkable ID3Lib.)

Well, at least it is free and it eventually works when you put enough time in it.
0

#49 User is offline   k-man 

  • Special K
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 502
  • Joined: 12-May 03

Posted 29 September 2003 - 11:37 PM

if one follows bluecow's howto for 0.30a then all that's left to do for 0.30b is compiling of/and setting the right paths for libpng. which including the download takes merely 10 mins.

so what's the fuzz about?

k-man

@moonie
i dunno what your problem with id3lib is.
mine came with a nice msvc .prj file in the 'libprj' folder.
check it out.
0

#50 User is offline   Moonlight 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 522
  • Joined: 16-March 03

Posted 30 September 2003 - 12:15 AM

@k-man:
Humm, it worked. I must have missed something the first time around... B)
(probably went into the PRJ directory instead of LIBPRJ... they're awfully similar.)

Edit: fexid smoe topys, adedd smoe mroe.

This post has been edited by Moonlight: 30 September 2003 - 12:17 AM

0

#51 User is offline   SlugFiller 

  • The one and only master slug
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6,988
  • Joined: 15-September 02

Posted 30 September 2003 - 12:50 AM

Haveing just struggled against libpng, I have to say it offers the strongest challange of all libs. First, I had to rename the thing to png instead of libpng. Second, I had to change the include directories on cximage(yup, that's a new project for you) adding an extra "..\" before each one. Fortunately enough, png already has the zlib source properly set, so no problem there. Third, it has a bunch of silly build configurations. The ones you're after are "LIB" and "LIB Debug", but the default is "DLL ASM" or something so you have to watch out for that. Also, like with previous libraries, you need to change in the "LIB" and "LIB Debug" configurations for it to use multi-threaded run-time libs instead of single-threaded. Forth, I had to change the output and intermediate directories so it does msvc-styled \Debug \Release builds instead of throwing them in the middle of nowhere. And fifth, since I work in a multi-project solution, I also had to match the configurations of the different projects, so it doesn't go compiling "DLL *" on me.

Long story short, 0.38 will come with ready-to-use *.vcproj files and emule.sln including all projects+configurations+dependancies.
Question is: If I can release those in under a k, couldn't the official developers do the same?

Oh, and don't forget to put "Jigle" inside "src", otherwise it won't compile. Strange for it to come outside in the zip.

This post has been edited by SlugFiller: 30 September 2003 - 12:53 AM

Why haven't you clicked yet?

SlugFiller rule #1: Unsolicited PMs is the second most efficient method to piss me off.
SlugFiller rule #2: The first most efficient method is unsolicited eMails.
SlugFiller rule #3: If it started in a thread, it should end in the same thread.
SlugFiller rule #4: There is absolutely no reason to perform the same discussion twice in parallel, especially if one side is done via PM.
SlugFiller rule #5: Does it say "Group: Moderators" under my name? No? Then stop telling me about who you want to ban! I really don't care! Go bother a moderator.
SlugFiller rule #6: I can understand English, Hebrew, and a bit of Japanese(standard) and Chinese(mandarin), but if you speak to me in anything but English, do expect to be utterly ignored, at best.
0

#52 User is offline   Moonlight 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 522
  • Joined: 16-March 03

Posted 30 September 2003 - 04:12 AM

Having all the VCPROJs and all the config in the SLN would probably spare some trouble... or create more if it is not self-coherent... and also make it possible to eliminate some duplicated libraries. (how many different zLibs are in eMule now? There is at least the one from ID3lib and the one eMule uses for itself...)

BTW, I noticed that the webserver uses the RSA's CPP reference MD5 hash (MD5Sum.cpp/h) instead of CryptoPP's. (well, I have not checked the sources but since the files are there, I presume they are still being used.)

I'll probably do the same... the one project to rule them all.
0

#53 User is offline   SiburNY 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 25-December 02

Post icon  Posted 30 September 2003 - 05:16 AM

Finally, after 3 hours of pain, I compiled Emule 30b with MobileMule :)
Most of the time i spent with cxImage. I downloaded full version, corrected ximage.h - deleted some consts. You just need following consts.
/////////////////////////////////////////////////////////////////////////////
// CxImage supported features
#define CXIMAGE_SUPPORT_TRANSFORMATION 1

#define CXIMAGE_SUPPORT_DECODE	1
#define CXIMAGE_SUPPORT_ENCODE	1  //<vho><T.Peck>
#define	CXIMAGE_SUPPORT_WINDOWS 1

/////////////////////////////////////////////////////////////////////////////
// CxImage supported formats
#define CXIMAGE_SUPPORT_BMP 1
#define CXIMAGE_SUPPORT_PNG 1

/////////////////////////////////////////////////////////////////////////////


Don't forget about Using Standart Windows Libraries and Multi-Threading. After that, I compiled it in separate directory. I compiling, I copied just CXImage folder to emule project's folder and PNG folder to projects folder. Also, I built PNG lib. You need for linking emule.

So, right now I have next folder structure:
  • Crypto51
    • Release
    • Debug

  • id3lib
    • Release
    • Debug

  • png
    • Release
    • Debug

  • src
    • Release
    • Debug
    • cxImage
      • Release
      • Debug

    • Jigle
    • ResizableLib

  • Zlib
    • Release
    • Debug

Me. :)
0

#54 User is offline   Moonlight 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 522
  • Joined: 16-March 03

Posted 30 September 2003 - 07:22 AM

Heh. It took me about an hour to manage to get my first build... spent most of the rest of my time up to now adapting my tweaks to the new version and adding various small extras here and there while expanding my familiarity with the mule's guts...

... well, after running my first build for a couple of hours, I can say this version was very well worth the trouble. The speed gain from compressing search results and source acquisition exchanges are by far the most impressive changes.
0

#55 User is offline   DashHuang 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 19-June 03

Posted 30 September 2003 - 07:26 AM

how can I download the Jigle folder?
0

#56 User is offline   Avi-3k 

  • hebMule [retired] dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,125
  • Joined: 25-June 03

Posted 30 September 2003 - 11:04 AM

k-man, on Sep 30 2003, 02:37 AM, said:

if one follows bluecow's howto for 0.30a then all that's left to do for 0.30b is compiling of/and setting the right paths for libpng. which including the download takes merely 10 mins.

so what's the fuzz about?

k-man

k-man is right....

this time it was pretty easy...
and since i know ppl r havin' problems with
libs names, locations & etc... it took me
less 10 min to make eMule!!!
(in Debug mode, which compiles faster...)

@all
if u c u'r havin' problems with certain libs,
check eMule config to c the proper names, locations & etc...
and check the libs config to c the first names, locations & etc...
it will help u understand where u have mistakes
(and howto fix them)!!

Avi3k
retired developer of hebMule and eMule Skinner...
hebMule site and topic.
hebMule2 unique features: AntiLeech, AntiVirus, Fake Check, ServerFilter, WebSearches, Export Searches, Relative Priority, ModID and much much more...

eMule Skinner is an application to create/edit skins for eMule,
it's multilingual, supports mods, easy-to-use design, integrates to hebMule & Windows and lots more...

code fixes/improvements: #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11 (to check/verify: #12, #13).
0

#57 User is offline   sivka 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 23-November 02

Post icon  Posted 30 September 2003 - 02:36 PM

questions over questions :)

where to download libpng? here?

if here wich version is needed?

sivka :bounce:
AMD 2500+ Barton
1024 MB RAM
WinXP+SP1
T-DSL 768/128
PS.: my english sucks...
UnReal of Germany
0

#58 User is offline   Avi-3k 

  • hebMule [retired] dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,125
  • Joined: 25-June 03

Posted 30 September 2003 - 02:55 PM

sivka, on Sep 30 2003, 05:36 PM, said:

questions over questions :)

where to download libpng? here?

if here wich version is needed?

sivka :bounce:

that's the one...
(if u want, make sure by readin' the "readme.txt" file)
dl 1.2.5!!!

u will need to rename the png folder
(from "pnglib" to "png")
create the libs and move them from
.\png\projects\msvc\win32\...
to
.\png\Release (or) .\png\Debug
and rename them (in both folders)
from "libpng.lib" to "png.lib"!!

Avi3k

This post has been edited by Avi-3k: 30 September 2003 - 02:56 PM

retired developer of hebMule and eMule Skinner...
hebMule site and topic.
hebMule2 unique features: AntiLeech, AntiVirus, Fake Check, ServerFilter, WebSearches, Export Searches, Relative Priority, ModID and much much more...

eMule Skinner is an application to create/edit skins for eMule,
it's multilingual, supports mods, easy-to-use design, integrates to hebMule & Windows and lots more...

code fixes/improvements: #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11 (to check/verify: #12, #13).
0

#59 User is offline   SlugFiller 

  • The one and only master slug
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6,988
  • Joined: 15-September 02

Posted 30 September 2003 - 04:10 PM

or, rather than moving them manually, edit the project preferences for libpng and set "Output" to "..\..\Release\png.lib" for LIB and "..\..\Debug\png.lib" for LIB Debug
Why haven't you clicked yet?

SlugFiller rule #1: Unsolicited PMs is the second most efficient method to piss me off.
SlugFiller rule #2: The first most efficient method is unsolicited eMails.
SlugFiller rule #3: If it started in a thread, it should end in the same thread.
SlugFiller rule #4: There is absolutely no reason to perform the same discussion twice in parallel, especially if one side is done via PM.
SlugFiller rule #5: Does it say "Group: Moderators" under my name? No? Then stop telling me about who you want to ban! I really don't care! Go bother a moderator.
SlugFiller rule #6: I can understand English, Hebrew, and a bit of Japanese(standard) and Chinese(mandarin), but if you speak to me in anything but English, do expect to be utterly ignored, at best.
0

#60 User is offline   Avi-3k 

  • hebMule [retired] dev
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,125
  • Joined: 25-June 03

Posted 30 September 2003 - 04:48 PM

SlugFiller said:

or, rather than moving them manually, edit the project preferences for libpng and set "Output" to "..\..\Release\png.lib" for LIB and "..\..\Debug\png.lib" for LIB Debug

funny...
that's what i did (after i already compiled the lib)...

@all
it's a better solution if u don't wanna mess with
movin', renamin' & etc...

Avi3k
retired developer of hebMule and eMule Skinner...
hebMule site and topic.
hebMule2 unique features: AntiLeech, AntiVirus, Fake Check, ServerFilter, WebSearches, Export Searches, Relative Priority, ModID and much much more...

eMule Skinner is an application to create/edit skins for eMule,
it's multilingual, supports mods, easy-to-use design, integrates to hebMule & Windows and lots more...

code fixes/improvements: #1, #2, #3, #4, #5, #6, #7, #8, #9, #10, #11 (to check/verify: #12, #13).
0

  • Member Options

  • (14 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »

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