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

Jump to content


  • (14 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »

Howto Build The Emule Sources (with Vs2002)

#81 User is offline   cyrex2001 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 148
  • Joined: 28-December 02

Posted 02 October 2003 - 10:50 AM

okay, i will try it tonight out!
thank you for help!
regards, cyrex2001.
user posted image
0

#82 User is offline   cyrex2001 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 148
  • Joined: 28-December 02

Posted 02 October 2003 - 09:43 PM

@alls,
i have the out found!
the zlib in the png-project was on singelthreaded!
thank everyone for the help! :respect:
cyrex2001
user posted image
0

#83 User is offline   SlugFiller 

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

Posted 02 October 2003 - 11:48 PM

Strange that using my project files didn't help, pnglib should have used the same zlib as the rest of them. I'll have to recheck it later.
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

#84 User is offline   k-man 

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

Posted 03 October 2003 - 02:42 AM

little side note on the libz/zlib stuff.
it's not needed for id3lib and libpng.
just remove it from the projects, delete the zlib files included in those projects and make sure the #include "..\zlib.h" thingies point to the .h of the zlib emule already provides (erm, used to provide. well, point it to the zlib dir with zlib.h in it.).
there's absolutely no need to compile that thing 3 times.
it's really enough to have 1 .h and 1 lib. everything else is just unnecessary compile time and lost hd space.

drunk,

k-man

This post has been edited by k-man: 03 October 2003 - 02:47 AM

0

#85 User is offline   rafix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 76
  • Joined: 28-August 03

Posted 04 October 2003 - 03:50 PM

Hi

I have built crypto51, zlib, id3lib, png and I have all the .lib
Also I moved jigle folder into src folder.

So I opened emule.sln Visual Studio Solution :I have no message of errors then I selected "release" and "build"

But I have an error during the compilation:

Quote

emule fatal error LNK1181: cannot open input file '.\CxImage\Release\cximage.lib'


It's maybe normal because I do not have anything make with
CxImage folder.

Is anybody can help me please (sorry for my english).
0

#86 User is offline   Avi-3k 

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

Posted 04 October 2003 - 04:55 PM

@rafix
within eMule's src folder there's the CxImage lib...
compile it (make sure it knows the right location of png lib)!!

if everything is ok... compile eMule!

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

#87 User is offline   rafix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 76
  • Joined: 28-August 03

Posted 04 October 2003 - 05:50 PM

Thks Avi-3k for CxImage it's ok.

But I have again 1 error and 1 warning at the end of the compilation and more precisely during the "Generating code".

Here an extract of the end of my "Build log":

Quote

AsyncProxySocketLayer.cpp
ArchiveRecovery.cpp
Compiling...
Scanner.cpp
Compiling resources...
Linking...
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
Generating code
Finished generating code
libz.lib(crc32.obj) : fatal error LNK1275: /LTCG invalid with clr modules
Results
Build log was saved at "file://c:\Documents and Settings\......\src\Release\BuildLog.htm"
emule - 1 error(s), 1 warning(s)


What I had to do to resolve this problem ? Thks.
0

#88 User is offline   Avi-3k 

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

Posted 04 October 2003 - 06:01 PM

@rafix
did u modify the .sln/.vcproj files?
do u have a celeron processor?

cuz i had some1 in my forum with the same problem (LNK1275)
and he wasn't able to resolve it....

try usin' msdn to find the problem and its solution...
also, look in the project's properties via VS.Net, look for "/LTCG"
and remove it (usually visible in command line property)!

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

#89 User is offline   rafix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 76
  • Joined: 28-August 03

Posted 04 October 2003 - 08:00 PM

I use VS 2003 and I rename emule.sln et emule.vcproj:I put "Format Version 8.00"
and "Version=7.10".

My processor is AMD.

How do you do to remove "/LTCG" in the project's properties "Linker"/"Command line" ?
0

#90 User is offline   Avi-3k 

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

Posted 04 October 2003 - 08:45 PM

rafix, on Oct 4 2003, 10:00 PM, said:

How do you do to remove "/LTCG" in the project's properties "Linker"/"Command line" ?

i don't know since the guy sent me his src
and i was able to compile it successfully!!!

i suggest u try findin' the property deep
within the project's properties (and use the msdn...)
maybe u'll b able to find the needed solution....
(or pray some1 who had & fixed this problem
will answer u soon...)

btw, r u able to compile previous eMule srcs?
(v0.28 and above, since u have VS.Net 2003)

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

#91 User is offline   rafix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 76
  • Joined: 28-August 03

Posted 05 October 2003 - 12:54 AM

0.30b compiled :D

I have just change my zlib folder and compilation was ok.Big thks 2 Magicseb25 for this folder.
Thks for your help Avi-3k.

See you

This post has been edited by rafix: 05 October 2003 - 12:55 AM

0

#92 User is offline   Avi-3k 

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

Posted 05 October 2003 - 07:37 AM

rafix, on Oct 5 2003, 02:54 AM, said:

0.30b compiled :D
I have just change my zlib folder and compilation was ok.

how did u change the zlib folder exactly?

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

#93 User is offline   rafix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 76
  • Joined: 28-August 03

Posted 05 October 2003 - 10:45 AM

Quote

how did u change the zlib folder exactly?


It is just somebody who gentillement gave me it his nothing else.
0

#94 User is offline   thanhd 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 03-February 03

Posted 07 October 2003 - 11:13 AM

After many hours trying to get all the lib to compile I am stuck (again) :angry:

emule fatal error LNK1169: one or more multiply defined symbols found
emule error LNK2005: "public: void __thiscall std::_Mutex::_Lock(void)" (?_Lock@_Mutex@std@@QAEXXZ) already defined in id3lib.lib(tag_file.obj)
emule error LNK2005: "public: void __thiscall std::_Mutex::_Unlock(void)" (?_Unlock@_Mutex@std@@QAEXXZ) already defined in id3lib.lib(tag_file.obj)
emule error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in id3lib.lib(utils.obj)
emule error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in id3lib.lib(utils.obj)
emule error LNK2005: __C_Exit_Done already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __C_Termination_Done already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __exitflag already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __wpgmptr already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __pgmptr already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: ___winitenv already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __wenviron already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: ___initenv already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __environ already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: ___wargv already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: ___argv already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: ___argc already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __winminor already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __winmajor already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __winver already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __osver already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __osplatform already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: __umaskval already defined in LIBC.lib(crt0dat.obj)
emule error LNK2005: ___crtExitProcess already defined in libcmt.lib(crt0dat.obj)
emule error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj)
emule error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)
emule error LNK2005: __exit already defined in libcmt.lib(crt0dat.obj)
emule error LNK2005: __cexit already defined in libcmt.lib(crt0dat.obj)
emule error LNK2005: __c_exit already defined in libcmt.lib(crt0dat.obj)
emule warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library


I have no idea which library is the problem or is it the actual emule project :cry2:

Anyone?
0

#95 User is offline   SlugFiller 

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

Posted 07 October 2003 - 11:23 AM

@thanhd: Is every single dev going to ask the same question? Simple: Make sure all libraries are compiled with "Runtime library: Multi-threaded".
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

#96 User is offline   thanhd 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 03-February 03

Posted 07 October 2003 - 11:49 AM

After scratching my head for a while I found the problem :P
0

#97 User is offline   jonyj2003 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 14-October 03

Posted 14 October 2003 - 07:32 PM

Hi. I've compiled 0.30b VC .NET 2002, WinXP, and have done everything bluwcow has posted, and I still have these link errors:

MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _calloc already defined in libcmtd.lib(dbgheap.obj)
MSVCRTD.lib(MSVCR70D.dll) : error LNK2005: _free already defined in libcmtd.lib(dbgheap.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/emule.exe : fatal error LNK1169: one or more multiply defined symbols found

If anyone has an idea, it's my first build. I've spent on it 2 days.

Thanks in advance.
0

#98 User is offline   Moonlight 

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

Posted 15 October 2003 - 03:25 AM

One or more of the libraries you have used were compiled with the single-threaded runtime library. You have to find which ones they are and re-build them after changing compile options for Multithreaded runtime.

If you do not feel like loading every library's project, review the compile options and rebuild them, you could use the /FORCE build option but the resulting binary will be very unstable.

Try doing 'F1' on a LINK 2005 error...
0

#99 User is offline   jonyj2003 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 14-October 03

Posted 15 October 2003 - 07:13 AM

Ok, I think it was compiled with Multithread, but I'll check again. Thanks anyway.
0

#100 User is offline   epowder 

  • Member
  • PipPip
  • Group: Members
  • Posts: 49
  • Joined: 30-May 03

Posted 15 October 2003 - 04:52 PM

compiling works fine,
but when i start emule.exe it gives me a messagebox saying zlib.dll could not be found



Why could this be ?

thanks !!

epowder

This post has been edited by epowder: 15 October 2003 - 04:53 PM

0

  • Member Options

  • (14 Pages)
  • +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »

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