Welcome, Guest. Please login or register.

Author Topic: graphics.library, KS1.3  (Read 3893 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
graphics.library, KS1.3
« on: October 02, 2015, 12:44:11 PM »
Is there a way to extract graphics.library  version 37 from ROM ?
Better sorry than worry.
 

Offline olsen

Re: graphics.library, KS1.3
« Reply #1 on: October 02, 2015, 12:58:48 PM »
Quote from: orange;796731
Is there a way to extract graphics.library  version 37 from ROM ?
That depends upon how you are intending to use it. Figuring out where the module starts and where it ends is not that hard (well, I can look it up in certain build protocol files, so that's probably not a fair assessment). Extracting and relocating it would be the difficult bit.

Are you sure you want V37? That's in Kickstart 2.04, not in Kickstart 1.3 (V34).
 

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: graphics.library, KS1.3
« Reply #2 on: October 02, 2015, 01:17:48 PM »
Quote from: olsen;796733
That depends upon how you are intending to use it. Figuring out where the module starts and where it ends is not that hard (well, I can look it up in certain build protocol files, so that's probably not a fair assessment). Extracting and relocating it would be the difficult bit.

Are you sure you want V37? That's in Kickstart 2.04, not in Kickstart 1.3 (V34).


I see. Thanks. Yes, I'd like v37, didn't know where it was, sorry.
I'm trying to run lha (almost any version) in vamos, linux. For some reason, lha seems to need that library. Older lha nedds arp.library (found it)  and older graphics.library.

here is output from ./vamos lha_68k:
Quote

14:19:32.326       path:WARNING:  ami_command_to_sys_path: ami_path='libs:utility.library' not found!
14:19:32.333       path:WARNING:  ami_command_to_sys_path: ami_path='libs:intuition.library' not found!
14:19:32.338       path:WARNING:  ami_command_to_sys_path: ami_path='libs:graphics.library' not found!
14:19:32.338     libmgr:  ERROR:  [create_lib] can't create auto lib without FD file: graphics.library
14:19:32.339       path:WARNING:  ami_command_to_sys_path: ami_path='PROGDIR:graphics.library' not found!
14:19:32.340     libmgr:  ERROR:  [create_lib] can't create auto lib without FD file: graphics.library
Cannot open "graphics.library", version 37.
« Last Edit: October 02, 2015, 01:21:11 PM by orange »
Better sorry than worry.
 

guest11527

  • Guest
Re: graphics.library, KS1.3
« Reply #3 on: October 02, 2015, 01:20:14 PM »
Besides... Just by extracting it you do gain not much. Graphics is a rather weird mixture of C and assembly code, and the latter makes heavy use of macros.
 

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: graphics.library, KS1.3
« Reply #4 on: October 02, 2015, 01:22:04 PM »
Quote from: Thomas Richter;796736
Besides... Just by extracting it you do gain not much. Graphics is a rather weird mixture of C and assembly code, and the latter makes heavy use of macros.


so, is there no way to run Amiga lha in vamos?
Better sorry than worry.
 

guest11527

  • Guest
Re: graphics.library, KS1.3
« Reply #5 on: October 02, 2015, 01:30:56 PM »
Quote from: orange;796737
so, is there no way to run Amiga lha in vamos?
lha is a command line program. It does not require graphics. It requires the interface to the console. Thus, it will just read and write arguments the standard way, and in addition, uses a bit GetDeviceProc() to play with the console. No gfx there.

Unless you're talking about some other lha than what I'm thinking about...
 

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: graphics.library, KS1.3
« Reply #6 on: October 02, 2015, 01:46:08 PM »
Quote from: Thomas Richter;796738
lha is a command line program. It does not require graphics. It requires the interface to the console. Thus, it will just read and write arguments the standard way, and in addition, uses a bit GetDeviceProc() to play with the console. No gfx there.

Unless you're talking about some other lha than what I'm thinking about...


Thanks. Perhaps its trying to open some requester window because of missing lib?
I'll try to get a list of used libs on real amiga.
Better sorry than worry.
 

guest11527

  • Guest
Re: graphics.library, KS1.3
« Reply #7 on: October 02, 2015, 01:55:46 PM »
Quote from: orange;796741
Thanks. Perhaps its trying to open some requester window because of missing lib?
I'll try to get a list of used libs on real amiga.

Hard to say, I'm at the wrong end for reproducing this. I would actually believe it is really using some "less frequent" calls of the dos.library.
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: graphics.library, KS1.3
« Reply #8 on: October 02, 2015, 03:35:59 PM »
My guess is something else that lha is using is calling the gfx library for some reason. I wanted to play around with vamos myself, but I don't have time to figure out Python and specifically the c-Python bridge.

If only someone would port vamos to C ;-)

Offline Leffmann

  • Full Member
  • ***
  • Join Date: Feb 2011
  • Posts: 119
    • Show only replies by Leffmann
Re: graphics.library, KS1.3
« Reply #9 on: October 02, 2015, 03:54:43 PM »
Vamos doesn't emulate all of the AmigaOS functionality that lha requires, and there's no way of just giving vamos a Kickstart ROM or AmigaOS libraries to make it work.

The original Unix lha doesn't know about Amiga-specific file flags, but other than that it works well enough to create and extract Amiga compatible archives. If you have GCC and GNU Make installed, then you can build lha by just running "./configure" and "make":

https://osdn.jp/projects/lha/releases/22231
 

Offline Foul

  • Jr. Member
  • **
  • Join Date: Mar 2010
  • Posts: 77
    • Show only replies by Foul
    • http://www.jamma.fr
Re: graphics.library, KS1.3
« Reply #10 on: October 02, 2015, 04:53:12 PM »
graphics.library_37.41

https://goo.gl/UH2lrC

:)
 

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: graphics.library, KS1.3
« Reply #11 on: October 02, 2015, 04:58:33 PM »
@Leffmann

thanks, but I need Amiga version of lha (long story), does anyone have a source code of it?
Better sorry than worry.
 

Offline Foul

  • Jr. Member
  • **
  • Join Date: Mar 2010
  • Posts: 77
    • Show only replies by Foul
    • http://www.jamma.fr
Re: graphics.library, KS1.3
« Reply #12 on: October 02, 2015, 05:23:16 PM »
lha Amiga version is on aminet.. but without the source code..

edit : if you're missing any library : Amiga Libraries FTP : http://amiga.foul.fr/  ;)
« Last Edit: October 02, 2015, 05:30:31 PM by Foul »
 

guest11527

  • Guest
Re: graphics.library, KS1.3
« Reply #13 on: October 02, 2015, 07:17:15 PM »
Quote from: orange;796750
@Leffmann

thanks, but I need Amiga version of lha (long story), does anyone have a source code of it?

Take the Unix sources, recompile. Why is that a problem?
 

Offline orangeTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2796
    • Show only replies by orange
Re: graphics.library, KS1.3
« Reply #14 on: October 02, 2015, 09:33:52 PM »
Quote from: Thomas Richter;796753
Take the Unix sources, recompile. Why is that a problem?


problem is, Unix version doesn't seem to produce the identical output and its missing some options. compressed size is slightly different with some files.
Better sorry than worry.