Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: hayashi on September 06, 2009, 06:08:30 PM

Title: keymap.library not found
Post by: hayashi on September 06, 2009, 06:08:30 PM
Hi,

I tried to use a program under OS3.0, and it's complaining about keymap.library V39 being unavailable.

I thought this was a ROM library >.<;;

I've also noticed that everything has suddenly switched to a US English keyboard layout. Is this related?

Thanks, Matt

EDIT: I found this while Googling for help: "keymap.library is now opened with version 37 (version 39 does not exist)"

In that case, looks like I'm gonna have to get 3.1 ROMS =(
Title: Re: keymap.library not found
Post by: Karlos on September 06, 2009, 06:26:19 PM
Does the program require OS3.1?

If it is designed for 3.1, it's not unusual for it to request release 3.1 versions of libraries. Regardless of whether or not V39 exists, the OpenLibrary() call interprets the requested version to be the minimum required and hence will succeed on any higher version.
Title: Re: keymap.library not found
Post by: x303 on September 06, 2009, 08:01:51 PM
If you look at the NDK's autodoc, you will see that keymap.library already existed  in OS 2.0 (V36). Have you tried opening the library like this ?

struct Library *KeymapBase = NULL;
..
KeymapBase = OpenLibrary("keymap.library", 0);
..

x303 :D :D :D
Title: Re: keymap.library not found
Post by: Piru on September 06, 2009, 08:09:29 PM
Quote from: x303;522299
If you look at the NDK's autodoc, you will see that keymap.library already existed  in OS 2.0 (V36). Have you tried opening the library like this ?

struct Library *KeymapBase = NULL;
..
KeymapBase = OpenLibrary("keymap.library", 0);
..

x303 :D :D :D


Excuse me?

He was trying to use a program, not write it.
Title: Re: keymap.library not found
Post by: x303 on September 06, 2009, 08:21:10 PM
Quote from: Piru;522300
Excuse me?

He was trying to use a program, not write it.
Ahhh ;)

x303 :D :D :D
Title: Re: keymap.library not found
Post by: Matt_H on September 06, 2009, 10:41:10 PM
That looks like a bug in the program - trying to open v39, which doesn't exist. (Even though the ROM is v39, that doesn't mean everything in it is - audio.device, for example, is still v37 in v40 ROMs, so an attempt to open audio.device v40 would fail similarly).

It looks like your Google results turned up a changelog for a newer version of the program with the bug fixed. Try to find that version of the executable.
Title: Re: keymap.library not found
Post by: mr_a500 on September 07, 2009, 03:54:51 AM
Quote from: Matt_H;522313
That looks like a bug in the program - trying to open v39, which doesn't exist. (Even though the ROM is v39, that doesn't mean everything in it is - audio.device, for example, is still v37 in v40 ROMs, so an attempt to open audio.device v40 would fail similarly).

It looks like your Google results turned up a changelog for a newer version of the program with the bug fixed. Try to find that version of the executable.

Exactly. Years ago, I found and reported this bug in quite a few programs. Usually the programmer writing the program was using 3.1 and assumed 3.0 keymap.library is v39 - which it isn't. (...and for some reason, the programmer never tests his program with 3.0, assuming that what works in 3.1 will work in 3.0)