aMule Forum
English => aMule Help => Topic started by: massdabass on December 27, 2003, 12:57:36 PM
-
I have redHat 9 on Pentium (taken fro get-info.sh):
"
--------
I. Development Environment
A. Compiler Info
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
B. wxWindows Info
Version: 2.4.2
-L/usr/local/lib -pthread -lwx_gtk-2.4
C. GTK Info
GTK 1: 1.2.10
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
GTK 2:
II. System Environment
A. CPU Info
Type: GenuineIntel
Model: Celeron (Mendocino)
Speed: 400.918
BMips: 799.53
Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
B. Memory Info
Total: 255312 kB
Unused:
C. Kernel Info
Version: 2.4.20-27.9
Configure script has finished system check.
D. Library Info
wxWindows library: libwx_gtk-2.4.so (libc6) => /usr/local/lib/libwx_gtk-2.4.so
--------END
"
First of all I installed wxWindows 2.4.2 (I had already 2.4.1), taken from download page.
Then I compiled. ./configure didn't give any kind of warning:
"
.....
Configured aMule 1.2.1 for `i686-pc-linux-gnu'.
Should aMule be compiled in debug mode? no
Should aMule be compiled without debug reporting? yes
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? no
Should aMule be compiled with systray? yes
Should aMule be compiled with safe systray? no
Should aMule be compiled with pure GTK code? yes
Should aMule be compiled without bar drawing? no
Should aMule be linked against patched gsocket? yes
Should amulecmd be built? yes
Should amulecmd (TextClient) be linked against wxbase? yes
Which libraries should aMule use?
wxWindows 2.4.2
GTK 1.2.10
"
At the end of building (I think), I get his message:
"
g++ -g -rdynamic -o amule amule-ListenSocket.o amule-EMSocket.o amule-AddFriend.o amule-AddFileThread.o amule-animate.o amule-BarShader.o amule-BaseClient.o amule-ChatSelector.o amule-ChatWnd.o amule-CatDialog.o amule-CFile.o amule-ClientCredits.o amule-ClientDetailDialog.o amule-ClientList.o amule-ClientUDPSocket.o amule-CMuleNotebookBase.o amule-ColorFrameCtrl.o amule-CommentDialog.o amule-CommentDialogLst.o amule-DirectoryTreeCtrl.o amule-DownloadClient.o amule-DownloadListCtrl.o amule-DownloadQueue.o amule-ED2KLink.o amule-EditServerListDlg.o amule-eggtrayicon.o amule-ExternalConn.o amule-FileDetailDialog.o amule-filemem.o amule-Friend.o amule-FriendList.o amule-FriendListCtrl.o amule-gtk2-funcs.o amule-gtkplugxembed.o amule-HTTPDownloadDlg.o amule-ini2.o amule-IPFilter.o amule-KnownFile.o amule-KnownFileList.o amule-listctrl.o amule-mfc.o amule-MD5Sum.o amule-MuleListCtrl.o amule-MuleNotebook.o amule-muuli_wdr.o amule-OScopeCtrl.o amule-otherfunctions.o amule-packets.o amule-PartFile.o amule-PPgConnection.o amule-PPgDirectories.o amule-PPgFiles.o amule-PPgGeneral.o amule-PPgNotify.o amule-PPgServer.o amule-PPgStats.o amule-PPgTweaks.o amule-PPgSourcesDropping.o amule-PPgGuiTweaks.o amule-Preferences.o amule-PreferencesDlg.o amule-Preview.o amule-QueueListCtrl.o amule-SafeFile.o amule-SearchDlg.o amule-SearchList.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-SplitterControl.o amule-StatisticsDlg.o amule-SysTray.o amule-TabCtrl.o amule-TransferWnd.o amule-treebasc.o amule-treectlc.o amule-UDPSocket.o amule-UploadClient.o amule-UploadListCtrl.o amule-UploadQueue.o amule-WebServer.o amule-WebSocket.o amule-XBMDraw.o amule-Wizard.o amule-amule.o amule-amuleDlg.o amule-gsocket.o -pthread -lwx_gtk-2.4 -lz -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lz -lssl -lcrypto
amule-StatisticsDlg.o(.text+0x9d38): In function `CStatisticsDlg::ExportHTMLEvent(wxEvent&)':
/usr/local/src/aMule-1.2.1/src/StatisticsDlg.cpp:800: undefined reference to `wxTreeItemId::operator unsigned long() const'
amule-StatisticsDlg.o(.text+0x9d72):/usr/local/src/aMule-1.2.1/src/StatisticsDlg.cpp:802: undefined reference to `wxTreeItemId::operator unsigned long() const'
collect2: ld returned 1 exit status
make[2]: *** [amule] Error 1
make[2]: Leaving directory `/usr/local/src/aMule-1.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/aMule-1.2.1'
make: *** [all] Error 2
"
Did i do some mistake?
Thanks a lot.
massdabass
-
yap.. u don't have wxBase and ur trying to compile aMule with amulecmd .. amulecmd needs wxBase ..
to solve your prob :
1. ./configure --disable-debug --enable-optimise --disable-amulecmd
2. install wxBase and do as root:
ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
then
ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
ldconfig
and as user ./configure --disable-debug --enable-optimise && make
greets
delta
-
Same problem here, running Fedora Core 1 and trying to compile aMule 1.2.3
[code:1]
[chessy@bisho aMule-1.2.3]$ rpm -q wxBase
wxBase-2.4.2-1
[chessy@bisho aMule-1.2.3]$ ls -l /usr/bin/wx*
-rwxr-xr-x 1 root root 4864 nov 28 13:08 /usr/bin/wxbase-2.4-config
lrwxrwxrwx 1 root root 26 dic 31 18:57 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx 1 root root 26 dic 31 19:01 /usr/bin/wx-config -> /usr/bin/wxgtk2-2.4-config
-rwxr-xr-x 1 root root 5093 ago 6 08:37 /usr/bin/wxgtk2-2.4-config
-rwxr-xr-x 1 root root 5159 sep 21 15:14 /usr/bin/wxgtk-2.4-config
[/code:1]
May I have to compile aMule against GTK 1.x instead of GTK 2.x?
Thanks a lot.
-
what problem do u have exact Chessy? poste the errors or something.
u should compile wxGTK linked to gtk1.. look plz in docs/INSTALL file
without to see the errors its not easy to help you..
greets
delta
-
Hello,
For information, i had to compile with explicit --with-wxbase-config=blabla AND -with-wx-config=blabalbla (see my previous posts)
hope it is helpfull
the polish
-
deltaHF: sorry, you're right, I had to be more explicit. I mean that I have same problem that massdabass has, i.e. when I try to compile aMule 1.2.3 (in a Fedora Core 1 distro),
at the end of building, I get this message:
[code:1]
g++ -o amule amule-ListenSocket.o amule-EMSocket.o amule-AddFriend.o amule- AddFileThread.o amule-animate.o amule-BarShader.o amule-BaseClient.o amule-ChatS elector.o amule-ChatWnd.o amule-CatDialog.o amule-CFile.o amule-ClientCredits.o amule-ClientDetailDialog.o amule-ClientList.o amule-ClientUDPSocket.o amule-CMul eNotebookBase.o amule-ColorFrameCtrl.o amule-CommentDialog.o amule-CommentDialog Lst.o amule-Debug.o amule-DirectoryTreeCtrl.o amule-DownloadClient.o amule-Downl oadListCtrl.o amule-DownloadQueue.o amule-ED2KLink.o amule-EditServerListDlg.o a mule-eggtrayicon.o amule-ExternalConn.o amule-FileDetailDialog.o amule-filemem.o amule-filefn.o amule-Friend.o amule-FriendList.o amule-FriendListCtrl.o amule-g tk2-funcs.o amule-gtkplugxembed.o amule-HTTPDownloadDlg.o amule-ini2.o amule-IPF ilter.o amule-KnownFile.o amule-KnownFileList.o amule-listctrl.o amule-mfc.o amu le-MD5Sum.o amule-MuleListCtrl.o amule-MuleNotebook.o amule-muuli_wdr.o amule-OS copeCtrl.o amule-otherfunctions.o amule-packets.o amule-PartFile.o amule-PPgConn ection.o amule-PPgDirectories.o amule-PPgFiles.o amule-PPgGeneral.o amule-PPgNot ify.o amule-PPgServer.o amule-PPgStats.o amule-PPgTweaks.o amule-PPgSourcesDropp ing.o amule-PPgGuiTweaks.o amule-Preferences.o amule-PreferencesDlg.o amule-Prev iew.o amule-QueueListCtrl.o amule-SafeFile.o amule-SearchDlg.o amule-SearchList. o amule-SearchListCtrl.o amule-server.o amule-ServerList.o amule-ServerListCtrl. o amule-ServerSocket.o amule-ServerWnd.o amule-SharedFileList.o amule-SharedFile sCtrl.o amule-SharedFilesWnd.o amule-sockets.o amule-SplitterControl.o amule-Sta tisticsDlg.o amule-SysTray.o amule-TabCtrl.o amule-TransferWnd.o amule-treebasc. o amule-treectlc.o amule-UDPSocket.o amule-UploadClient.o amule-UploadListCtrl.o amule-UploadQueue.o amule-XBMDraw.o amule-Wizard.o amule-amule.o amule-amuleDlg .o amule-gsocket.o -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkr b5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -pthread -lwx_gtk2-2.4 -lz -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_kr b5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl - lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl - lz -lz -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcryp to -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz
/usr/kerberos/lib/libkrb5.a(fcc_gennew.o)(.text+0x6c): En la función `krb5_fcc_g enerate_new':
: warning: the use of `mktemp' is dangerous, better use `mkstemp'
amule-StatisticsDlg.o(.text+0x990a): En la función `CStatisticsDlg::ExportHTMLEv ent(wxEvent&)':
: undefined reference to `wxTreeItemId::operator long() const'
amule-StatisticsDlg.o(.text+0x9944): En la función `CStatisticsDlg::ExportHTMLEv ent(wxEvent&)':
: undefined reference to `wxTreeItemId::operator long() const'
collect2: ld devolvió el estado de salida 1
make[2]: *** [amule] Error 1
make[2]: Saliendo directorio `/home/chessy/apps/amule/aMule-1.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Saliendo directorio `/home/chessy/apps/amule/aMule-1.2.3'
make: *** [all] Error 2
[/code:1]
I have also tried to compile with the following configure command, with no luck.:
[code:1]
./configure --disable-debug --with-wxbase-config=/usr/bin/wxbase-config --with-wx-config=/usr/bin/wx-config
[/code:1]
But If I compile using:
[code:1]
./configure --disable-debug --enable-optimise --disable-amulecmd
[/code:1]
it builds OK, without errors, but I miss the amulecmd, of course.
If you need more info, plz ask me. I'm willing to help to find a solution.
Thanks in advance,
Chessy
-
lrwxrwxrwx 1 root root 26 dic 31 19:01 /usr/bin/wx-config -> /usr/bin/wxgtk2-2.4-config
plz try to link wxconfig against wxgtk-2.4-config and recompile amule.. if it doesn't help join tomorrow #amule @efnet and i'll help u live.. gotta go sleep now ..
greets
delta