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 12747 times)

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
amuleweb needs libgd-dev
« Reply #15 on: June 05, 2005, 11:45:06 AM »

Hi, all!

The solution, at least in my environment, is to install libgd2-dev. This library seems to be needed for amuleweb. After installing the package(s) and running configure/make/make install the progress indicators are working fine.

The history for this solution:

I had the same problem on my machine (Debian Sarge) and, after reading this thread, decided to take a deeper look...
I noticed earlier that I received the following message from configure everytime, but didn't think much about it, as it was only a warning and I do have libpng 1.2.8 installed
Quote
WARNING: libpng-devel >= 1.2.0 is needed for amuleweb

I took a look into config.log. The following code is taken from one of my tests (amule 2.0.1)
Code: [Select]
configure:5833: checking for libpng-config
configure:5852: found /usr/bin/libpng-config
configure:5865: result: /usr/bin/libpng-config
configure:5879: checking for libpng version >= 1.2.0
configure:5940: result: yes (version 1.2.8)
configure:5952: checking gd.h usability
configure:5964: gcc -c   conftest.c >&5
conftest.c:58:16: gd.h: No such file or directory
configure:5970: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "aMule"
| #define PACKAGE_TARNAME "amule"
| #define PACKAGE_VERSION "2.0.1"
| #define PACKAGE_STRING "aMule 2.0.1"
| #define PACKAGE_BUGREPORT "admin@amule.org"
| #define PACKAGE "amule"
| #define VERSION "2.0.1"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include
| #if HAVE_SYS_TYPES_H
| # include
| #endif
| #if HAVE_SYS_STAT_H
| # include
| #endif
| #if STDC_HEADERS
| # include
| # include
| #else
| # if HAVE_STDLIB_H
| #  include
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include
| # endif
| # include
| #endif
| #if HAVE_STRINGS_H
| # include
| #endif
| #if HAVE_INTTYPES_H
| # include
| #else
| # if HAVE_STDINT_H
| #  include
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include
| #endif
| #include
configure:5993: result: no
configure:5997: checking gd.h presence
configure:6007: gcc -E  conftest.c
conftest.c:24:16: gd.h: No such file or directory
configure:6013: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "aMule"
| #define PACKAGE_TARNAME "amule"
| #define PACKAGE_VERSION "2.0.1"
| #define PACKAGE_STRING "aMule 2.0.1"
| #define PACKAGE_BUGREPORT "admin@amule.org"
| #define PACKAGE "amule"
| #define VERSION "2.0.1"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include
configure:6033: result: no
configure:6068: checking for gd.h
configure:6075: result: no
configure:6121:
WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
In lines 6++ and 70++ a missing gd.h is mentioned!
It seems to be clear that the problem is this missing header file, which comes with the libgd-dev packages.

I'm not on intimate terms with gnu autoconf, but I suppose it's just a thing of having the wrong warning message.

And I didn't change a thing about unicode or libpng*

Try it for yourselves. I hope it'll work for you, too...
« Last Edit: June 05, 2005, 11:47:31 AM by Radek »
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuleweb: missing progress bar pictures
« Reply #16 on: June 05, 2005, 08:05:37 PM »

Yes, libgd-dev is needed AND configure warns about it :)
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: amuleweb: missing progress bar pictures
« Reply #17 on: June 05, 2005, 08:33:53 PM »

Then why do we allow compilation without? Or at least display something to indicate that it wasn't present at compile time?
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuleweb: missing progress bar pictures
« Reply #18 on: June 05, 2005, 08:46:22 PM »

Hm, that seems to be the problem. I have the same warning but I am sure that libpng ist installed (v 1.2.8 ). I use Gentoo but lipng seems to haven't any special use flags.

cu
Mr Faber
« Last Edit: June 05, 2005, 08:47:34 PM by Mr Faber »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb: missing progress bar pictures
« Reply #19 on: June 05, 2005, 08:51:29 PM »

/me has libpng-devel and gentoo aswell
but no problem at all  :]
my progressbar is nice and not brocken like the screenshot
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."

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuleweb: missing progress bar pictures
« Reply #20 on: June 06, 2005, 02:22:58 PM »

In Portage there is only libpng. Is there any difference to libpng-devel?

cu
Mr Faber
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb: missing progress bar pictures
« Reply #21 on: June 06, 2005, 02:43:14 PM »

sorry, I just wrote it like that because I am used to it....I use gentoo aswell
and I have just the libpng pkg v1.2.8 installed and gd v.2.0.32
and my configure detects it without problems

Code: [Select]
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes

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

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amuleweb: missing progress bar pictures
« Reply #22 on: June 06, 2005, 02:46:41 PM »

We do warn at configure time and amuleweb works fine, just progress bars are not there.
Logged

Radek

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 149
Re: amuleweb: missing progress bar pictures
« Reply #23 on: June 06, 2005, 06:58:00 PM »

@Kry
At least on my system the only warning given was
Quote
WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
There was no mentioning of libgd!

@stefanero
Once I had libgd installed, configure detected it, of course,  and the above warning was gone, as was the problem with the progress indicators.

For me the point was mainly the missing (or, more precisely, misleading) warning, which let me search in the wrong places.
Logged
There are 10 kinds of people - those who are able to understand binary numbers and those who aren't...

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: amuleweb: missing progress bar pictures
« Reply #24 on: June 06, 2005, 07:34:35 PM »

After I have added the libpng-path with --with-libpng-config the warning disappears but the progressbar images aren't shown.
But I have  realized that gd was missing. After I have installed it and recompiled aMule the images are shown correctly.
If amuleweb ist compiled with unicode gd is needed. If it isn't there the compilation should be aborted.

Many thanks to Radek. :baby:

cu
Mr Faber
« Last Edit: June 06, 2005, 07:36:36 PM by Mr Faber »
Logged

anybody

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb: missing progress bar pictures
« Reply #25 on: June 10, 2005, 11:28:58 AM »

Emerging media-libs/gd and reemerging amule (not sure if this was necessary) fixed my problems. Great ! Finally the Webinterface works as it should.
Logged

Kisja

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

Hi,
I have same problems compiling aMule 2.0.3. I've downloaded libgd and libpng tarballs , made ./configure and "make && make install". When I run
./configure --disable-monolithic --enable-amule-daemon --enable-amulecmd --enable-webserver --prefix=/tmp/amule.cvs >test.txt
I get:
...
checking for libpng-config... /usr/local/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
...
 WARNING! gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
 amuleweb will be compiled but file download progress bar images will NOT be generated.
 See the above error on gd check for solutions.
....
Then I've added the --enable-cas option and now I get following messages:
....
checking for gdlib-config... /usr/local/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.33)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libpng-config... /usr/local/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking for gd.h... (cached) yes
...

But the bars still don't work! What do I do wrong?

Thanks for help!

Kisja
Logged

Kisja

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb: missing progress bar pictures
« Reply #27 on: June 18, 2005, 02:11:46 PM »

Hi,
I've changed the --prefix option of libpng and libgd to --prefix=/usr
But when I run /usr/bin/gdlib-config --all:

GD library  2.0.33
includedir: /usr/include
cflags:     -I/usr/include
ldflags:     -L/usr/local/lib -Wl,-rpath,/usr/local/lib
libs:       -ljpeg -lpng12 -lz -lm  /usr/lib/libiconv.so
libdir:     /usr/lib
features:   GD_JPEG GD_PNG GD_GIF


Why does the ldflags line point to /usr/local??? Coud that be the reason?

Regards
Kisja
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuleweb: missing progress bar pictures
« Reply #28 on: June 18, 2005, 02:21:35 PM »

could be yes, your executably looks to be in usr/bin but the libs in /usr/local/

maybe delete the gd and png stuff and reinstall it....
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."

Kisja

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: amuleweb: missing progress bar pictures
« Reply #29 on: June 20, 2005, 09:31:55 PM »

I have competely recompiled and reinstalled wxbase, libpng and libgd.

gdlib-config --all shows now:
GD library 2.0.33
includedir: /usr/include
cflags: -I/usr/include
ldflags: -L/usr/local/lib -Wl,-rpath,/usr/local/lib
libs: -ljpeg -lpng12 -lz -lm /usr/lib/libiconv.so
libdir: /usr/lib
features: GD_JPEG GD_PNG GD_GIF


Seems to be correct but still no bars! I've also tried to compile without unicode support, but it didn't work too.

Any other ideas?
Logged
Pages: 1 [2] 3