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
   /  Classic Amiga Software
      /  RAR XAD - AmigaOS3 ?
Register To Post

PosterThread
Ancalimon 
RAR XAD - AmigaOS3 ?
Posted on 18-Jan-2012 16:31:23
#1 ]
Regular Member
Joined: 23-Mar-2004
Posts: 433
From: Istanbul

Is there an XAD RAR for AmigaOS3.x ?

http://aminet.net/package/util/arc/xad_rar (this is for AmigaOS4)

I want to be able to list inside of RAR files using Dopus5 by double clicking.

(Amikit is configured to do so but since it's missing RAR for XAD, it gives an error)

Last edited by Ancalimon on 18-Jan-2012 at 04:41 PM.

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 18-Jan-2012 19:45:56
#2 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

@Ancalimon

There's an old one, but RAR3 won't be accessible with it.

As for the new one (mine), I will say what I say to everybody else who asks: The source is in the archive, you are welcome to try building it for OS3.

I had a go here recently but it fails with linker errors - missing clib functions (I think I had to fix a few other things too, can't remember). I can send you the more-likely-to-work source if you want it?

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
salass00 
Re: RAR XAD - AmigaOS3 ?
Posted on 18-Jan-2012 22:07:31
#3 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@Chris_Y

Quote:

I had a go here recently but it fails with linker errors - missing clib functions (I think I had to fix a few other things too, can't remember). I can send you the more-likely-to-work source if you want it?


Do you remember what clib functions specifically?

I could take a look at it if you want. I assume it's just normal C code and no C++?

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 18-Jan-2012 23:02:39
#4 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

@salass00

My mistake, libnix is looking for various lib bases, I can't remember if I tried globalising these (although _SysBase in xad_rar.o is almost certainly that). I think whatever startup code it needs needs to be added manually. There are a few other odd things, but that seems to be the main issue. I have very limited knowledge of libnix and even less of using it with no startup code.

Quote:
$ m68k-amigaos-g++ -O3 -mcrt=newlib -nostartfiles -o RAR extheader.o xad_rar.o
libnixstuff.o Rar_Extractor-0.2.1/unrarlib/unrarlib.o Rar_Extractor-0.2.1/unrar
/librarextract.a -lstdc++ -noixemul
xad_rar.o(.text+0xe2):xad_rar.o: undefined reference to `_SysBase'
xad_rar.o(.text+0x12a):xad_rar.o: undefined reference to `_SysBase'
xad_rar.o(.text+0x14c):xad_rar.o: undefined reference to `_SysBase'
xad_rar.o(.text+0x2c4):xad_rar.o: undefined reference to `_SysBase'
xad_rar.o(.text+0x2f8):xad_rar.o: undefined reference to `_SysBase'
xad_rar.o(.text+0x32e):xad_rar.o: more undefined references to `_SysBase' follow

/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(__mulsi3.o)(.text+0x8):__mulsi3.o: undefined reference to `___UtilityBa
se'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(__udivsi3.o)(.text+0x14):__udivsi3.o: undefined reference to `___Utilit
yBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(__divsi3.o)(.text+0x14):__divsi3.o: undefined reference to `___UtilityB
ase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(abort.o)(.text+0x38):abort.o: undefined reference to `_exit'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x96):open.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0xf0):open.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x108):open.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x146):open.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x180):open.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x1b0):open.o: more undefined references to `___DOSBase'
follow
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x254):open.o: undefined reference to `_SysBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x26c):open.o: undefined reference to `__WBenchMsg'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x274):open.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x2c0):open.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x2d8):open.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(open.o)(.text+0x234):open.o: undefined reference to `_exit'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(__stdio.o)(.text+0x40):__stdio.o: undefined reference to `_exit'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(freopen.o)(.text+0x3a):freopen.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(freopen.o)(.text+0x4a):freopen.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(freopen.o)(.text+0x74):freopen.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(freopen.o)(.text+0x80):freopen.o: undefined reference to `___DOSBase'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(raise.o)(.text+0x82):raise.o: undefined reference to `_exit'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(__seterrno.o)(.text+0xc):__seterrno.o: undefined reference to `___DOSBa
se'
/usr/local/amiga/lib/gcc/m68k-amigaos/3.4.0/../../../../m68k-amigaos/lib/libnix/
libnix.a(__chkabort.o)(.text+0x4):__chkabort.o: undefined reference to `_SysBase
'


Quote:
I could take a look at it if you want. I assume it's just normal C code and no C++?


It's a mixture. librarextract is C++, my code is C.

Send me an email if interested and I'll get it over to you.

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
Fab 
Re: RAR XAD - AmigaOS3 ?
Posted on 18-Jan-2012 23:08:20
#5 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

@Ancalimon

If you're interested, i also wrote a XAD RAR3 client for MorphOS, along with an unrar.library, based on unrar. It handles multiple archives and passwords.

If you're bored, i can pass you the sources. Will need a couple adjustments (mostly for the library specific code).

 Status: Offline
Profile     Report this post  
Ancalimon 
Re: RAR XAD - AmigaOS3 ?
Posted on 19-Jan-2012 3:14:09
#6 ]
Regular Member
Joined: 23-Mar-2004
Posts: 433
From: Istanbul

@Fab

I'm afraid the best code I wrote was 10 print "hello" 20 goto 10

:(

 Status: Offline
Profile     Report this post  
salass00 
Re: RAR XAD - AmigaOS3 ?
Posted on 19-Jan-2012 9:53:49
#7 ]
Elite Member
Joined: 31-Oct-2003
Posts: 2707
From: Finland

@Chris_Y

Quote:

Send me an email if interested and I'll get it over to you.


Check your PMs.

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 20-Jan-2012 19:42:01
#8 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

@Ancalimon

Check your PMs

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 24-Jan-2012 8:32:50
#9 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

The link in the very first post of this thread now also contains a 68k build.

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
vulture 
Re: RAR XAD - AmigaOS3 ?
Posted on 24-Jan-2012 9:19:33
#10 ]
Regular Member
Joined: 21-Sep-2006
Posts: 225
From: Greece

@Chris_Y

Many thx for this Chris, it was much needed! :)

 Status: Offline
Profile     Report this post  
Ancalimon 
Re: RAR XAD - AmigaOS3 ?
Posted on 24-Jan-2012 10:55:02
#11 ]
Regular Member
Joined: 23-Mar-2004
Posts: 433
From: Istanbul

@Chris_Y

Wow thanks! It extracts small rar archives and one 60mb one using UnARC now. But I can't unarchive many large rar files. I don't even see what's in them.

Also there's a problem. If UnArc is able to show what's inside a RAR file, I lose huge amount of RAM which doesn't come back even if I close UnArc.

Last edited by Ancalimon on 24-Jan-2012 at 11:00 AM.

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 24-Jan-2012 20:26:10
#12 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

@Ancalimon

Quote:

Wow thanks! It extracts small rar archives and one 60mb one using UnARC now. But I can't unarchive many large rar files. I don't even see what's in them.


It probably needs at least the amount of free RAM as the archive takes up on disk. It shouldn't need much more than that for listing, but will additionally need the length of the uncompressed file for extracting.

Quote:
Also there's a problem. If UnArc is able to show what's inside a RAR file, I lose huge amount of RAM which doesn't come back even if I close UnArc.


Thanks for that, I've just spotted a huge memory leak which I must have thought was getting cleared up by xadmaster's built-in free functions. It's fixed, but it'll take me a few days to repackage.

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
Ancalimon 
Re: RAR XAD - AmigaOS3 ?
Posted on 24-Jan-2012 20:50:21
#13 ]
Regular Member
Joined: 23-Mar-2004
Posts: 433
From: Istanbul

@Chris_Y

Is there no way to make it require less memory? My a4000T only has 128mb and and A1200 256mb. I can't even unarchive many rars of ISO files I have using WinUAE with 1gb ram. Some files are really small like 60Mb and their contents don't show up.

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 24-Jan-2012 21:09:16
#14 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

@Ancalimon

Can you point me to one of the small files that doesn't open? It's probably not a memory issue.

1GB should be plenty to just list the contents of an archive.


edit I'm having problems getting XAD to even recognise the client since I recompiled, so this might take longer than expected.

Last edited by Chris_Y on 24-Jan-2012 at 10:29 PM.

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 27-Jan-2012 18:10:10
#15 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

The memory leak fix is now up at the same address (RAR v2.3). It is highly recommended to upgrade.

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
Ancalimon 
Re: RAR XAD - AmigaOS3 ?
Posted on 27-Jan-2012 20:38:48
#16 ]
Regular Member
Joined: 23-Mar-2004
Posts: 433
From: Istanbul

@Chris_Y

That's great! thanks a lot. Now I wish I can list and unrar files larger than 60mb having 128mb memory using UnARC. Will it happen? :D

I can simply use the unrar command but being able to unarchive a single file from a rar full of many files easily using UnArc or dopus is cool.

Last edited by Ancalimon on 27-Jan-2012 at 08:40 PM.

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 27-Jan-2012 22:07:02
#17 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

@Ancalimon

Not sure if the library I use supports that; certainly the unrarlib interface needs the entire file to be in RAM. I'd need to examine the base library to see if it can do decompression from disk. I cheat on OS4 by allowing it to use VMEM

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 29-Jan-2012 0:08:12
#18 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

@Ancalimon

It looks easy enough to use the abstraction interface to do direct XAD file operations. If I haven't done anything with it in a few months, please remind me

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
Chris_Y 
Re: RAR XAD - AmigaOS3 ?
Posted on 10-Feb-2012 23:16:45
#19 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3209
From: Beds, UK

@all

You may have noticed RAR v2.4 is in the AmiKit update

I'm just putting together a v2.5 release which has a couple of minor improvements (will show packed size and datestamp, and maybe permissions but I have no idea if that is working)

My large test archive isn't hitting swap space anymore under OS4, so there is a clear performance gain on that particular file.

Last edited by Chris_Y on 10-Feb-2012 at 11:17 PM.

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 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