aMule Forum
English => aMule Help => Topic started by: billytcherno on September 06, 2004, 06:30:53 PM
-
on Fedora Core 2, the following error is reported during compile:
make[6]: Entering directory `/usr/src/amule-cvs/src/utils/wxCas/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/lib/wx/include/base-2.4 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -D__VERBOSE_OUTPUT__ -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -MT wxcas-onlinesig.o -MD -MP -MF ".deps/wxcas-onlinesig.Tpo" \
-c -o wxcas-onlinesig.o `test -f 'onlinesig.cpp' || echo './'`onlinesig.cpp; \then mv -f ".deps/wxcas-onlinesig.Tpo" ".deps/wxcas-onlinesig.Po"; \
else rm -f ".deps/wxcas-onlinesig.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/lib/wx/include/base-2.4 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -D__VERBOSE_OUTPUT__ -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -MT wxcas-linuxmon.o -MD -MP -MF ".deps/wxcas-linuxmon.Tpo" \
-c -o wxcas-linuxmon.o `test -f 'linuxmon.cpp' || echo './'`linuxmon.cpp; \
then mv -f ".deps/wxcas-linuxmon.Tpo" ".deps/wxcas-linuxmon.Po"; \
else rm -f ".deps/wxcas-linuxmon.Tpo"; exit 1; \
fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/lib/wx/include/base-2.4 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -D__VERBOSE_OUTPUT__ -W -Wall -g -ggdb -fno-inline -D__DEBUG__ -fmessage-length=0 -MT wxcas-wxcas.o -MD -MP -MF ".deps/wxcas-wxcas.Tpo" \
-c -o wxcas-wxcas.o `test -f 'wxcas.cpp' || echo './'`wxcas.cpp; \
then mv -f ".deps/wxcas-wxcas.Tpo" ".deps/wxcas-wxcas.Po"; \
else rm -f ".deps/wxcas-wxcas.Tpo"; exit 1; \
fi
wxcas.cpp:51:2: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
wxcas.cpp:54:22: wx/image.h: No such file or directory
In file included from wxcas.h:49,
from wxcas.cpp:57:
wxcasframe.h:49:25: wx/statline.h: No such file or directory
wxcasframe.h:50:24: wx/toolbar.h: No such file or directory
In file included from wxcas.h:49,
from wxcas.cpp:57:
wxcasframe.h:63: error: base class `wxFrame' has incomplete type
wxcasframe.h:65: error: syntax error before `*' token
wxcasframe.h:66: error: syntax error before `[' token
wxcasframe.h:68: error: syntax error before `*' token
wxcasframe.h:69: error: syntax error before `*' token
wxcasframe.h:70: error: syntax error before `*' token
wxcasframe.h:72: error: syntax error before `*' token
wxcasframe.h:74: error: syntax error before `*' token
wxcasframe.h:76: error: syntax error before `*' token
wxcasframe.h:77: error: syntax error before `*' token
wxcasframe.h:79: error: syntax error before `*' token
wxcasframe.h:80: error: syntax error before `*' token
wxcasframe.h:81: error: syntax error before `*' token
wxcasframe.h:82: error: syntax error before `*' token
wxcasframe.h:83: error: syntax error before `*' token
wxcasframe.h:84: error: syntax error before `*' token
wxcasframe.h:85: error: syntax error before `*' token
wxcasframe.h:87: error: syntax error before `*' token
wxcasframe.h:88: error: syntax error before `*' token
wxcasframe.h:90: error: syntax error before `*' token
wxcasframe.h:97: error: syntax error before `*' token
wxcasframe.h:98: error: syntax error before `*' token
wxcasframe.h:117: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:117: error: `event' was not declared in this scope
wxcasframe.h:117: error: invalid data member initialization
wxcasframe.h:117: error: (use `=' to initialize static data members)
wxcasframe.h:117: error: variable or field `OnBarRefresh' declared void
wxcasframe.h:118: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:118: error: `event' was not declared in this scope
wxcasframe.h:118: error: invalid data member initialization
wxcasframe.h:118: error: variable or field `OnBarAbout' declared void
wxcasframe.h:119: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:119: error: `event' was not declared in this scope
wxcasframe.h:119: error: invalid data member initialization
wxcasframe.h:119: error: variable or field `OnBarSave' declared void
wxcasframe.h:120: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:120: error: `event' was not declared in this scope
wxcasframe.h:120: error: invalid data member initialization
wxcasframe.h:120: error: variable or field `OnBarPrint' declared void
wxcasframe.h:121: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:121: error: `event' was not declared in this scope
wxcasframe.h:121: error: invalid data member initialization
wxcasframe.h:121: error: variable or field `OnBarPrefs' declared void
wxcasframe.h:122: error: `wxTimerEvent' was not declared in this scope
wxcasframe.h:122: error: `event' was not declared in this scope
wxcasframe.h:122: error: invalid data member initialization
wxcasframe.h:122: error: variable or field `OnRefreshTimer' declared void
wxcasframe.h:123: error: `wxTimerEvent' was not declared in this scope
wxcasframe.h:123: error: `event' was not declared in this scope
wxcasframe.h:123: error: invalid data member initialization
wxcasframe.h:123: error: variable or field `OnFtpUpdateTimer' declared void
wxcasframe.h:135: error: syntax error before `*' token
wxcasframe.h:63: warning: `class WxCasFrame' has virtual functions but non-virtual destructor
wxcas.cpp: In function `wxApp* wxCreateApp()':
wxcas.cpp:60: error: cannot allocate an object of type `WxCas'
wxcas.cpp:60: error: because the following virtual functions are abstract:
/usr/include/wx/app.h:131: error: virtual int wxAppBase::OnRun()
wxcas.cpp: In member function `virtual bool WxCas::OnInit()':
wxcas.cpp:70: error: `wxImage' undeclared (first use this function)
wxcas.cpp:70: error: (Each undeclared identifier is reported only once for each function it appears in.)
wxcas.cpp:70: error: syntax error before `::' token
wxcas.cpp:83: error: `SetPrintMode' undeclared (first use this function)
wxcas.cpp:93: error: `Show' undeclared (first use this function)
wxcas.cpp:94: error: `SetTopWindow' undeclared (first use this function)
make[6]: *** [wxcas-wxcas.o] Error 1
make[6]: Leaving directory `/usr/src/amule-cvs/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/usr/src/amule-cvs/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/amule-cvs/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/amule-cvs'
-
billytcherno,
You are probably using the wrong version of wxGTK. If you use FC2 with apt, you should create a file named /etc/apt/preferences, with some directives that inhibit apt to update these rpms. You should stick to our rpms, because the "official" ones are screwed. Also notice that for version 2.4.2, you need both wxGTK and wxBase. For versions 2.5.1 and up, only wxGTK is needed. Also, gtk2+ support is only possible with wx-2.5.2. Look here for download: http://www.amule.org/dl/index.php?category=3
For example, the following options wil do the job:
/etc/apt/preferences:
-------------------------- CUT HERE -------------------------------
Package: wxGTK
Pin: version 2.4.2-1
Pin-Priority: 989
Package: wxBase
Pin: version 2.4.2-1
Pin-Priority: 989
-------------------------- CUT HERE -------------------------------
Cheers!
-
thx.
yesterday night I installed the 2.5.x of WxBase/widgets, but .configure figured out it wanted to stick with 2.4.2. I will try it out using your advice.
B.
-
I tried your advice (getting rid of the standard Wx rpm's and using the one linked from this website), but it did not work. it is now complaining about header files it cannot find. (installing the -devel- rpm's yields syntax errors.
B
-
I use FC2 here, and before that, I used FC1. We can do some analysis in your system. Paste the result here:
$ rpm -qa | grep -i wx
$ ls -l /usr/bin/wx*
-
mldonkey@mbox mldonkey]$ rpm -qa | grep -i wx
wxBase-2.4.2-1
wxGTK-2.4.2-1
[mldonkey@mbox mldonkey]$ ls -l /usr/bin/wx*
-rwxr-xr-x 1 root root 4864 Nov 28 2003 /usr/bin/wxbase-2.4-config
lrwxrwxrwx 1 root root 26 Sep 7 21:35 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
-rwxr-xr-x 1 root root 413236 Jul 21 09:28 /usr/bin/wxcas
lrwxrwxrwx 1 root root 17 Sep 7 21:52 /usr/bin/wx-config -> wxbase-2.4-config
-
Strange, maybe you need the devel rpm:
http://www.amule.org/dl/details.php?id=21
Can you paste the final lines of output of your configure command? That final resume.
Hey, there seems to be a problem! This is wrong:
lrwxrwxrwx 1 root root 17 Sep 7 21:52 /usr/bin/wx-config -> wxbase-2.4-config
you dont have wxgtk-2.4-config. Look at these instructions: http://www.amule.org/wiki/index.php/Compilation_Installation
Maybe, reinstall the rpms and redo the links. The final links should be:
ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
Cheers!
-
you have to link wx-config against wxgtk's config, not against wxbase's config.
run the following:
ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
(as root) and compile aMule again.
Hope it works.
Greetings!