Remove this ad

Lead

Feb 20 14 6:38 PM

Tags : :

Ubuntu 13.10
aMule svn 10834

I have compiled the wxWidgets-2.8.12 in this way:

[code]./configure \
--prefix=/home/manuel/Scrivania/wxWidgets-2.8.12/wxBase \
--with-toolkit=base --disable-gui --enable-unicode --without-subdirs --without-expat --disable-shared[/code]

--disable-shared because I'm compiling for a nas

I have compiled the aMule in this way:

[code]./configure \
--with-wx-prefix=/home/manuel/Scrivania/wxWidgets-2.8.12/wxBase \
--with-wx-config=/home/manuel/Scrivania/wxWidgets-2.8.12/wxBase/bin/wx-config \
--with-libpng-prefix=/usr \
--with-libpng-config=/usr/bin/libpng-config \
--with-toolkit=base --disable-dependency-tracking --disable-monolithic --enable-amule-daemon --enable-webserver --enable-amulecmd --disable-amule-gui \
--disable-cas --disable-wxcas --disable-xas --disable-upnp --enable-optimize --disable-rpath --enable-static --with-language=it.po --enable-geoip --with-geoip-static[/code]

--enable-static because I'm compiling for a nas

During the configure aMule I have this warning:

[code]
checking for libpng version >= 1.2.0... yes (version 1.5.4)
checking if libpng is usable... no (failed to compile and link test program)
configure: WARNING:
libpng >= 1.2.0 not found.
amuleweb will be compiled but file download progress bar images will
NOT be generated.[/code]

without the option --enable-static

the warning disappears

[code]checking for libpng version >= 1.2.0... yes (version 1.5.4)
checking if libpng is usable... yes[/code]

So I modified the configure to bypass the control of libpng

From:
[code]
png_uint_32 libpng_vn = png_access_version_number();
printf("\nlibpng version %i\n\n", libpng_vn);
;
return 0;
}

ACEOF
if acfn_c_try_link "$LINENO"; then :[/code]

To:
[code]
png_uint_32 libpng_vn = png_access_version_number();
printf("\nlibpng version %i\n\n", libpng_vn);
;
return 0;
}

ACEOF
[b]#if acfn_c_try_link "$LINENO"; then : #Bypass del test perche' non rileva le libpng nonostante siano installate
if true; then :[/b]
[/code]

Now the compilation goes smoothly and download progress bar images in amuleweb is present!

This is probably a bug in the configure?

The same compiling amule 2.6.6 is done without warnings and without modification to the configure...
Quote    Reply   
Remove this ad
Remove this ad

#2 [url]

Feb 21 14 8:21 AM

Re: Compilation problem with libpng

If you're using --enable-static while configuring aMule, the tests will look for libraries that can be statically linked. I guess that on your system you only have dynamic libpng library, that's why it fails to link with --enable-static

However, if you only need wxWidgets to be statically linked into the aMule executable, it's sufficient to compile a link wxWidgets only as a static library, and then aMule doesn't need --enable-static (the liker will first look for a dynamic wxWidgets library, but when it doesn't find one, it will use the static one).

concordia cum veritate

Quote    Reply   

#3 [url]

Feb 21 14 9:27 PM

Re: Compilation problem with libpng

I have compiled aMuled / amuleweb for a NAS Thecus M3800

I need static libraries, I also tried to compile nlibpng static and link correctly

Always same notice and the progress bar is not visible

During the compilation of version 2.2.6 I did not notice and the progress bar on amuleweb is present

Now that I've jumped the ceck the progress bar is present also in version 2.3.1

This means that nlibpng in the system are ok

Quote    Reply   
Add Reply

Quick Reply

bbcode help