Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[OT] Problem building gd-2.0.35 library

6 views
Skip to first unread message

Sisyphus

unread,
Dec 4, 2012, 2:53:40 AM12/4/12
to Strawberry
Hi,

Obviously way OT for this list - but I see that Strawberry ships with
gd-2.0.35, so I'm hoping someone here has faced (and solved) the problem
I've struck.

No problem running configure. It terminates with:

###############################
** Configuration summary for gd 2.0.35:

Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: yes
Support for Fontconfig library: yes
Support for Xpm library: yes
Support for pthreads: yes

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

###############################

But running 'make', things go apeshit almost immediately:

###############################
if /bin/sh ./libtool --tag=CC --mode=compile
c -DHAVE_CONFIG_H -I. -I. -I. -IC:/MinGW/msys/1.0/local/include/freetype2
-IC:/MinGW/msys/1.0/local/include -IC:/MinGW/msys/1.0/local/include -MT
gd.lo -MD -MP -MF ".deps/gd.Tpo" -c -o gd.lo gd.c; \
then mv -f ".deps/gd.Tpo" ".deps/gd.Plo"; else rm -f ".deps/gd.Tpo";
exit 1; fi
./libtool: line 893: X--tag=CC: command not found
./libtool: line 926: libtool: ignoring unknown tag : command not found
./libtool: line 893: X--mode=compile: command not found
./libtool: line 1059: *** Warning: inferring the mode of operation is
deprecated.: command not found
./libtool: line 1060: *** Future versions of Libtool will
require --mode=MODE be specified.: command not found
./libtool: line 1203: Xgcc: command not found
./libtool: line 1203: X-DHAVE_CONFIG_H: command not found
./libtool: line 1203: X-I.: command not found
./libtool: line 1203: X-I.: command not found
./libtool: line 1203: X-I.: command not found
./libtool: line 1203: X-IC:/MinGW/msys/1.0/local/include/freetype2: No such
file or directory
./libtool: line 1203: X-IC:/MinGW/msys/1.0/local/include: No such file or
directory
./libtool: line 1203: X-IC:/MinGW/msys/1.0/local/include: No such file or
directory
./libtool: line 1203: X-DNONDLL: command not found
./libtool: line 1203: X-DNONDLL: command not found
./libtool: line 1203: X-MT: command not found
./libtool: line 1203: Xgd.lo: command not found
./libtool: line 1203: X-MD: command not found
./libtool: line 1203: X-MP: command not found
./libtool: line 1203: X-MF: command not found
./libtool: line 1203: X.deps/gd.Tpo: No such file or directory
./libtool: line 1203: X-c: command not found
./libtool: line 1254: Xgd.lo: command not found
./libtool: line 1259: libtool: compile: cannot determine name of library
object
from `': command not found
make[2]: *** [gd.lo] Error 1
make[2]: Leaving directory `/c/_32/comp/level2/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/_32/comp/level2/gd-2.0.35'
make: *** [all] Error 2
###############################

Anyone struck anything like this ?
I've actually built gd-2.0.35 before, and didn't strike this problem. But
now that it's started happening, I can't avoid it - having tried various
combinations of (MSWindows) system, msys shell, and gcc versions.

Sorry for the noise.

Cheers,
Rob

Mark Dootson

unread,
Dec 4, 2012, 5:20:56 AM12/4/12
to win32-...@perl.org
Hi

On 04/12/2012 07:53, Sisyphus wrote:
> Hi,
>
> Obviously way OT for this list - but I see that Strawberry ships with
> gd-2.0.35, so I'm hoping someone here has faced (and solved) the problem
> I've struck.

For Citrus I use cmake on Windows, Linux and MacOSX. My notes for 64
bit mingw build are:

# - remove -m32 flag in top CMAKEfiles.txt for 64 bit, then :-

cmake -G"MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\buildprefix
-DCMAKE_LIBRARY_PATH=C:\buildprefix\lib
-DCMAKE_INCLUDE_PATH=C:\Projects\buildprefix\include -DENABLE_PNG=1
-DENABLE_FREETYPE=1 -DENABLE_JPEG=1 -DCMAKE_RELEASE_TYPE=RELEASE ..\


My builds of freetype, jpeg and png are already in the prefix location.

Hope it helps.

Mark



kmx

unread,
Dec 4, 2012, 8:07:38 AM12/4/12
to win32-...@perl.org

On 4.12.2012 8:53, Sisyphus wrote:
> Hi,
>
> Obviously way OT for this list - but I see that Strawberry ships with
> gd-2.0.35, so I'm hoping someone here has faced (and solved) the problem
> I've struck.

See enclosed patch I am using when building gd for strawberry perl - I am
not saying it will fix your troubles :)

Some notes:
- I am not sure why but for some reason I do not enable pthreads although I
have them
- there is IIRC some mismatch in timestamps so before running ./configure I
call:
touch -r Makefile.am config.* Makefile.* configure* aclocal.*

--
kmx


gd-2.0.35.diff
0 new messages