Building SDL_image from svn with cygwin

right… i could say i’m being a n00b but i’m not really a n00b i’m just a bit
lazy and stupid when it comes to these things…

i built SDL in cygwin with the svn checkout. (yay)

i built SDL_mixer in cygwin with the svn checkout. (yay)

but when it comes to building SDL_image, it dosnt seem to want to find the jpeg
png zlib tiff .h files, which are in /usr/include, so i’m thinking perhaps
there is someting amiss with the configure script.

and after doing the usual just crack the header files in the directory and type
make again routine to try to get SDL_image i got this

(jpeg lib 6b)

.libs/IMG_jpg.o: In function IMG_InitJPG': /home/ROEHRIG/SDL_image/IMG_jpg.c:145: undefined reference to_jpeg_calc_output_dimensions’
/home/ROEHRIG/SDL_image/IMG_jpg.c:146: undefined reference to
_jpeg_CreateDecompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:147: undefined reference to_jpeg_destroy_decompress’
/home/ROEHRIG/SDL_image/IMG_jpg.c:148: undefined reference to
_jpeg_finish_decompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:149: undefined reference to_jpeg_read_header’
/home/ROEHRIG/SDL_image/IMG_jpg.c:150: undefined reference to
_jpeg_read_scanlines' /home/ROEHRIG/SDL_image/IMG_jpg.c:151: undefined reference to_jpeg_resync_to_restart’
/home/ROEHRIG/SDL_image/IMG_jpg.c:152: undefined reference to
_jpeg_start_decompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:153: undefined reference to_jpeg_std_error’
Creating library file: .libs/libSDL_image.dll.a
collect2: ld returned 1 exit status
make: *** [libSDL_image.la] Error 1

i know svn is a testing type scenario, and i am probably being a n00b, just
wondering is all

:wink:

ok, i’m off to drool in the corner

IIRC, Cygwin’s packages such as libjpeg, libpng,… have a binary version
containing just the dll’s (that is what you seem to have installed so far)
and a development package including the header files and the necessary files
to perform the linking stage. Look for them in the “development” category of
Cygwin.

Alberto

El Viernes 29 Junio 2007, neil at cloudsprinter.com escribi?:> right… i could say i’m being a n00b but i’m not really a n00b i’m just a

bit lazy and stupid when it comes to these things…

i built SDL in cygwin with the svn checkout. (yay)

i built SDL_mixer in cygwin with the svn checkout. (yay)

but when it comes to building SDL_image, it dosnt seem to want to find the
jpeg png zlib tiff .h files, which are in /usr/include, so i’m thinking
perhaps there is someting amiss with the configure script.

and after doing the usual just crack the header files in the directory and
type make again routine to try to get SDL_image i got this

(jpeg lib 6b)

.libs/IMG_jpg.o: In function IMG_InitJPG': /home/ROEHRIG/SDL_image/IMG_jpg.c:145: undefined reference to_jpeg_calc_output_dimensions’
/home/ROEHRIG/SDL_image/IMG_jpg.c:146: undefined reference to
_jpeg_CreateDecompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:147: undefined reference to_jpeg_destroy_decompress’
/home/ROEHRIG/SDL_image/IMG_jpg.c:148: undefined reference to
_jpeg_finish_decompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:149: undefined reference to_jpeg_read_header’
/home/ROEHRIG/SDL_image/IMG_jpg.c:150: undefined reference to
_jpeg_read_scanlines' /home/ROEHRIG/SDL_image/IMG_jpg.c:151: undefined reference to_jpeg_resync_to_restart’
/home/ROEHRIG/SDL_image/IMG_jpg.c:152: undefined reference to
_jpeg_start_decompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:153: undefined reference to_jpeg_std_error’ Creating library file: .libs/libSDL_image.dll.a
collect2: ld returned 1 exit status
make: *** [libSDL_image.la] Error 1

i know svn is a testing type scenario, and i am probably being a n00b, just
wondering is all

:wink:

ok, i’m off to drool in the corner

Can i build SDL audio with libasound(alsa-lib) static??
Thanks…

Hello !

IIRC, Cygwin’s packages such as libjpeg, libpng,… have a binary version
containing just the dll’s (that is what you seem to have installed so far)
and a development package including the header files and the necessary
files
to perform the linking stage. Look for them in the “development” category
of
Cygwin.

No this is a general problem with SDL_image and JPEG.

Under cygwin i have all needed JPEG libs and includes installed
from the GnuWin32 Site ( http://gnuwin32.sf.net )
and i get this error.

Configure detects a working jpeg library
but when it comes to printing out the dynamic names for example jpeg.dll
libpngxyxy.dll and so on, it only prints the libpng…dll and the
libtiff…dll.

The exact same thing is happening under Linux ( Slackware 11 ).
The same problem there.

CU

No this is a general problem with SDL_image and JPEG.

Configure detects a working jpeg library
but when it comes to printing out the dynamic names for example jpeg.dll
libpngxyxy.dll and so on, it only prints the libpng…dll and the
libtiff…dll.

The exact same thing is happening under Linux ( Slackware 11 ).
The same problem there.

Does it happen if you grab the latest code from SVN?

Thanks,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

Quoting Alberto Luaces :

IIRC, Cygwin’s packages such as libjpeg, libpng,… have a binary version
containing just the dll’s (that is what you seem to have installed so far)
and a development package including the header files and the necessary files
to perform the linking stage. Look for them in the “development” category of
Cygwin.

this is what i have done, i have all the right files in all the right
places, (
( dev files for png jpeg tiff zlib ) just for some (to me unknown)
reason, they
are not getting picked up on make of SDL_image.>> right… i could say i’m being a n00b but i’m not really a n00b i’m just a

bit lazy and stupid when it comes to these things…

i built SDL in cygwin with the svn checkout. (yay)

i built SDL_mixer in cygwin with the svn checkout. (yay)

but when it comes to building SDL_image, it dosnt seem to want to find the
jpeg png zlib tiff .h files, which are in /usr/include, so i’m thinking
perhaps there is someting amiss with the configure script.

and after doing the usual just crack the header files in the directory and
type make again routine to try to get SDL_image i got this

(jpeg lib 6b)

.libs/IMG_jpg.o: In function IMG_InitJPG': /home/ROEHRIG/SDL_image/IMG_jpg.c:145: undefined reference to_jpeg_calc_output_dimensions’
/home/ROEHRIG/SDL_image/IMG_jpg.c:146: undefined reference to
_jpeg_CreateDecompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:147: undefined reference to_jpeg_destroy_decompress’
/home/ROEHRIG/SDL_image/IMG_jpg.c:148: undefined reference to
_jpeg_finish_decompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:149: undefined reference to_jpeg_read_header’
/home/ROEHRIG/SDL_image/IMG_jpg.c:150: undefined reference to
_jpeg_read_scanlines' /home/ROEHRIG/SDL_image/IMG_jpg.c:151: undefined reference to_jpeg_resync_to_restart’
/home/ROEHRIG/SDL_image/IMG_jpg.c:152: undefined reference to
_jpeg_start_decompress' /home/ROEHRIG/SDL_image/IMG_jpg.c:153: undefined reference to_jpeg_std_error’ Creating library file: .libs/libSDL_image.dll.a
collect2: ld returned 1 exit status
make: *** [libSDL_image.la] Error 1

i know svn is a testing type scenario, and i am probably being a n00b, just
wondering is all

:wink:

ok, i’m off to drool in the corner


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

e-mail provided by Moose Internet Services
http://www.moose.co.uk/

Quoting Sam Lantinga :

No this is a general problem with SDL_image and JPEG.

Configure detects a working jpeg library
but when it comes to printing out the dynamic names for example jpeg.dll
libpngxyxy.dll and so on, it only prints the libpng…dll and the
libtiff…dll.

The exact same thing is happening under Linux ( Slackware 11 ).
The same problem there.

Does it happen if you grab the latest code from SVN?

mine was from SVN ( cygwin )

i dont seem to be able to get a linux to install on this mcahine without it
freaking out and switching off, sorry i tell everyone that. winds me up
cronic.
1024x768 windows xp home as a development environment, great, just freaking
great. right you probably already knew i used svn for cygwin so i’m
spamming up
the lists with my random keeerap again. freaking winxp home… freaking
playmobile flatscreen monitor… blah.

oh yes, i did still have to do the put the .h files in the same directory type
make and hope for the best thing to get it to find png tiff and zlib…
even tho
they are in /usr/include… still dont know if it’s my fault they didnt get
found…

Hello !

Does it happen if you grab the latest code from SVN?

Jup. I tested it yesterday with the latest SVN version.

CU

Hello !

Does it happen if you grab the latest code from SVN?

Also under Mac OSX :

GNU_SOURCE=1 -D_THREAD_SAFE -o libSDL_image.la -rpath /usr/local/lib
-no-undefined -release 1.2 -version-info 1:4:1 IMG.lo IMG_bmp.lo
IMG_gif.lo IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo
IMG_tga.lo IMG_tif.lo IMG_xcf.lo IMG_xpm.lo IMG_xv.lo -lpng -lz
-L/usr/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
sh gcc-fat.sh -dynamiclib -o .libs/libSDL_image-1.2.0.1.4.dylib
.libs/IMG.o .libs/IMG_bmp.o .libs/IMG_gif.o .libs/IMG_jpg.o
.libs/IMG_lbm.o .libs/IMG_pcx.o .libs/IMG_png.o .libs/IMG_pnm.o
.libs/IMG_tga.o .libs/IMG_tif.o .libs/IMG_xcf.o .libs/IMG_xpm.o
.libs/IMG_xv.o /usr/local/lib/libpng12.dylib /usr/local/lib/libz.dylib
-lz -L/usr/local/lib -lSDLmain /usr/local/lib/libSDL.dylib -Wl,-framework
-Wl,Cocoa -install_name /usr/local/lib/libSDL_image-1.2.0.dylib
-Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.4
ld: Undefined symbols:
_jpeg_CreateDecompress
_jpeg_calc_output_dimensions
_jpeg_destroy_decompress
_jpeg_finish_decompress
_jpeg_read_header
_jpeg_read_scanlines
_jpeg_resync_to_restart
_jpeg_start_decompress
_jpeg_std_error
/usr/bin/libtool: internal link edit command failed
make: *** [libSDL_image.la] Error 1

CU

This is fixed in subversion, thanks!

See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

autogen spits out some errors… sunno if these are significant…

acinclude.m4:194: the serial number must appear before any macro definition
/usr/share/aclocal/libsmi.m4:8: warning: underquoted definition of
AM_PATH_LIBSMI
/usr/share/aclocal/libsmi.m4:8: run info ‘(automake)Extending aclocal’
/usr/share/aclocal/libsmi.m4:8: or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal

and i still had to put jpeglib.h png tiff z etc in the SDL_image dirctory to
get it to behave… even tho they are in /usr/include - is this something i am
doing wrong? shouldnt the configure / sdl_image find this?

i am about as good with makefiles / autoconf as i am at writing sane
understandable posts to this list :wink:

and this pops up at the end

Creating library file: .libs/libSDL_image.dll.a
./.libs/lt-showimage.c: In function main': ./.libs/lt-showimage.c:113: warning: passing arg 2 ofexecv’ from
incompatible
pointer type

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sam Lantinga wrote:

This is fixed in subversion, thanks!

Hi, this is in http://www.libsdl.org/cgi/viewvc.cgi/trunk/SDL_image/ ?

Thanks,

Jim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGlOD4QuDJiZ/QrH0RAmE6AKCt4iyZ9yb/B64RnMG6AQcxf0R/6QCgmap2
6+Ii3QwJtscYR22YlC7Pv2s=
=H2Rl
-----END PGP SIGNATURE-----

Hello !

SDL_image shows “dynamic linking jpeg.dll …” now.

The only thing i have to do to get it compile
is to do export CFLAGS=-I/usr/local/include
then call configure.

jpeg is installed the same as libpng in /usr/local
on my system.

CU