Click Here
home features news forums classifieds faqs links search
6155 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
22 crawler(s) on-line.
 95 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!

/  Forum Index
   /  Amiga Development
      /  SDL_image errors when porting TDFSB to OS4
Register To Post

PosterThread
AlexC 
SDL_image errors when porting TDFSB to OS4
Posted on 17-Jun-2010 8:10:38
#1 ]
Super Member
Joined: 22-Jan-2004
Posts: 1301
From: City of Lost Angels, California.

I saw on Aminet that Stefan Haubenthal uploaded a MOS version of TDFSB (3D filesystem browser) and it seems like a neat little utility so I tried to compile it but I'm getting some errors and can't quite figure out if it's me missing something or SDL_image.a missing some functions.

The errors I get all pertain to functions starting with jpeg_, png_ and TIFF, like:

Quote:
/SDK/local/newlib/lib/libSDL_image.a(IMG_jpg.o): In function `IMG_InitJPG':
/Work/SDL_image-1.2.10/IMG_jpg.c:155: undefined reference to `jpeg_std_error'
[...]
/SDK/local/newlib/lib/libSDL_image.a(IMG_png.o): In function `IMG_InitPNG':
/Work/SDL_image-1.2.10/IMG_png.c:250: undefined reference to `png_sig_cmp'
[...]
/SDK/local/newlib/lib/libSDL_image.a(IMG_tif.o): In function `IMG_InitTIF':
/Work/SDL_image-1.2.10/IMG_tif.c:111: undefined reference to `TIFFSetErrorHandler'


I was using some older SDL_image includes from EvilRich I think, so I updated my SDL_image SDK files with the latest archive on OS4Depot but it produces an even longer list of undefined references.

I added AmigaOS to the compile.sh file and it's command line reads:
Quote:
gcc tdfsb.c $ARGS1 $ARGS2 -I. -lSDL_image -lGL -lGLU -lglut -O2 -o tdfsb;


Any clue?

_________________
AlexC's free OS4 software collection

AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation

 Status: Offline
Profile     Report this post  
MickJT 
Re: SDL_image errors when porting TDFSB to OS4
Posted on 17-Jun-2010 8:11:37
#2 ]
Cult Member
Joined: 13-Jan-2005
Posts: 525
From: Adelaide, South Australia

@AlexC

Yep, you need to link it with libtiff and libjpeg too.

Edit: and libpng, and probably libz. -ltiff -lpng -ljpeg -lz. Try that.

Last edited by MickJT on 17-Jun-2010 at 08:13 AM.
Last edited by MickJT on 17-Jun-2010 at 08:12 AM.

 Status: Offline
Profile     Report this post  
DAX 
Re: SDL_image errors when porting TDFSB to OS4
Posted on 17-Jun-2010 8:31:46
#3 ]
Elite Member
Joined: 30-Sep-2009
Posts: 2790
From: Italy

@AlexC
Advice for the future: for this kind of OS4.x tech questions I suggest you post them here: http://www.amigans.net/

All developers dwell there (including many that don't visit here).

_________________
SamFlex Complete 800Mhz System + AmigaOS 4.1 Update 4
Amiga 2000 DKB 2MB ChipRam GVP G-Force040 Picasso 2 OS3.9 BB2
AmigaCD 32

 Status: Offline
Profile     Report this post  
AlexC 
Re: SDL_image errors when porting TDFSB to OS4
Posted on 26-Jun-2010 7:15:27
#4 ]
Super Member
Joined: 22-Jan-2004
Posts: 1301
From: City of Lost Angels, California.

@MickJT

Thanks for the hint, that was it, unfortunately the exe it produced was crashing on launch.

afxgroup gave me a hand and compiled a more stable binary which shows previews of image files and videos. That's about all it does at this stage.

Unfortunately it needs a lot of changes to be remotely useful on the Amiga and I'm not sure it's worth the effort. I'll look around for some better written alternative if there's any.

@Dax
It's hard enough for me to keep up with one forum and there's probably more coders here than there as there's people from all 4 flavors of the OS.

_________________
AlexC's free OS4 software collection

AmigaOne XE/X1000/X5000/UAE-PPC OS4 laptop/X-10 Home Automation

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle