aMule Forum

English => aMule Help => Topic started by: JRM on July 21, 2004, 07:46:45 PM

Title: Make error
Post by: JRM on July 21, 2004, 07:46:45 PM
Code: [Select]
[...]
PrefsUnifiedDlg.h:77: error: ISO C++ forbids declaration of `wxButton' with no type
PrefsUnifiedDlg.h:77: error: expected `;' before '*' token
PrefsUnifiedDlg.h: In member function `int PrefsUnifiedDlg::GetColorIndex()':
PrefsUnifiedDlg.h:68: error: invalid use of undefined type `struct wxChoice'
PrefsUnifiedDlg.h:42: error: forward declaration of `struct wxChoice'
ListenSocket.cpp:89:4: warning: #warning check closing method to change order and get rid of this
ListenSocket.cpp:720:8: warning: #warning Here should be the IDHybrid, but we don't use it yet and I'm afraid it will break a lot ;)
ListenSocket.cpp:726:7: warning: #warning Here should be the IDHybrid, but we don't use it yet and I'm afraid it will break a lot ;)
ListenSocket.cpp:773:6: warning: #warning TODO: CHECK MESSAGE FILTERING!
ListenSocket.cpp:1051:7: warning: #warning We need a new ProcessSharedFileList that can handle dirs. ___UNICODE___
make[4]: *** [amule-ListenSocket.o] Erreur 1
make[4]: Leaving directory `/home/jrm/aMule-2.0.0rc5/src'
make[3]: *** [all-recursive] Erreur 1
make[3]: Leaving directory `/home/jrm/aMule-2.0.0rc5/src'
make[2]: *** [all] Erreur 2
make[2]: Leaving directory `/home/jrm/aMule-2.0.0rc5/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/jrm/aMule-2.0.0rc5'
make: *** [all] Erreur 2

I'm using these packages from ThePolish :
libwxgtk-common_2.5_1-2.5.1-4mdk.i586.rpm
libwxgtk-common_2.5_1-devel-2.5.1-4mdk.i586.rpm
libwxgtk-gtk1_2.5_1-2.5.1-4mdk.i586.rpm
libwxgtk-gtk1_2.5_1-devel-2.5.1-4mdk.i586.rpm
libcryptopp5-5.1-2mdk.i586.rpm
libcryptopp5-devel-5.1-2mdk.i586.rpm
Title: Re: Make error
Post by: Jacobo221 on July 21, 2004, 07:54:09 PM
Are you following any of the howtos at aMule's wiki?
http://wiki.amule.org
Title: Re: Make error
Post by: JRM on July 22, 2004, 12:57:58 PM
I read them all

I've installed on my mandrake box all the RPMs coming from ThePolish's website (thx to him by the way) so I've all the needed libs. I want to build aMulefrom sources to make use of gtk2 with wxGTK-2.5.1, which is supported by rc5 if I'm not mistaken.

I've done ./configure --disable-debug --enable-optimize && make and get this error.
Title: Re: Make error
Post by: Jacobo221 on July 22, 2004, 01:04:33 PM
I'd suggest you to compile on your own also wxWidgets and crypto++ and them compile aMule. I can't help you on the Polish's packages because I've never used them.
If you wish to compile self-compile wx and crypto++ too and then aMule, follow this howto:
http://www.amule.org/wiki/index.php/Compilation_Installation
Anyway, you can wait for The Polish to tell yuo about those packages.
Greetings!
Title: Re: Make error
Post by: thepolish on July 22, 2004, 04:25:30 PM
Hi,
 I m trying to reproduce it:

Code: [Select]
[root@localhost i586]# rpm -ivh libwxgtk-common_2.5_1-2.5.1-4mdk.i586.rpm
Préparation...              ########################################### [100%]
   1:libwxgtk-common_2.5_1   ########################################### [100%]
[root@localhost i586]#  rpm -ivh libwxgtk-common_2.5_1-devel-2.5.1-4mdk.i586.rpm libwxgtk-gtk1_2.5_1-2.5.1-4mdk.i586.rpm libwxgtk-gtk1_2.5_1-devel-2.5.1-4mdk.i586.rpm
Préparation...              ########################################### [100%]
   1:libwxgtk-gtk1_2.5_1    ########################################### [ 33%]
   2:libwxgtk-common_2.5_1-d########################################### [ 67%]
   3:libwxgtk-gtk1_2.5_1-dev########################################### [100%]

Code: [Select]

./configure --disable-debug --enable-optimize

blabla

Which libraries should aMule use?
wxWidgets          2.5.1
GTK                1.2.10

Code: [Select]
make

blabla

List.o amule-SearchListCtrl.o amule-server.o amule-ServerList.o amule-ServerListCtrl.o amule-ServerSocket.o amule-ServerWnd.o amule-SharedFileList.o amule-SharedFilesCtrl.o amule-SharedFilesWnd.o amule-sockets.o amule-StatisticsDlg.o amule-TransferWnd.o amule-UDPSocket.o amule-UploadClient.o amule-UploadListCtrl.o amule-UploadQueue.o amule-amule.o amule-amuleDlg.o  amule-gsocket-2.5.o amule-eggtrayicon.o amule-SysTray.o amule-gtk2-funcs.o amule-gtkplugxembed.o   -pthread -lwx_gtk_html-2.5 -lwx_gtk_dbgrid-2.5 -lwx_gtk_adv-2.5 -lwx_gtk_core-2.5 -lwx_base_odbc-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5 -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lz -L/usr/lib -lcurl -lz -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lcryptopp
make[4]: Leaving directory `/home/fox/rpm/SOURCES/aMule-2.0.0rc5/src'
make[3]: Leaving directory `/home/fox/rpm/SOURCES/aMule-2.0.0rc5/src'
make[2]: Leaving directory `/home/fox/rpm/SOURCES/aMule-2.0.0rc5/src'
make[2]: Entering directory `/home/fox/rpm/SOURCES/aMule-2.0.0rc5'
make[2]: Rien à faire pour « all-am ».
make[2]: Leaving directory `/home/fox/rpm/SOURCES/aMule-2.0.0rc5'
make[1]: Leaving directory `/home/fox/rpm/SOURCES/aMule-2.0.0rc5'
bash-2.05b$

NO ERRORS !!! :)

Thats not a rpm problem, it looks like a compiler problem. What compiler do u use ? i hope NOT gcc 3.4 :)

mine is the standard from mdk 10.0 and no prob

Code: [Select]
bash-2.05b$ g++ --version
g++ (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ThePolish
Title: Re: Make error
Post by: JRM on July 22, 2004, 11:07:28 PM
I've tried with gcc3.4.1and 3.5 (cooker), I've not seen any warning about that in the readme/knownbugs txt or the wiki

gcc 3.4.1 will be used to build the next mdk 10.1 so you'll also have this problem sooner or later :P
Title: Re: Make error
Post by: thepolish on July 22, 2004, 11:31:37 PM
Hi,

yes, we know some changes must be done to be fully 3.4 compatible. 3.4 have a c++ parser more strict than 3.3, and some code in amule is not compatible with it. we are working on it in cvs.

For now, and rc5, avoid 3.4  :)

U can also try to use cvs snapshots, and submit patches to solve 3.4 pb too :)

The polish
Title: Re: Make error
Post by: JRM on July 23, 2004, 10:47:29 AM
do you accept html patches ? that's the best I can do  :D
Title: Re: Make error
Post by: Jacobo221 on July 23, 2004, 12:18:38 PM
allthough it might have been a joke, if you take a look at aMule.tmpl, thats an HTML template for the webserver.
Patch it however you'd like to ;-)
If it looks good, post your patches.
Greetings!