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 3

Author Topic: amuleweb: missing progress bar pictures  (Read 12762 times)

anybody

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
amuleweb: missing progress bar pictures
« on: May 18, 2005, 10:34:49 AM »

Hi everyone,

I'm having some problems with the webserver interface:
- the pictures for the progress bar are not there, the link is incorrect
- instead of linking to a file, the link goes to http://server:4711/%EF%BF%BD%EF%B [and so on]

I made a screenshot to illustrate the problem:



I'm using aMule 2.0.1 on Gentoo Linux, and i installed it using the gentoo ebuild available from here.
[Edit: use flags "+amuled -debug +gtk2 +nls +remote -stats +unicode" were used when compiling]

Has anyone seen this problem? Is this gentoo specific ? How do i fix it?
« Last Edit: May 18, 2005, 10:37:24 AM by anybody »
Logged

aldebaran

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 42
Re: amuleweb: missing progress bar pictures
« Reply #1 on: May 18, 2005, 12:42:41 PM »

I remember having faced the same problem a few days ago when I was upgrading from amule rc8 to 2.0.0 stable.
The problem was easly fixed by delating all references to amuleweb in my directory tree before reinstalling amule.

anybody, try doing "make uninstall" in your compiled & sources amule directory (where you usually do "make install")
and than do "find / |grep amuleweb" and manually delete all entries shown by the previous command.
After reinstalling amule it should be fixed (at least to me it was)

oh, I was on Debian Sarge ;)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb: missing progress bar pictures
« Reply #2 on: May 18, 2005, 01:02:07 PM »

old amuleweb should be under

/usr/share/amule/*
or
/usr/local/share/amule/*

also what you could do, alltho its actually since 2.0 not needed anymore, copy the webserver icons, and the amule.tmpl to
/home/user_name/.amule/webserver/default/

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."

anybody

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb: missing progress bar pictures
« Reply #3 on: May 18, 2005, 10:31:44 PM »

Thanks for all your replies, i tried

uninstalling amule, then

- i checked /usr/share/amule/* (webserver directory was in there, after uninstalling amule it was empty, so it's contents were up to date after reinstalling)
- i checked /usr/local/share/amule/* (didn't exist)
- i tried a find / | grep -i amule, and deleting all that belongs to it (wasn't too much except for the amule profile directory)

I also deleted the amule profile in my home directory and did all configuration from scratch...

--- and it didn't change anything ---

The strange thing is: All the pictures except those for the progress bar are accessible and work fine! Also, the aMule.tmpl file is accessible, since if I rename it, the webserver doesn't work anymore.

On the console where i had started amuled, i once in a while also get errors like this:

22:42:03: Error: can't open file '/usr/share/amule/webserver/default/%EF%BF%BD%EF%BF%BDfa%01%13/emule.gif' (error 2: No such file or directory)


I really don't understand this...  :( How can it come up with such a File Name? Might this be a Unicode Problem?
« Last Edit: May 18, 2005, 10:35:46 PM by anybody »
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuleweb: missing progress bar pictures
« Reply #4 on: May 18, 2005, 11:51:43 PM »

This is a known unicode problem and removing of folders doesn't help. If you compile wxGTK without unicode the problem disappear but this isn't recommendable.

cu
Mr Faber
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb: missing progress bar pictures
« Reply #5 on: May 19, 2005, 08:10:58 AM »

huh?
/me uses unicode and I dont have a problem at all....

I use wx-2.6 and my system is also unicode compatible...
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."

lfroen

  • Guest
Re: amuleweb: missing progress bar pictures
« Reply #6 on: May 19, 2005, 02:04:29 PM »

You must be missing libpng or libpng-devel or both. If you would have it where "configure" can find it, your images would be generated by amuleweb "on-the-fly". This way you don't have to install external files
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuleweb: missing progress bar pictures
« Reply #7 on: May 19, 2005, 02:21:13 PM »

@stefanero
Just ask GonoszTopi, it has something to do with unicode but not on all pcs. Without unicode I haven't the problem.

cu
Mr Faber
Logged

anybody

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb: missing progress bar pictures
« Reply #8 on: May 19, 2005, 07:22:09 PM »

Quote
Originally posted by lfroen
You must be missing libpng or libpng-devel or both. If you would have it where "configure" can find it, your images would be generated by amuleweb "on-the-fly". This way you don't have to install external files

Hm, i had libpng-1.2.8 installed...

wxGTK had been compiled without png support, so i recompiled it this afternoon (along with amule, just to be sure) and ... nothing changed.

The missing files are gif files, according to their url, BTW.

I will try disabling unicode now and report if it fixes my problems.
Logged

anybody

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb: missing progress bar pictures
« Reply #9 on: May 19, 2005, 08:51:31 PM »

Quote
Originally posted by anybody
I will try disabling unicode now and report if it fixes my problems.

I recompiled amule without unicode (wxGTK still has unicode support) and i can report:

I now have beautiful progress bars in the Webinterface !



Does anyone care to fix this bug ? Beeing able to use Unicode would really be useful ;-)
« Last Edit: May 19, 2005, 08:52:34 PM by anybody »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb: missing progress bar pictures
« Reply #10 on: May 19, 2005, 09:00:54 PM »

you compiled amule without unicode? and wxGTK with?
how should that work? amule uses always what wxGTK is compiled with...
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."

anybody

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb: missing progress bar pictures
« Reply #11 on: May 19, 2005, 11:05:31 PM »

Uhm, i've been looking at the gentoo ebuilds now for 30 mins, and i think i'm (slowly) starting to understand it:

aMule compilation seems to take these options:

--with-wx-config=${WX_CONFIG}
--with-wxbase-config=${WX_CONFIG}

and the variable WX_CONFIG (which is defined by the /usr/portage/eclass/wxwidgets.eclass script which is inherited by the ebuild)

and points to either the gtk2-ansi-release-2.6 or gtk2-unicode-ansi-2.6 config file (depending on whether amule was emerged with or without unicode).

So that seems like it is possible to compile amule without unicode, even when wxGTK uses it ? At least that's how i understand this code...
 
The 2 wxGTK config files gtk2-ansi-release-2.6 and gtk2-unicode-release-2.6 differ by the following:

Code: [Select]
tux config # diff gtk2-ansi-release-2.6 gtk2-unicode-release-2.6

366c366
< this_chartype="ansi"
---
> this_chartype="unicode"
882c882
< [ -z "$output_option_basename"     ] || echo "wx_gtk2"
---
> [ -z "$output_option_basename"     ] || echo "wx_gtk2u"
948c948
< ldlibs_base="-lz -ldl -lm"
---
> ldlibs_base="-lwxregexu-2.6 -lz -ldl -lm"
995c995
<             _libname="wx_base"
---
>             _libname="wx_baseu"
997c997
<             _libname="wx_gtk2"
---
>             _libname="wx_gtk2u"
1054c1054
<             _libname="wx_base"
---
>             _libname="wx_baseu"
1056c1056
<             _libname="wx_gtk2"
---
>             _libname="wx_gtk2u"
1085c1085
<         link_deps="${libdir}/libwx_gtk2-2.6.a"
---
>         link_deps="${libdir}/libwx_gtk2u-2.6.a"
1088c1088
<         wx_libs="$wx_libs -lwx_gtk2-2.6"
---
>         wx_libs="$wx_libs -lwx_gtk2u-2.6"
1145c1145
< _cppflags=$(echo "-I${libdir}/wx/include/gtk2-ansi-release-2.6" $_include_cppflags "-DGTK_NO_CHECK_CASTS" " -D__WXGTK__" "" $_gui_cppflags "" "-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1" "")
---
> _cppflags=$(echo "-I${libdir}/wx/include/gtk2-unicode-release-2.6" $_include_cppflags "-DGTK_NO_CHECK_CASTS" " -D__WXGTK__" "" $_gui_cppflags "" "-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1" "")
« Last Edit: May 19, 2005, 11:07:47 PM by anybody »
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amuleweb: missing progress bar pictures
« Reply #12 on: May 19, 2005, 11:17:03 PM »

Simply run "amule --version" and it will tell you what the wxGTK library it is actually linked against uses. The reason for the multiple config-scripts is that the current ebuild builds multiple versions of the library for compatibility reasons.
Logged

anybody

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb: missing progress bar pictures
« Reply #13 on: June 04, 2005, 11:51:14 PM »

Bug is still present in aMule v2.0.2 :-(
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuleweb: missing progress bar pictures
« Reply #14 on: June 05, 2005, 10:26:28 AM »

And in CVS too ....
It is a sporadic unicode problem. Maybe it has something to do with the combination unicode + Firefox.

cu
Mr Faber
« Last Edit: June 05, 2005, 10:28:43 AM by Mr Faber »
Logged
Pages: [1] 2 3