English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 27 September 2022, 23:32   #1
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
xadmaster devkit creation question

I finally got xadmaster v13 to compile on native 68k with free choice of what clients to be internal/external. Just fresh out of the linker, and did not fail on extracting a dir of 13 test-archives of different formats. Going to run some more tests. And clean up the sources a bit, so the next person doesn't have to use days figuring out how to compile. Then I gonna try to package it relatively nicely, and upload on Aminet.

But I need someone to enlighten me a little bit if I'm gonna get that far.
In the process of getting everything to compile with select-able external/internal clients I updated the libraries/xadmaster.h in the devkit from the one generated from includes/xadmaster.h.in in the main source-directory.
Links to the devkit libraries/xadmaster.h from where I downloaded the source: https://github.com/ashang/libxad/blo...es/xadmaster.h
The one generated from includes/xadmaster.h.in is attached to this post.

After I've done that and made them practically identical, I begun doubting myself.
The files contain a long list of tag-function call flags. But they looked different originally.
the one generated form includes/xadmaster.h.in said:
Code:
#define XAD_EXTENSION           (TAG_PTR+202) 
#define XAD_SETINPOS            (TAG_SIZ+240)
#define XAD_INSERTDIRSFIRST     (TAG_INT+241)
Code:
While the one from devkit directory said:
#define XAD_EXTENSION           (TAG_USER+202)
#define XAD_SETINPOS            (TAG_USER+240)
#define XAD_INSERTDIRSFIRST     (TAG_USER+241)
(comments and empty lines stripped out)

I copied the whole list over the one in devkit, so the lists became identical.
Later I noticed this in same files:
Code:
/* on the Amiga, pointer size == int size == 32 bits */
#define TAG_PTR TAG_USER
#define TAG_INT TAG_USER
Now, I'm really wondering; Should I have kept the tag-function call lists different in devkit form the version internal to main source-tree for some reason?

Thank you for your time.
HC
Attached Files
File Type: txt xadmaster.h.txt (51.0 KB, 81 views)

Last edited by hceline; 27 September 2022 at 23:33. Reason: Formatting and spelling
hceline is offline  
Old 08 October 2022, 14:20   #2
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Great news!
Keep up the good work!
hexaae is offline  
Old 29 December 2022, 13:35   #3
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
I did it all wrong, got it confirmed from one of the original authors.

The easiest way to fix my mess is to start over. I will try again when I've finished building a desktop replacement for my laptop Win10 PC.
And since I apparently don't know what I am doing, I'll refrain from uploading it to Aminet when I get it compiling again. I'll just put it up as an fork of the sf.net import already on GitHub.
hceline is offline  
Old 29 December 2022, 14:29   #4
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Ok... let us know...
OS3.x badly needs an up-to-date xadmaster (for example for many LHA archives incompatible with old format supported by current 68k xadmaster).

Examples of problematic LHAs (for testing) giving errors decompressing through XAD (I use http://m68k.aminet.net/search?query=voodoo-x ):
http://m68k.aminet.net/package/dev/mui/MCC_NList-0.128

Last edited by hexaae; 29 December 2022 at 14:36.
hexaae is offline  
Old 29 December 2022, 16:06   #5
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Actually, I don't see any error on Xad's part inLO unpacking the "MCC_NList-0.128.lha" archive, it basically just adds additional unnamed files from zero k.

"MCC_NList-0.128.lha" was compressed with a particular version of LHA (LHD is the acronym)

---- Italiano ---

In realtà non vedo nessun errore da parte di Xad nello scompattare l'archivio "MCC_NList-0.128.lha", praticamente aggiunge solo dei file aggiuntivi senza nome da zero k.


"MCC_NList-0.128.lha" è stato compresso con una particolare versione di LHA (LHD è l'acronimo)
AMIGASYSTEM is offline  
Old 29 December 2022, 17:55   #6
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
It's a problem with every new LHA compressed files, there are a few on Aminet giving errors on WB3.1 68K with current old XAD when decompressing... From missing dir to overwriting errors...
This never happens uncompressing the same archive with latest Lha from Aminet from shell.

New XAD 13.x includes a newer external LHA (un)archiver data file wich works fine instead, just like latest LHA.
hexaae is offline  
Old 20 January 2023, 22:50   #7
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
I got tired of waiting for the parts for my new Win10 PC, so I got the files transferred my Win7 PC and got my mess cleaned up. Since I changed to much last time, I decided to ignore all compiler warnings*. And just fix the errors that stopped the compile.
I got it to compile, tested with a total of _one_ lha-archive, and put it on GitHub.
Feel free to test it, I take no responsibility for what it might do.
Link: https://github.com/Hagbard-Celin/xadmaster_Amiga_68k

*see my next post.

Last edited by hceline; 22 January 2023 at 10:00. Reason: Forgot about one change, see my next post.
hceline is offline  
Old 22 January 2023, 01:09   #8
James
Registered User
 
Join Date: Mar 2010
Location: Beckenham/England
Posts: 795
Quote:
Originally Posted by hceline View Post
Feel free to test it, I take no responsibility for what it might do.
Link: https://github.com/Hagbard-Celin/xadmaster_Amiga_68k
Nice!
Testing 040 version - all good so far.
James is offline  
Old 22 January 2023, 09:48   #9
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
Good.

Also realized that when I wrote that I ignored compiler warnings, I forgot about fixing the fallout from fixing one "struct Library"/"struct UtilityBase". I had fix the source of the flood of warnings that change made, else I would have gone mad.
hceline is offline  
Old 22 January 2023, 12:42   #10
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Thanks hceline, will there be a version for AROS x86 in the future as well?
AMIGASYSTEM is offline  
Old 22 January 2023, 13:00   #11
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
I'm just on a personal quest to (re)learn Amiga programming.
My changes where to make it compile with sas/c on m68k, and would be of no use for a Aros version.
For Aros I guess it would be better to use the SourceForge-import repository I cloned without my changes, or the sources for the AmigaOS 4 version if you can find them.

Edit: also an Aros version is mentioned in this thread: https://eab.abime.net/showthread.php?t=99207
hceline is offline  
Old 22 January 2023, 13:08   #12
vulture
Registered User
 
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,840
@hceline

Thx a lot for this!
How exactly do I dl the binaries? For some reason, I can only see the available sources.
Thx!

Last edited by vulture; 22 January 2023 at 13:23.
vulture is offline  
Old 22 January 2023, 16:43   #13
hceline
Registered User
 
Join Date: Nov 2009
Location: Top of the world
Posts: 161
If you click the heading that says "Releases" over the link with the label-icon that says "1 tags", you will find a lha archive when you press the arrow in front of "Assets" at the bottom.
hceline is offline  
Old 22 January 2023, 18:08   #14
vulture
Registered User
 
Join Date: Oct 2007
Location: Athens , Greece
Posts: 1,840
Oh yes! Thanks!
vulture is offline  
Old 22 January 2023, 22:16   #15
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Seem to be working great! Testing also against WinUAEEnforcer and I see no hits opening different archive formats, and new LHA ones (like the above mentioned MCC_NList from Aminet) with good old Vodoo-X 1.5, finally!
Will continue testing...
hexaae is offline  
Old 23 January 2023, 18:23   #16
itsmedoofer
Registered User
 
Join Date: May 2021
Location: ZZ9 Plural Z Alpha
Posts: 124
Just installed on a OS3.2.1 vanilla A1200 with 8Mb, giving it a test run with VirusZ and all seems good so far, thanks for your efforts, appreciated. When I get the A1200 Blizzard 060 out I'll give it a spin with that
itsmedoofer is offline  
Old 08 April 2023, 01:46   #17
EctoOne
Registered User
 
EctoOne's Avatar
 
Join Date: Jun 2020
Location: Germany
Posts: 370
I was using this new version over the past few days while setting up a fresh installation. I'm mainly using it in combination with Directory Opus and haven't encountered any issues yet.

So, thanks for this from me as well.
EctoOne is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handy Devkit files amiga_amigo request.Apps 2 11 December 2020 18:12
Scala Presentation creation question Peter support.Apps 6 28 July 2014 23:25
Atari Handy / Lynx devkit Amiga1992 request.Apps 8 31 July 2008 22:23
Xadmaster lib registration Rod_cl support.Apps 4 24 August 2007 00:34
XADMaster Library free key DeCreator News 0 28 June 2004 00:43

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:10.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.31741 seconds with 16 queries