aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: error while referating on wxTaskBarIconAreaBase::DoPopupMenu(wxMenu*, int, int)  (Read 5521 times)

Skuromis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29

Moin Moin!

I have a strange problem compiling an aMUle-CVS. Configureoutput is fine but while make it occurs an error:

Code: [Select]
/usr/local/lib/libwx_gtk_adv-2.5.so: undefined reference to `wxTaskBarIconAreaBase::DoPopupMenu(wxMenu*, int, int)'
I tried together with some other guys to fix this problem. First caught wxWidget-CVS and compiled it with --disable-gtk2 --with-gtk. It worked well and make install was a success. No other wx versions were installed. After that I did make clean (later try distclean), ./autogen.sh,
./configure --prefix=/home/skuromis/aMule/ --with-wx-config=/home/skuromis/aMule/bin/wx-config --enable-alc --enable-alcc --enable-webserver --enable-webservergui --enable-amule-daemon (with different options, e.g. without any, without alc and alcc)
make.
But evry try, the error above occured. Without alc and alcc somewhat later but it occured.
At least I set

#if wxCHECK_VERSION(2, 5, 3)
#define USE_WX_TRAY 1
#endif

to #define USE_WX_TRAY 0 in MuleTrayIcon.h file. It made no difference. I tested the install in /home/skuromis/ too, it didn't work, same error.

Frustrade I went back to wx2.4 and compiled the aMule without deamon. This version works very very well, but without deamon.

BTW: same wxWidgets-CVS aso did it on a friends machine...

Does anybody have a hint for me? Thx, Skuro.
« Last Edit: January 27, 2005, 03:57:15 AM by Skuromis »
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827

As I am the one where it works I have to add that _my_ wxCVS is from 14.01.2005, so it is not exactly the same...
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235

post

ls -la /usr/local/bin/wx*
ls -la /usr/bin/wx*
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."

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see

Quote
Originally posted by Skuromis
/usr/local/lib/libwx_gtk_adv-2.5.so: undefined reference to `wxTaskBarIconAreaBase::DoPopupMenu(wxMenu*, int, int)'

This is certainly a problem with the wx library you generated. Try first with a tarball of wx-2.5.3, then go to wxCVS, because wxCVS is changing a lot these days. I compile wx like that:

$ ./configure --enable-debug --disable-optimise --enable-debug_flag --enable-debug_info --enable-debug_gdb --enable-gtk2 --disable-unicode --prefix=/usr/local/wxWidgets-cvs && make
$ su
$ make install

You don't need the --prefix if you install it in the default location, but I do that because I use several versions of wx. To run amule with wx in a different directory, you do:
$ LD_LIBRARY_PATH=/usr/local/wxWidgets-cvs/lib/ /path/to/amule &

Cheers!
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795

It's a bug in wxCVS already reported to the wx developers.
Logged

Skuromis

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 29

Ok first thx for replying.

I have to point out, that really the _same_ wxCVS worked on deltas machine. I downloaded the wxCVS 2 times, a few hours before, an directly after deltas succuess on his machine.

Using the *nonCVS* wx2.5widgets works good, but the aMule crashes all the time. Thats why I want to compile CVS. And I link it to gtk1.2 because of memory leaks...

I'll try again (later CVS) with your hints, phoenix, (in home directory as descriped in aMuleWiki) and report here.

Stefanero, I deleted these files, because I went back to wx2.4. In my ~diretory it is deleted too. ;O/ AFAIR it were 3 files

777 wx-config -> gtk-ansi-release-2.5
777 wxrc-2.5 -> wxrc-2.5
755 wxrc-2.5

by install in ~ dir.

Edit: Kry ok, I'll have a look on their Website.

Greets, Skuro
« Last Edit: January 27, 2005, 02:44:12 PM by Skuromis »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795

you're wrong, delta's one doesn't compile either. Unless you use wxGTK2. *GTK2*
Logged