Click Here
home features news forums classifieds faqs links search
6071 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.
 112 guest(s) on-line.
 2 member(s) on-line.


 Karlos,  deadwood

You are an anonymous user.
Register Now!
 Karlos:  50 secs ago
 deadwood:  2 mins ago
 clint:  6 mins ago
 zipper:  6 mins ago
 pixie:  26 mins ago
 agami:  39 mins ago
 bhabbott:  49 mins ago
 amigakit:  1 hr 8 mins ago
 Vidar:  2 hrs 43 mins ago
 AmigaPapst:  2 hrs 54 mins ago

Software News   Software News : SDL 1.2.11 as Shared Object released
   posted by Varthall on 23-Jan-2008 11:42:34 (4742 reads)
A long awaited new version of SDL has been released. SDL 1.2.11 is now compiled as an external shared object file called libSDL-1.2.so which must be copied in the SOBJS: directory. From now any SDL program compiled with this version will be dinamically linked against it, resulting in smaller executable sizes. Download it from here: http://www.rcdrummond.net/sdl/index.html
    

STORYID: 4186
Related Links
· More about Software News
· News by Varthall


Most read story about Software News
UBoot 2010.06.04 for Sam460ex available

Last news about Software News
Hollywood APK Compiler 4.0 released
Printer Friendly Page  Send this Story to a Friend

Goto page ( 1 | 2 )

PosterThread
Kicko 
Re: SDL 1.2.11 as Shared Object released
Posted on 23-Jan-2008 15:56:38
#1 ]
Elite Member
Joined: 19-Jun-2004
Posts: 5009
From: Sweden

Pole !!!

Thanks for making it as a shared object. I see OWB 1.5 uses it :)

 Status: Offline
Profile     Report this post  
ChrisH 
Re: SDL 1.2.11 as Shared Object released
Posted on 23-Jan-2008 16:24:43
#2 ]
Elite Member
Joined: 30-Jan-2005
Posts: 6679
From: Unknown

Are "shared objects" one of the new features of OS4? What are the benefits compared to the Amiga's traditional "shared libraries"? Are they just Object Orientated libraries?


_________________
Author of the PortablE programming language.
It is pitch black. You are likely to be eaten by a grue...

 Status: Offline
Profile     Report this post  
Samurai_Crow 
Re: SDL 1.2.11 as Shared Object released
Posted on 23-Jan-2008 16:31:39
#3 ]
Elite Member
Joined: 18-Jan-2003
Posts: 2320
From: Minnesota, USA

@ChrisH

They aren't really "shared objects" in that they must be reloaded each time a new program uses them. They do allow easy porting of Linux libraries like SDL however.

@Thread

I've been waiting for this for a long time! This means that closed-source commercial software that uses SDL can now be published for AmigaOS 4!

 Status: Offline
Profile     Report this post  
nbache 
Re: SDL 1.2.11 as Shared Object released
Posted on 23-Jan-2008 22:56:46
#4 ]
Super Member
Joined: 8-Apr-2003
Posts: 1034
From: Copenhagen, Denmark

@Samurai_Crow:

Quote:
They aren't really "shared objects" in that they must be reloaded each time a new program uses them. They do allow easy porting of Linux libraries like SDL however.

Right. They do still give the benefit of reusing the code/functionality between different programs. Useful because that code still only needs to be developed once instead of for each project, and because the functionality taken from the .so will be known to be the same in all sharing programs, i.e. predictable behaviour. Still worthy benefits IMO.

Maybe they could be called "reusable objects"?

Quote:
I've been waiting for this for a long time! This means that closed-source commercial software that uses SDL can now be published for AmigaOS 4!

Oh, cool. Got any?

Best regards,

Niels

 Status: Offline
Profile     Report this post  
corto 
Re: SDL 1.2.11 as Shared Object released
Posted on 23-Jan-2008 23:15:23
#5 ]
Regular Member
Joined: 24-Apr-2004
Posts: 342
From: Grenoble (France)

Thanks Richard ! Now I can use these libraries in PointRider, it will be in the new release to come (2 more weeks !!). I hope they contain SDL, SDL_image and SDL_ttf !
This will make a good test.

 Status: Offline
Profile     Report this post  
spotUP 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 0:19:05
#6 ]
Elite Member
Joined: 19-Aug-2003
Posts: 2896
From: Up Rough Demo Squad

GREAT work rich! How I have waited for this!
Corto: So pointrider is going multiplatform?


_________________
AOS4 Betatester, Peg2, G4@1ghz, Radeon 9250 256mb, 1gb RAM.

http://www.asciiarena.com
http://www.uprough.net

 Status: Offline
Profile     Report this post  
Samwel 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 1:30:47
#7 ]
Elite Member
Joined: 7-Apr-2004
Posts: 3404
From: Sweden

Great work Richard! Typical that I sold my µA1 before I had a chance to test this.
But good to have when I get a new machine.


_________________
/Harry

[SOLD] µA1-C - 750GX 800MHz - 512MB - Antec Aria case

Avatar by HNL_DK!

 Status: Offline
Profile     Report this post  
Samurai_Crow 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 2:38:37
#8 ]
Elite Member
Joined: 18-Jan-2003
Posts: 2320
From: Minnesota, USA

@nbache

Regarding commercial SDL programs? Nothing official yet but stay tuned.

 Status: Offline
Profile     Report this post  
evilrich 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 3:37:01
#9 ]
Cult Member
Joined: 19-Oct-2003
Posts: 534
From: Unknown

Quote:
They aren't really "shared objects" in that they must be reloaded each time a new program uses them. They do allow easy porting of Linux libraries like SDL however.

You're correct that the in-memory instance isn't shared (at the moment - in future, the read-only portion of shared objects in memory could be). But the on-disk instance is.

I know that disk space and network bandwidth aren't at a premium these days, but, as is, the OS4.0 shared object system allows developers and users to benefit from potentially much smaller executable sizes. Plus, there's the really great advantage that programs don't need to be recompiled to benefit from bug-fixes and new features in the libraries that they dynamically link to.

Cheers,
Rich

 Status: Offline
Profile     Report this post  
AlexC 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 4:45:23
#10 ]
Super Member
Joined: 22-Jan-2004
Posts: 1300
From: City of Lost Angels, California.

I downloaded and installed both the shared object and the dev files, then tried to recompile my port of CGTerm but it doesn't look like it's using the .so file. The stripped executable is as large as before.

Is there a particular compiler or linker flag I should use?

Right now the flags I have in the makefile are:

CFLAGS=-newlib -O3 -Wall -ISDK:Local/newlib/include/SDL -DPREFIX=\"$(PREFIX)\"

LDFLAGS=-newlib -LSDK:Local/newlib/lib -lSDL -lauto -lm


_________________
AlexC's free OS4 software collection

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

 Status: Offline
Profile     Report this post  
COBRA 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 8:52:10
#11 ]
Super Member
Joined: 26-Apr-2004
Posts: 1809
From: Auckland, New Zealand

Quote:
Plus, there's the really great advantage that programs don't need to be recompiled to benefit from bug-fixes and new features in the libraries that they dynamically link to.


I think that's the main point, the SDL library can be bugfixed and optimized in the future, and a user updating to the latest library will instantly have all the applications he already has running better and faster.

And I don't know about others, but depsite the fact that hard-drive space is not an issue these days, I do prefer smaller executable sizes, I mean why put the same several megabytes of code into every application when it's not necessary.

Excellent work Rich

 Status: Offline
Profile     Report this post  
Rogue 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 13:12:13
#12 ]
OS4 Core Developer
Joined: 14-Jul-2003
Posts: 3999
From: Unknown

Quote:
What are the benefits compared to the Amiga's traditional "shared libraries"?


They are not meant to replace the traditional shared libraries. They work exactly like UNIX shared libraries (semantically; as others have pointed out, the current implementation will not really share the code and static data).

Their purpose is:

- Provide an easier portability for UNIX libraries, which, let's face it, are radically different from the standard Amiga shared libraries.
- Provide the possibility to update what used to be static link libraries without recompilation (i.e. in this case SDL programs can benefit from new versions)
- Provide a means to satisfy the LGPL without your code becoming subject to it. Now you can write proprietary software that uses SDL on AmigaOS 4.0 (granted some people might consider this a drawback, but if you do, just consider the alternative of not having said program at all).

In the future, they'll be updated to provide real shared code and static data. This can come in very handy for things like the BOOST library which is a VERY big chunk of code which can be then shared between instances. Or libX11 for example.


_________________
Seriously, if you want to contact me do not bother sending me a PM here. Write me a mail

 Status: Offline
Profile     Report this post  
Xenic 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 15:15:45
#13 ]
Super Member
Joined: 2-Feb-2004
Posts: 1246
From: Pennsylvania, USA

Initially I thought there was something wrong with the lha archive but it turned out to be the RESRAD: ram drive. Unarc fails when I try to unpack the archive to RESRAD: (It looks like the directory name and the "info" file get truncated and become the same name). Unpacking to RAM: works so this must be a problem with RESRAD:. Maybe you could notify the person who maintains the RESRAD: code.

Once I unpacked to RAM: the SDL files themselves seem OK.


_________________
X1000 with 2GB memory & OS4.1FE

 Status: Offline
Profile     Report this post  
Hans 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 18:04:10
#14 ]
Elite Member
Joined: 27-Dec-2003
Posts: 5067
From: New Zealand

@AlexC

It looks like you're still linking to the static version. I'd assume that the new archive has instructions on how to linked to the shared-object version. I haven't had time to check it out myself yet.


_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
https://keasigmadelta.com/ - More of my work.

 Status: Offline
Profile     Report this post  
AlexC 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 19:29:07
#15 ]
Super Member
Joined: 22-Jan-2004
Posts: 1300
From: City of Lost Angels, California.

@Xenic

That's because the last A1 release of the ramdrive device still uses DOS\0 and thus doesn't support long filenames :-/

Since then it has been changed to DOS\6 so it should work for Classic users as they have version 52.4, but A1 users may have to wait until the next update.


@Hans

I didn't find any documentation in the dev archive.


_________________
AlexC's free OS4 software collection

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

 Status: Offline
Profile     Report this post  
whose 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 20:48:09
#16 ]
Cult Member
Joined: 21-Jun-2005
Posts: 893
From: Germany

@Rogue:

Granted, there is some need for supporting the porting developers (and there is much done in the meantime), but I would love to see some (no, not some... much more!) support for the native developers, too, mainly regarding the field of API documentation and examples. That would be really great.

Regards

 Status: Offline
Profile     Report this post  
AlexC 
Re: SDL 1.2.11 as Shared Object released
Posted on 24-Jan-2008 21:53:16
#17 ]
Super Member
Joined: 22-Jan-2004
Posts: 1300
From: City of Lost Angels, California.

Okay, with Joerg's help I got it working.

Here's what I had to do:

- Upgrade from gcc 3.x to gcc 4.x
and
- Add "-use-dynld" to the linker flags

The resulting exe can't be stripped directly or it will not run properly (strip removes too much stuff), so to strip it I used the command:

strip `nm -u cgterm | sed "s/U /-K/"` cgterm -R.comment

and it works fine.

Without using the shared object, cgterm was 454808 bytes, now it's 151236 bytes


_________________
AlexC's free OS4 software collection

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

 Status: Offline
Profile     Report this post  
ChaosLord 
Re: SDL 1.2.11 as Shared Object released
Posted on 25-Jan-2008 2:57:24
#18 ]
Cult Member
Joined: 4-Apr-2005
Posts: 782
From: Houston, Texas USA

RAM: has supported long filenames (107 chars) since before I can remember.
At least since my A1200 and A3000.


_________________
Wanna try a wonderfull magical Amiga strategy game?
Total Chaos AGA

 Status: Offline
Profile     Report this post  
salass00 
Re: SDL 1.2.11 as Shared Object released
Posted on 25-Jan-2008 9:20:48
#19 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

Quote:

RAM: has supported long filenames (107 chars) since before I can remember.
At least since my A1200 and A3000.


Doesn't matter since RAM: and RAD: are entirely different things.

RAM: uses the RAM-Handler filesystem (a filesystem which stores file data in RAM).

RAD: uses ramdrive.device which is a trackdisk device driver which emulates a disk using a block of allocated memory, which means that the filename limit is dependant on what filesystem the device is mounted/formatted with.

 Status: Offline
Profile     Report this post  
Rogue 
Re: SDL 1.2.11 as Shared Object released
Posted on 25-Jan-2008 11:53:18
#20 ]
OS4 Core Developer
Joined: 14-Jul-2003
Posts: 3999
From: Unknown

Quote:
Granted, there is some need for supporting the porting developers (and there is much done in the meantime), but I would love to see some (no, not some... much more!) support for the native developers, too, mainly regarding the field of API documentation and examples. That would be really great.


There are autodocs for the API, and if that fails, people can always ask. However, there seems to be a generally low developer concentration currently - most people do ports, and this is right now the main source for software.

I agree that we could really use a new SDK with a few missing bits and pieces added, but since the day only has 48 hours (I think) there is little I can do about it.


_________________
Seriously, if you want to contact me do not bother sending me a PM here. Write me a mail

 Status: Offline
Profile     Report this post  

Goto page ( 1 | 2 )

[ 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