aMule Forum

English => en_Linux => Topic started by: Mel_v0.1 on April 08, 2004, 11:01:37 PM

Title: errors re-compiling from source
Post by: Mel_v0.1 on April 08, 2004, 11:01:37 PM
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../../i486-slackware-linux/bin/ld: cannot find -lcryptopp
collect2: ld returned 1 exit status
make[2]: *** [amulecmd] Error 1
make[2]: Leaving directory `/home/Mel/aMule-2.0.0rc1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Mel/aMule-2.0.0rc1'
make: *** [all] Error 2

How can I do? I use Slackware, so I can't use the rpm..
Title: Re: errors re-compiling from source
Post by: deltaHF on April 08, 2004, 11:32:40 PM
dl the crypto bz2 we have here , untar it and do make & make install

greets
Title: Re: errors re-compiling from source
Post by: Mel_v0.1 on April 09, 2004, 08:37:23 PM
ok.. it seems to pass that stage, but another error comes:
Code: [Select]
AddFriend.cpp:49: invalid static_cast from type `void (CAddFriend::*)(wxEvent&)
   ' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
AddFriend.cpp:50: invalid static_cast from type `void (CAddFriend::*)(wxEvent&)
   ' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
make[2]: *** [amule-AddFriend.o] Error 1
make[2]: Leaving directory `/home/Mel/aMule-2.0.0rc1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Mel/aMule-2.0.0rc1'
make: *** [all] Error 2
Title: Re: errors re-compiling from source
Post by: deltaHF on April 09, 2004, 08:39:47 PM
ls -l /usr/bin/wx*
ls -l /usr/local/bin/wx*
Title: Re: errors re-compiling from source
Post by: Mel_v0.1 on April 09, 2004, 09:21:27 PM
bash-2.05b# ls -l /usr/local/bin/wx*
lrwxrwxrwx    1 root     root           16 Apr  8 22:41 /usr/local/bin/wx-config -> wxgtk-2.5-config
-rwxr-xr-x    1 root     root        10417 Apr  8 22:41 /usr/local/bin/wxgtk-2.5-config
bash-2.05b#  ls -l /usr/bin/wx*
-rwxr-xr-x    1 root     bin          7396 Feb 12  2003 /usr/bin/wxcopy
-rwxr-xr-x    1 root     bin          5832 Feb 12  2003 /usr/bin/wxpaste


I'm a Slackware addicted, so I need sources to start from every time, where can I find the wxGTK, wxBase sources, if they are needed?
Title: Re: errors re-compiling from source
Post by: deltaHF on April 09, 2004, 09:27:54 PM
uninstall wxgtk2.5 (isn't supported yet) and follow the compilation howto http://www.amule.org/amule/howto.php


greets
Title: Re: errors re-compiling from source
Post by: Mel_v0.1 on April 09, 2004, 09:46:28 PM
how can I unistall the wxGTK2.5? It comes embedded with the system.. How can I do?

I've tried only installing the older wxGTK, but it dowsn't seem to work..
Title: Re: errors re-compiling from source
Post by: Mel_v0.1 on April 09, 2004, 09:59:04 PM
the error is this: (complete stack)
Code: [Select]
then mv -f ".deps/amulecmdDLG-TextClient.Tpo" ".deps/amulecmdDLG-TextClient.Po"; \
else rm -f ".deps/amulecmdDLG-TextClient.Tpo"; exit 1; \
fi
TextClient.cpp:33:2: #error ============================================================================
TextClient.cpp:34:2: #error There is a problem with the WX_CXXFLAGS.
TextClient.cpp:35:2: #error This is probably caused by having a link from wx-config to wxbase-*-config.
TextClient.cpp:36:2: #error PLEASE MAKE SURE THAT YOUR wx-config POINTS TO THE CORRECT CONFIGURE SCRIPT!
TextClient.cpp:37:2: #error Then run: config.status --recheck; config.status
TextClient.cpp:38:2: #error ============================================================================
In file included from TextClient.cpp:41:
TextClient.h:55: base class `wxFrame' has incomplete type
TextClient.h:58: syntax error before `&' token
TextClient.h:62: `wxCommandEvent' was not declared in this scope
TextClient.h:62: `event' was not declared in this scope
TextClient.h:62: invalid data member initialization
TextClient.h:62: (use `=' to initialize static data members)
TextClient.h:62: variable or field `OnQuit' declared void
TextClient.h:63: `wxCommandEvent' was not declared in this scope
TextClient.h:63: `event' was not declared in this scope
TextClient.h:63: invalid data member initialization
TextClient.h:63: variable or field `OnAbout' declared void
TextClient.h:64: `wxCommandEvent' was not declared in this scope
TextClient.h:64: `event' was not declared in this scope
TextClient.h:64: invalid data member initialization
TextClient.h:64: variable or field `OnComandEnter' declared void
TextClient.h:65: `wxSizeEvent' was not declared in this scope
TextClient.h:65: `event' was not declared in this scope
TextClient.h:65: invalid data member initialization
TextClient.h:65: variable or field `OnSize' declared void
TextClient.cpp: In function `wxApp* wxCreateApp()':
TextClient.cpp:59: cannot allocate an object of type `CamulecmdApp'
TextClient.cpp:59:   because the following virtual functions are abstract:
/usr/local/include/wx/app.h:131:        virtual int wxAppBase::OnRun()
TextClient.cpp: At global scope:
TextClient.cpp:77: incomplete type `wxFrame' does not have member `
   sm_eventTable'
TextClient.cpp:78: `wxCommandEventFunction' was not declared in this scope
TextClient.cpp:79: `wxCommandEventFunction' was not declared in this scope
TextClient.cpp:81: `EVT_TEXT_ENTER' was not declared in this scope
TextClient.cpp:82: syntax error before `(' token
TextClient.cpp:82: `wxSizeEventFunction' was not declared in this scope
TextClient.cpp:82: syntax error before `)' token
TextClient.cpp: In function `void Show(char*, ...)':
TextClient.cpp:114: invalid use of undefined type `struct wxTextCtrl'
/usr/local/include/wx/log.h:26: forward declaration of `struct wxTextCtrl'
TextClient.cpp: In member function `virtual bool CamulecmdApp::OnInit()':
TextClient.cpp:324: invalid use of undefined type `struct wxPoint'
/usr/local/include/wx/utils.h:46: forward declaration of `struct wxPoint'
TextClient.cpp:324: `wxSize' undeclared (first use this function)
TextClient.cpp:324: (Each undeclared identifier is reported only once for each
   function it appears in.)
TextClient.cpp:328: no matching function for call to `CamulecmdFrame::Show(bool
   )'
TextClient.cpp:344: `wxGetTextFromUser' undeclared (first use this function)
TextClient.cpp:347: `::wxGetPasswordFromUser' undeclared (first use here)
TextClient.cpp: At global scope:
TextClient.cpp:424: syntax error before `&' token
TextClient.cpp:429: syntax error before `->' token
TextClient.cpp:431: syntax error before `*' token
TextClient.cpp:432: syntax error before `->' token
TextClient.cpp:435: syntax error before `*' token
TextClient.cpp:436: syntax error before `->' token
TextClient.cpp:437: syntax error before `->' token
TextClient.cpp:440: `menuBar' was not declared in this scope
TextClient.cpp:440: ISO C++ forbids declaration of `SetMenuBar' with no type
TextClient.cpp:442: ISO C++ forbids declaration of `log_text' with no type
TextClient.cpp:442: invalid use of `this' at top level
TextClient.cpp:442: invalid use of undefined type `struct wxPoint'
/usr/local/include/wx/utils.h:46: forward declaration of `struct wxPoint'
TextClient.cpp:442: `wxTE_MULTILINE' was not declared in this scope
TextClient.cpp:442: `wxTE_READONLY' was not declared in this scope
TextClient.cpp:442: invalid use of undefined type `struct wxTextCtrl'
/usr/local/include/wx/log.h:26: forward declaration of `struct wxTextCtrl'
TextClient.cpp:443: syntax error before `->' token
TextClient.cpp:445: ISO C++ forbids declaration of `cmd_control' with no type
TextClient.cpp:445: invalid use of `this' at top level
TextClient.cpp:445: invalid use of undefined type `struct wxPoint'
/usr/local/include/wx/utils.h:46: forward declaration of `struct wxPoint'
TextClient.cpp:445: `wxTE_PROCESS_ENTER' was not declared in this scope
TextClient.cpp:445: invalid use of undefined type `struct wxTextCtrl'
/usr/local/include/wx/log.h:26: forward declaration of `struct wxTextCtrl'
TextClient.cpp:446: syntax error before `->' token
TextClient.cpp:449: `wxCommandEvent' was not declared in this scope
TextClient.cpp:449: syntax error before `)' token
TextClient.cpp:450: no `void CamulecmdFrame::OnQuit(...)' member function
   declared in class `CamulecmdFrame'
TextClient.cpp:450: declaration of `void CamulecmdFrame::OnQuit(...)'
TextClient.h:62: conflicts with previous declaration `int
   CamulecmdFrame::OnQuit'
TextClient.cpp: In member function `void CamulecmdFrame::OnQuit(...)':
TextClient.cpp:453: `Close' undeclared (first use this function)
TextClient.cpp: At global scope:
TextClient.cpp:456: `wxCommandEvent' was not declared in this scope
TextClient.cpp:456: syntax error before `)' token
TextClient.cpp:457: no `void CamulecmdFrame::OnAbout(...)' member function
   declared in class `CamulecmdFrame'
TextClient.cpp:457: declaration of `void CamulecmdFrame::OnAbout(...)'
TextClient.h:63: conflicts with previous declaration `int
   CamulecmdFrame::OnAbout'
TextClient.cpp: In member function `void CamulecmdFrame::OnAbout(...)':
TextClient.cpp:462: `wxMessageBox' undeclared (first use this function)
TextClient.cpp: At global scope:
TextClient.cpp:465: `wxCommandEvent' was not declared in this scope
TextClient.cpp:465: syntax error before `)' token
TextClient.cpp:465: no `void CamulecmdFrame::OnComandEnter(...)' member
   function declared in class `CamulecmdFrame'
TextClient.cpp:465: declaration of `void CamulecmdFrame::OnComandEnter(...)'
TextClient.h:64: conflicts with previous declaration `int
   CamulecmdFrame::OnComandEnter'
TextClient.cpp: In member function `void CamulecmdFrame::OnComandEnter(...)':
TextClient.cpp:467: invalid use of undefined type `struct wxTextCtrl'
/usr/local/include/wx/log.h:26: forward declaration of `struct wxTextCtrl'
TextClient.cpp:471: invalid use of undefined type `struct wxTextCtrl'
/usr/local/include/wx/log.h:26: forward declaration of `struct wxTextCtrl'
TextClient.cpp:476: invalid use of undefined type `struct wxTextCtrl'
/usr/local/include/wx/log.h:26: forward declaration of `struct wxTextCtrl'
TextClient.cpp: At global scope:
TextClient.cpp:479: `wxSizeEvent' was not declared in this scope
TextClient.cpp:479: syntax error before `)' token
TextClient.cpp:480: no `void CamulecmdFrame::OnSize(...)' member function
   declared in class `CamulecmdFrame'
TextClient.cpp:480: declaration of `void CamulecmdFrame::OnSize(...)'
TextClient.h:65: conflicts with previous declaration `int
   CamulecmdFrame::OnSize'
TextClient.cpp: In member function `void CamulecmdFrame::OnSize(...)':
TextClient.cpp:483: `GetClientSize' undeclared (first use this function)
TextClient.cpp:485: invalid use of undefined type `struct wxTextCtrl'
/usr/local/include/wx/log.h:26: forward declaration of `struct wxTextCtrl'
TextClient.cpp:486: invalid use of undefined type `struct wxTextCtrl'
/usr/local/include/wx/log.h:26: forward declaration of `struct wxTextCtrl'
make[2]: *** [amulecmdDLG-TextClient.o] Error 1
make[2]: Leaving directory `/home/Mel/aMule-2.0.0rc1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Mel/aMule-2.0.0rc1'
make: *** [all] Error 2
Title: Re: errors re-compiling from source
Post by: Mel_v0.1 on April 09, 2004, 10:05:43 PM
Quote
Code: [Select]
============================================================================
 #error There is a problem with the WX_CXXFLAGS.
 #error This is probably caused by having a link from wx-config to wxbase-*-config.
 #error PLEASE MAKE SURE THAT YOUR wx-config POINTS TO THE CORRECT CONFIGURE SCRIPT!
 #error Then run: config.status --recheck; config.status
============================================================================

Nothing to do, even this doesn't fix the problem.. Now my wx-config seems to point to the 2.4 version..
Title: Re: errors re-compiling from source
Post by: deltaHF on April 10, 2004, 07:13:16 AM
Quote
Originally posted by Mel_v0.1
how can I unistall the wxGTK2.5? It comes embedded with the system.. How can I do?

I've tried only installing the older wxGTK, but it dowsn't seem to work..

http://slackware.com/config/packages.php

greets
Title: Re: errors re-compiling from source
Post by: Mel_v0.1 on April 10, 2004, 10:53:52 AM
it's getting worst..
pkgtool doesn't list wxGTK and wxBase in my istalled packages... What can I do?
Title: Re: errors re-compiling from source
Post by: Mel_v0.1 on April 10, 2004, 11:03:32 AM
i've tried istalling the aMule tgz and wxgtk2.4.2 tgz package, but it doesn't seem to work..
The error on aMule loading (the same is with xMule) is:
Code: [Select]
Mel@mels_dell:~$ amule
amule: error while loading shared libraries: libwx_gtk2-2.4.so: cannot open shared object file: No such file or directory
Mel@mels_dell:~$

nothing changed, I can't make my gtk works..

HEEEEEEEELLP!!!
:baby:
Title: Re: errors re-compiling from source
Post by: deltaHF on April 10, 2004, 03:12:52 PM
#amule @ irc.freenode.net ;)

greets
Title: Problems compiling from source
Post by: calba on April 11, 2004, 11:20:21 AM
Hi,

I have problems when compiling.


[cap@cesar3 aMule-2.0.0rc1]$ ./configure --enable-debug --disable-optimise
...
  Configure script has finished system check.

  Configured aMule 2.0.0rc1 for 'i686-pc-linux'.

  Should aMule be compiled in debug mode?                  yes
  Should aMule be compiled with release grp code?          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 (TextClient) be linked against wxbase?   yes
  Should ccache support be enabled?                        no
  Should amulecmd be built?                                yes
  Crypto++ library/headers style?                          mdk_suse_fc

  Which libraries should aMule use?
                                       wxWidgets          2.4.2
                                       GTK                1.2.10

[cap@cesar3 aMule-2.0.0rc1]$ make
make  all-recursive
make[1]: Entering directory `/tmp/cpios/aMule-2.0.0rc1'
Making all in .
make[2]: Entering directory `/tmp/cpios/aMule-2.0.0rc1'
make[2]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1'
Making all in m4
make[2]: Entering directory `/tmp/cpios/aMule-2.0.0rc1/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1/m4'
Making all in intl
make[2]: Entering directory `/tmp/cpios/aMule-2.0.0rc1/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1/intl'

Making all in po
make[2]: Entering directory `/tmp/cpios/aMule-2.0.0rc1/po'
rm -f en.gmo && : -c --statistics -o en.gmo en.po
mv: cannot stat `t-en.gmo': No such file or directory
make[2]: *** [en.gmo] Error 1

make[2]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1'
make: *** [all] Error 2

Any idea?

Thanks
Title: RE: Problems compiling from source
Post by: deltaHF on April 11, 2004, 03:21:31 PM
Quote
Originally posted by calba
Hi,

I have problems when compiling.


[cap@cesar3 aMule-2.0.0rc1]$ ./configure --enable-debug --disable-optimise
...
  Configure script has finished system check.

  Configured aMule 2.0.0rc1 for 'i686-pc-linux'.

  Should aMule be compiled in debug mode?                  yes
  Should aMule be compiled with release grp code?          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 (TextClient) be linked against wxbase?   yes
  Should ccache support be enabled?                        no
  Should amulecmd be built?                                yes
  Crypto++ library/headers style?                          mdk_suse_fc

  Which libraries should aMule use?
                                       wxWidgets          2.4.2
                                       GTK                1.2.10

[cap@cesar3 aMule-2.0.0rc1]$ make
make  all-recursive
make[1]: Entering directory `/tmp/cpios/aMule-2.0.0rc1'
Making all in .
make[2]: Entering directory `/tmp/cpios/aMule-2.0.0rc1'
make[2]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1'
Making all in m4
make[2]: Entering directory `/tmp/cpios/aMule-2.0.0rc1/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1/m4'
Making all in intl
make[2]: Entering directory `/tmp/cpios/aMule-2.0.0rc1/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1/intl'

Making all in po
make[2]: Entering directory `/tmp/cpios/aMule-2.0.0rc1/po'
rm -f en.gmo && : -c --statistics -o en.gmo en.po
mv: cannot stat `t-en.gmo': No such file or directory
make[2]: *** [en.gmo] Error 1

make[2]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/cpios/aMule-2.0.0rc1'
make: *** [all] Error 2

Any idea?

Thanks

you lack some i18n tools, probably autopiot, getext, can't remember now .. take a look at docs/readme

greets
Title: Re: errors re-compiling from source
Post by: redmac5 on May 16, 2004, 10:15:34 AM
I am getting the same errors (on SuSE 9.1):
Code: [Select]
Making all in po
make[2]: Entering directory `/home/athlonmp/aMule-2.0.0rc3/po'
rm -f en_GB.gmo && : -c --statistics -o en_GB.gmo en_GB.po
mv: cannot stat `t-en_GB.gmo': No such file or directory
make[2]: *** [en_GB.gmo] Error 1
make[2]: Leaving directory `/home/athlonmp/aMule-2.0.0rc3/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/athlonmp/aMule-2.0.0rc3'
make: *** [all] Error 2

I've managed to install the RPM by now, but wanted to let you know anyway.
Title: Re: errors re-compiling from source
Post by: Jacobo221 on May 16, 2004, 03:54:47 PM
deltaHF said:
you lack some i18n tools, probably autopiot, getext, can't remember now .. take a look at docs/readme

So that's it, install those ;-)
Greetings.