aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2 3

Author Topic: HowTo compile aMule on Windows  (Read 67595 times)

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
HowTo compile aMule on Windows
« on: May 31, 2004, 04:18:54 AM »

The HowTo on how to compile aMule on Windows platforms is now on WIki at http://wiki.amule.org/index.php/HowTo_compile_on_Win32

It's just the same as the document in sources, but in rich format.

Thank Madcat for that HowTo, he wrote it ;-)

Edit: this HowTo applies to compilation with MingW. If you want to compile aMule with Visual Studio (the free Express Edition is sufficient) look at http://wiki.amule.org/index.php/HowTo_compile_with_Visual_Studio.
« Last Edit: December 29, 2009, 08:01:12 PM by Festor »
Logged

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 896
Re: HowTo compile aMule on Windows
« Reply #1 on: July 17, 2004, 10:29:26 PM »

Isn't it beautifull ?

The polish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: HowTo compile aMule on Windows
« Reply #2 on: July 18, 2004, 12:49:02 AM »

Is not beautiful! it's Windows!
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: HowTo compile aMule on Windows
« Reply #3 on: July 18, 2004, 01:21:55 AM »

:D

CellarDoor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: HowTo compile aMule on Windows
« Reply #4 on: August 01, 2004, 12:34:43 PM »

But nice to know that aMule is so goooooood
that it even runs on such
non-beautiful Systems ;)  :D :P :rolleyes:
Logged

soma

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: HowTo compile aMule on Windows
« Reply #5 on: January 14, 2005, 04:18:51 AM »

Hi all

I've been trying to compile aMule using those tips, but I'm affraid I'm in a dead end.

I don't know jack about Linux, so I don't have the smallest idea how to link, add whatever statically or what the libraries to MinGWStudio, :(

Could you,  :baby:  :baby: please, make an easier HowTo Compile in Win32, for people like me, that only know things like "unzip this...", "copy paste that...", write this on the msys console...", etc... (  :D )  

Or, maybe, write a step by step procedure, here in the forum, if it's not much to ask,  :]

Thanks in advance...Keep up the good work

P.S.: Pls, forgive me if the post isn't on the right place.
« Last Edit: January 14, 2005, 04:20:25 AM by soma »
Logged
"Freeware, anyware
Just like Nature, :) "

thepolish

  • Hero Member
  • *****
  • Karma: 2
  • Offline Offline
  • Posts: 896
Re: HowTo compile aMule on Windows
« Reply #6 on: January 14, 2005, 10:51:37 AM »

Hi,

For now, it is not very easy to do it under win32, so need so more hack than "copy past". Since win32 version is not planned for 2.0.0 (only mac is) , win32 is since under heavy development.

So win32 compilation is reserved for people who want to spend hours on it :) Obscur wiki is a sort of selection :)

But, i promiss, as soon as win32 version is ok, i will update the wiki :)

Quickly, the easiest way to try is to open amule.msp under mingwstudio, then verify that the files to compile are the same as in the Makefile in "amule:" section (not sure all is up to date), then press F7 and watch the error msg  :)

Thepolish
Logged
Only after the last tree has been cut down
Only after the last river has been poisoned
Only after the last fish has been caught
Only then you will find out that money cannot be eaten
(Cree Prophecy)

soma

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: HowTo compile aMule on Windows
« Reply #7 on: January 14, 2005, 03:37:31 PM »

Thanks for the quick and promptly answer, :)

I'm going to try, once more, using MinGWStudio and see what happens.

I'll keep you guys posted, if that's ok!

Cya
Logged
"Freeware, anyware
Just like Nature, :) "

drizzt

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: HowTo compile aMule on Windows
« Reply #8 on: January 16, 2005, 07:31:22 PM »

actually is amule 100% compatible with Windows OS?
Logged

antenon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: HowTo compile aMule on Windows
« Reply #9 on: February 07, 2005, 11:11:36 PM »

hello all
I'm trying to make amule last version on windows to include some adds to de code.
I installed mingwstudio2.05, the easyest way, that suposed to contain wx's libraries, but when opening the .mpl file and compiling I found the following error:

--------------------Configuration: amule - Release--------------------
Compiling source file(s)...
CFile.cpp
src\CFile.cpp:606: error: no  `wxString
CDirIterator::FindFirstFileA(CDirIterator::FileType, wxString)' member
function declared in class `CDirIterator'
C:\MinGWStudio\MinGW\include\winbase.h: In member function `wxString
CDirIterator::FindFirstFileA(CDirIterator::FileType, wxString)':
C:\MinGWStudio\MinGW\include\winbase.h:1140: error: too few arguments to
function `BOOL FindNextFileA(void*, _WIN32_FIND_DATAA*)'
src\CFile.cpp:613: error: at this point in file
C:\MinGWStudio\Include\wx\string.h:284: error: `wxString::wxString(int)' is
private
src\CFile.cpp:613: error: within this context
src\CFile.cpp: At global scope:
src\CFile.cpp:616: error: no `wxString CDirIterator::FindNextFileA()' member
function declared in class `CDirIterator'
src\CFile.cpp: In member function `wxString CDirIterator::FindNextFileA()':
src\CFile.cpp:636: error: 'struct dirent' has no member named 'd_type'
src\CFile.cpp:637: error: `DT_DIR' undeclared (first use this function)
src\CFile.cpp:637: error: (Each undeclared identifier is reported only once for
each function it appears in.)
src\CFile.cpp:644: error: `DT_REG' undeclared (first use this function)

amule.exe - 10 error(s), 0 warning(s)
 :(

I found this at the begining of CFile.cpp:

// wxWindows
#ifndef WX_PRECOMP
#   include
#   include
#   include
#endif // !WX_PRECOMP

In the header wx/string.h is suposed to be the class wxString not found while compiling, but I tryed to define WX_PRECOMP by hand and nothing


might be that this version of mingwstudio does not include the correct version of wx libraries? Can anybody help me?

 thanks  :baby: :rolleyes:
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: HowTo compile aMule on Windows
« Reply #10 on: February 07, 2005, 11:34:15 PM »

I messed up the names because of some macros. If you come to #amule and look for me we could fix this together
Logged

antenon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: HowTo compile aMule on Windows
« Reply #11 on: February 11, 2005, 06:07:24 PM »

8o
I was confused

--------------------Configuration: amule - Release--------------------
Compiling source file(s)...
CFile.cpp
src\CFile.cpp:659: error: no `wxString
CDirIterator::FindFirstFileA(CDirIterator::FileType, wxString)' member
function declared in class `CDirIterator'
......

I realized that the symbol that didnt found when compilation was not "wxString"  but really the whole 'wxString CDirIterator::FindFirstFileA(CDirIterator::FileType, wxString)" It is suposed that it would be implemented somewhere.
It is a function that must be defined in the class of the header file CFile.h, buy I didnot found here

I made a global search all over the files for 'FindFirstFileA'  but nothing found

¿any ideas?
Logged

antenon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: HowTo compile aMule on Windows
« Reply #12 on: February 13, 2005, 09:50:32 PM »

I have resolved previous problems.  thanks to Kry in the irc.

I continue compiling. Now the problem is:

Compiling...
SearchListCtrl.cpp
In file included from src\SearchListCtrl.h:31,
from src\SearchListCtrl.cpp:26:
src\MuleListCtrl.h:61: error: syntax error before `{' token

I am confused. The syntax error is in the file MuleListCtrl.h but MuleListCtrl.cpp compiles perfectly.  :(

I dig the problem. The lines that gives the error are:

.....
#ifdef __WXMSW__
   #include
   class CMuleListCtrl : public wxListCtrl
#else
   #include "listctrl_gen.h"
   class CMuleListCtrl : public wxODListCtrl
#endif

{
public:

   /**
.....

The symbol __WXMSW__ is defined so that code is the some that:
......
#include
class CMuleListCtrl : public wxListCtrl
{

.......

I made test of replazing the first code with the previous one. Nothing new.

so the problem is that wxListCtrl is not recogniced. I made another test of replacing "wxListCtrl" to "wxListCtrlfoo" and continues the some error while compiling.

I inspect file "SearchListCtrl.cpp". The first included file is the header file of the class :
#include "SearchListCtrl.h"
Then I inspect SeachListCtrl.h, I found that the first in this file is:

#include             // Needed for std::list

#include "MuleListCtrl.h"   // Needed for CMuleListCtrl

I tryed comenting the first include: //#include
but keep failing compilation.

¿any Ideas? ?(

If I finally sucess compilation I will write the step by step guide.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: HowTo compile aMule on Windows
« Reply #13 on: February 13, 2005, 11:25:10 PM »

#include ?
Logged

antenon

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: HowTo compile aMule on Windows
« Reply #14 on: February 14, 2005, 04:31:15 PM »

the class file header of MuleListCtrl class (MuleListCtrl.h) is included by several other classes:

CatDialog.cpp----->includes MuleListCtrl.h compilation OK
ChatWnd.cpp----> OK
DownloadListCtrl.cpp--> OK
FileDetailDialog.cpp--> OK
FileDetailListCtrl.cpp--> OK
FriendListCtrl.cpp--> OK
MuleListCtrl.cpp--> OK
SearchList.cpp---->FAILED

I suspect there is something diferent in SearchList.cpp that make to fail when including MuleListCtrl.h , but what?
Logged
Pages: [1] 2 3