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

Author Topic: amule-cvs does not compile with wx 2.5.1  (Read 8588 times)

Belegdol

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
amule-cvs does not compile with wx 2.5.1
« on: June 30, 2004, 12:44:02 PM »

I've installed wx-gtk2 rpms from wxwidgets website. Not unicode, version 2.5.1. If i try to compile amule-cvs 20040630, it crashes. Have a look at this:

[jsikorski@DOMOWY amule-cvs]$ rpm -qa wx*
wx-gtk2-static-2.5.1-1
wx-gtk2-2.5.1-1
wx-base-2.5.1-1
wx-gtk2-devel-2.5.1-1
wx-gtk2-contrib-devel-2.5.1-1
wx-base-devel-2.5.1-1
wx-gtk2-gl-2.5.1-1
wx-base-static-2.5.1-1
wx-gtk2-contrib-2.5.1-1

after typing make:

Making all in src
make[6]: Entering directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../..    -I/usr/lib/wx/include/base-2.5 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__   -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:42:2: #error You must set wxUSE_PRINTING_ARCHITECTURE to 1 in setup.h to compile wxCas.
In file included from wxcas.h:42,
                 from wxcas.cpp:48:
wxcasframe.h:56: error: base class `wxFrame' has incomplete type
wxcasframe.h:58: error: syntax error before `*' token
wxcasframe.h:59: error: field `m_toolBarBitmaps' has incomplete type
wxcasframe.h:61: error: syntax error before `*' token
wxcasframe.h:62: error: syntax error before `*' token
wxcasframe.h:63: error: syntax error before `*' token
wxcasframe.h:65: error: syntax error before `*' token
wxcasframe.h:67: 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:73: error: syntax error before `*' token
wxcasframe.h:74: error: syntax error before `*' token
wxcasframe.h:75: error: syntax error before `*' token
wxcasframe.h:76: error: syntax error before `*' token
wxcasframe.h:77: error: syntax error before `*' token
wxcasframe.h:78: error: syntax error before `*' token
wxcasframe.h:80: error: syntax error before `*' token
wxcasframe.h:81: error: syntax error before `*' token
wxcasframe.h:83: error: syntax error before `*' token
wxcasframe.h:90: error: syntax error before `*' token
wxcasframe.h:91: error: syntax error before `*' token
wxcasframe.h:110: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:110: error: `event' was not declared in this scope
wxcasframe.h:110: error: invalid data member initialization
wxcasframe.h:110: error: (use `=' to initialize static data members)
wxcasframe.h:110: error: variable or field `OnBarRefresh' declared void
wxcasframe.h:111: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:111: error: `event' was not declared in this scope
wxcasframe.h:111: error: invalid data member initialization
wxcasframe.h:111: error: variable or field `OnBarAbout' declared void
wxcasframe.h:112: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:112: error: `event' was not declared in this scope
wxcasframe.h:112: error: invalid data member initialization
wxcasframe.h:112: error: variable or field `OnBarSave' declared void
wxcasframe.h:113: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:113: error: `event' was not declared in this scope
wxcasframe.h:113: error: invalid data member initialization
wxcasframe.h:113: error: variable or field `OnBarPrint' declared void
wxcasframe.h:114: error: `wxCommandEvent' was not declared in this scope
wxcasframe.h:114: error: `event' was not declared in this scope
wxcasframe.h:114: error: invalid data member initialization
wxcasframe.h:114: error: variable or field `OnBarPrefs' declared void
wxcasframe.h:115: error: `wxTimerEvent' was not declared in this scope
wxcasframe.h:115: error: `event' was not declared in this scope
wxcasframe.h:115: error: invalid data member initialization
wxcasframe.h:115: error: variable or field `OnRefreshTimer' declared void
wxcasframe.h:116: error: `wxTimerEvent' was not declared in this scope
wxcasframe.h:116: error: `event' was not declared in this scope
wxcasframe.h:116: error: invalid data member initialization
wxcasframe.h:116: error: variable or field `OnFtpUpdateTimer' declared void
wxcasframe.h:128: error: syntax error before `*' token
wxcasframe.h:56: warning: `class WxCasFrame' has virtual functions but non-virtual destructor
wxcas.cpp: In function `wxAppConsole* wxCreateApp()':
wxcas.cpp:51: error: cannot allocate an object of type `WxCas'
wxcas.cpp:51: error:   because the following virtual functions are abstract:
/usr/include/wx/app.h:100: error:       virtual int wxAppConsole::OnRun()
wxcas.cpp: In member function `virtual bool WxCas::OnInit()':
wxcas.cpp:57: error: `wxImage' undeclared (first use this function)
wxcas.cpp:57: error: (Each undeclared identifier is reported only once for each function it appears in.)
wxcas.cpp:57: error: syntax error before `::' token
wxcas.cpp:70: error: `SetPrintMode' undeclared (first use this function)
wxcas.cpp:80: error: `Show' undeclared (first use this function)
wxcas.cpp:81: error: `SetTopWindow' undeclared (first use this function)
make[6]: *** [wxcas-wxcas.o] Error 1
make[6]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsikorski/downloads/amule-cvs'
make: *** [all] Error 2

Do I have to use wx-gtk2-unicode packages? My distro is Mandrake 10.0 Official.
« Last Edit: June 30, 2004, 12:46:25 PM by Belegdol »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
RE: amule-cvs does not compile with wx 2.5.1
« Reply #1 on: June 30, 2004, 02:55:19 PM »

Belegdol,

We still do not officially support 2.5.1, but amule does compile with it. The problem is that the rpms that you used were probably created with the wrong configure options. Soon we will release information on how to do with 2.5.1, stay tuned.

Cheers!
Logged

Belegdol

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
Re: amule-cvs does not compile with wx 2.5.1
« Reply #2 on: June 30, 2004, 08:40:18 PM »

Hi. To make it more clear: rpms were downloaded from wxwidgets website and amule does not vompile with them. However, amule cvs does compile with wx-gtk2-unicode 2.5.2 packages, but crashes right after startup. I would try wx-gtk2-unicode 2.5.1 package, but it depends on wxbase-unicode package, which does not exist. As long as I'm not sure with which options I should compile wxgtk and wxbase, I will wait for directions as compiling requires quite a large amount of time on my machine. Keep on the good work.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amule-cvs does not compile with wx 2.5.1
« Reply #3 on: June 30, 2004, 10:16:55 PM »

btw: if you compile your wxGTK 2.5.1 then you don't need no wxBase 2.5.1....
since in wxGTK the wxBase libs are included...

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

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: amule-cvs does not compile with wx 2.5.1
« Reply #4 on: June 30, 2004, 10:57:15 PM »

get wxgtk 2.5.1 src, and compile it with ./configure --prefix=/usr --enable-gtk2 --disable-gtk --disable-debug --disable-unicode ..

but remove all the wx rpms before

greets

Belegdol

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
Re: amule-cvs does not compile with wx 2.5.1
« Reply #5 on: July 01, 2004, 09:48:11 AM »

Still no success:

Making all in src
make[6]: Entering directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
g++  -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__     -o wxcas  wxcas-onlinesig.o wxcas-linuxmon.o wxcas-wxcas.o wxcas-wxcasprint.o wxcas-wxcasframe.o wxcas-wxcasprefs.o wxcas-wxcascte.o wxcas-wxcaspix.o -pthread -lwx_gtk2_html-2.5 -lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_detach'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_attach'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make[6]: *** [wxcas] Error 1
make[6]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsikorski/downloads/amule-cvs'
make: *** [all] Error 2
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: amule-cvs does not compile with wx 2.5.1
« Reply #6 on: July 01, 2004, 09:51:41 AM »

ls -l /usr/bin/wx*
ls -l /usr/local/bin/wx*

Belegdol

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
Re: amule-cvs does not compile with wx 2.5.1
« Reply #7 on: July 01, 2004, 10:20:25 AM »

[root@DOMOWY jsikorski]#  ls -l /usr/bin/wx*
lrwxrwxrwx  1 root root    17 lip  1 09:47 /usr/bin/wx-config -> wxgtk2-2.5-config*
-rwxr-xr-x  1 root root 10661 lip  1 09:47 /usr/bin/wxgtk2-2.5-config*
[root@DOMOWY jsikorski]# ls -l /usr/local/bin/wx*
lrwxrwxrwx  1 root root    17 lip  1 08:56 /usr/local/bin/wx-config -> wxgtk2-2.5-config*
-rwxr-xr-x  1 root root 10667 lip  1 08:56 /usr/local/bin/wxgtk2-2.5-config*
« Last Edit: July 01, 2004, 10:22:11 AM by Belegdol »
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: amule-cvs does not compile with wx 2.5.1
« Reply #8 on: July 01, 2004, 10:38:11 AM »

there is your problem.. wx in 2 different dirs ..

rm -f /usr/local/bin/wx*
rm -f /usr/local/lib/libwx*
ldconfig

and recompile amule

Belegdol

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
Re: amule-cvs does not compile with wx 2.5.1
« Reply #9 on: July 01, 2004, 02:15:36 PM »

I made a mistake, I've installed wx in /usr/local and tried to compile amule. It  failed. I must have forgotten to uninstall wx from /usr/local before installing it in /usr. Shame on me...
« Last Edit: July 01, 2004, 02:18:21 PM by Belegdol »
Logged

Belegdol

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
Re: amule-cvs does not compile with wx 2.5.1
« Reply #10 on: July 01, 2004, 02:20:20 PM »

It still fails in the same place. Maybe I will better wait for rc4 mdk rpm and till then book port forwarding in my ISP  ;)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amule-cvs does not compile with wx 2.5.1
« Reply #11 on: July 01, 2004, 09:39:52 PM »

hey

if you still want to try it, install it just simple in /usr/local
and then use in amule the configure option --with-wx-config and point it to the rigth place....
so
./configure --with-wx-config=/usr/local/bin/wxgtk-2.5-config

and make sure you also have /usr/local/lib in your ld.so.conf...

its working here fine ;)

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Frankk

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 142
    • http://frankk.no-ip.com
Re: amule-cvs does not compile with wx 2.5.1
« Reply #12 on: July 01, 2004, 09:58:27 PM »

Quote
Originally posted by Belegdol
Still no success:

Making all in src
make[6]: Entering directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
g++  -I/usr/include/ -D__CRYPTO_MDK_SUSE_FC__ -Wall -g -ggdb -fno-inline -D__DEBUG__     -o wxcas  wxcas-onlinesig.o wxcas-linuxmon.o wxcas-wxcas.o wxcas-wxcasprint.o wxcas-wxcasframe.o wxcas-wxcasprefs.o wxcas-wxcascte.o wxcas-wxcaspix.o -pthread -lwx_gtk2_html-2.5 -lwx_gtk2_adv-2.5 -lwx_gtk2_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_detach'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_accel_group_attach'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libwx_gtk2_core-2.5.so: undefined reference to `_gtk_rc_context_get_default_font_name'
collect2: ld returned 1 exit status
make[6]: *** [wxcas] Error 1
make[6]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas/src'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils/wxCas'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/jsikorski/downloads/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jsikorski/downloads/amule-cvs'
make: *** [all] Error 2

Same exact problem here with Slack 10.0 with both GCC 3.3.4 and 3.2.3
I have only one version of wxGTK installed in /usr, so the problem must be somewhere else...

It compiled (but didn't work) with wxGTK 2.5.2
« Last Edit: July 01, 2004, 09:59:02 PM by Frankk »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amule-cvs does not compile with wx 2.5.1
« Reply #13 on: July 01, 2004, 10:01:06 PM »

hmm why don't you guys try to disable wxcas....
and check if its a wxcas problem or if also amule fails to compile....

--disable-wxcas

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Frankk

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 142
    • http://frankk.no-ip.com
Re: amule-cvs does not compile with wx 2.5.1
« Reply #14 on: July 01, 2004, 10:20:11 PM »

I don't have my linux box under my hands now, but I tryed also --disable-wxcas cos someone (deltaHF?) told me to try it, but had the same problem.
Anyhow I will do another full wx cleanup and reinstall it and try new cvs. I tryed with cvs-20040627.
Logged
Pages: [1] 2