MAKEDIR: Couldn't create directory
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Posts: 168 from 2014/7/15
    Hello,

    as posted here I had some trouble installing IFX4.5 on MOS 3.18

    Installer 43.3 and 44.10 ended with the error
    [code]MAKEDIR: Couldn't create directory "Work:ImageFX4" n line 1666.
    DOS Error Type: Cause of disk-related error unknown.
    [/code

    It seems it doesn't like the default SVG def_drawer icon as when I changed it to a PNG icon, the installation was successful.

    I also tried using InstallerLG and while the installation was successful, there was something odd. The drawer was created with the def_drawer as the drawer's icon. But it was not visible In My MorphOS window in icon mode, but it was in list mode. Opening the drawer were the IFX4 drawer was, displayed it correctly in both icon and list mode.

    I don't know if this are problems with Installer43.3/44.10 and InstallerLG or something to look in MOS, so I post this just in case. I can make more tests if needed.
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »22.01.24 - 17:02
    Profile
  • MorphOS Developer
    Piru
    Posts: 574 from 2003/2/24
    From: finland, the l...
    What does the installer script do around line 1666?

    Is that error message from the MorphOS included installer?

    [ Edited by Piru 23.01.2024 - 10:56 ]
  • »23.01.24 - 08:25
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    NewSense
    Posts: 1457 from 2012/11/10
    From: Manchester, UK/GB
    @ Piru - Whatever happens, I really do appreciate you taking an interest in this issue, and I personally won't be sending a bug report to the MorphOS Development Team (Bug HQ) - even if it might have warranted it, regarding this SVG icon issue, or whatever it turns out to be, as I know you will do whatever you can to try to look into the issue(s) causing the ImageFX v4.5 installation to fail for emeck. 8-D

    I got the impression that emeck had only used 68k installers, and had not swapped any of those installers for the MorphOS executable Installer in preference for any of the 68k executable installers, though I feel sure you'd want to get that information directly from emeck himself. 8-)

    The ImageFX v4.5 CD Installer is the v43.3 68k Installer (from 30-04-1996)

    Line 1657 to 1671 are set out below from my copy of ImageFX v4.5

    1657 ;-------------------
    1658 ; Create destination directory if it doesn't already exist.
    1659 ;(onerror
    1660 ; (abort "Cannot create directory `%ls'. (There may be a file "
    1661 ; "already there with the same name.)" wheredir)
    1662 ;)
    1663 (makedir wheredir (infos))
    1664
    1665 ;-------------------
    1666 ; Save all the user's old stuff
    1667
    1668 ;(makedir (tackon wheredir "Storage"))
    1669 ;(makedir (tackon wheredir "Storage/Convolve"))
    1670 ;(makedir (tackon wheredir "Storage/Transform"))
    1671 ;(makedir (tackon wheredir "Storage/Palettes"))

    If you need more of the install script then I can supply that . . . or you can wait for emeck to reply if you prefer. 8-D

    On the ImageFX v4.5 CD there is also a MorphOS installation script named "Install_MOS" (300 lines long) that is there to install the PowerStation Volume 1 PPC module add-ons only for MorphOS.

    At the bottom of that script is a comment ...
    "; 22.09.03 djc Changed to support ImageFX4 under MorphOS-includes PNGIcons."

    So, probably support for PNG Icons had only just been implemented into ImageFX v4.x? :-?

    When I run the "Install_MOS" script with the MorphOS Installer by Guido Mersmann, then I get to about line 130 where the installation comes across a "fatal error" and quits. I believe this too is related to directory creation within MorphOS, as this section from Line 130 to 135 states:

    130 (copyfiles
    131 (source "PPC/PowerStation_MorphOS/storage/")
    132 (dest (tackon wheredir "Modules/PowerUp"))
    133 (pattern "#?.elf")
    134 (optional "oknodelete" "force" "askuser")
    135 )

    If I then create manually the directory PowerUp in the Modules directory then when I run the Installer program and the same Install_MOS script then it continues past this point and fully completes its task.

    Hope this is of some use to understanding the problem, and working out if anything else can be done to fix the ImageFX Install script(s). 8-D
    MacMini 1.5GHz,64MB VRAM, PowerBooks A1138/9 (Model 5,8/9),PowerMac G5 2.3GHz(DP), iMac A1145 2.1GHz 20", all with MorphOS v3.18+,Airport,Bluetooth,A1016 Keyboard,T-RB22 Mouse,DVD-RW-DL,MiniMax,Firewire/USB2 & MacOSX 10.4/5
  • »23.01.24 - 09:24
    Profile
  • MorphOS Developer
    Piru
    Posts: 574 from 2003/2/24
    From: finland, the l...
    Ok, this confirms my suspicious as to what the issue is with makedir when using the installer 43.3. Thanks for the information.

    The other issue is likely unrelated to the first, it looks like a failure in the logic of creating the dest directories.

    I might look into these issues, time permitting.
  • »23.01.24 - 12:35
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Posts: 168 from 2014/7/15
    @NewSense
    Thanks for updating the thread with the info.

    @Piru
    Thank you for looking into these. If you need more tests I''ll be happy to help.
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »23.01.24 - 13:26
    Profile
  • MorphOS Developer
    Piru
    Posts: 574 from 2003/2/24
    From: finland, the l...
    The next MorphOS version fixes the issue where svg def_drawer icon would cause "makedir (infos)" to fail.
  • »23.01.24 - 21:13
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    emeck
    Posts: 168 from 2014/7/15
    @Piru

    Thanks!
    PowerBook 5.8 MorphOS 3.18
    Mac Mini MorphOS 3.18
  • »24.01.24 - 07:38
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    NewSense
    Posts: 1457 from 2012/11/10
    From: Manchester, UK/GB
    @ Piru - Thanks for putting in the effort, and obviously the know-how 8-) to work out how to fix this SVG icon issue

    I wish there was more direct support for SVG vector image creation and conversion to other formats, even though there is VectorInk, by André Siegel, but even that hasn't been updated for about 3+ years, and there doesn't seem to be any :-? option to edit SVG to PNG format in our software base, other than SVGTools by Sigbjørn Skjæret, unless someone else knows better? ;-).

    @ emeck - Thanks for explaining your issues with ImageFX v4.5 as even I have learned from your troubles.
    This way we all benefit, making this community really great! :bloons:
    MacMini 1.5GHz,64MB VRAM, PowerBooks A1138/9 (Model 5,8/9),PowerMac G5 2.3GHz(DP), iMac A1145 2.1GHz 20", all with MorphOS v3.18+,Airport,Bluetooth,A1016 Keyboard,T-RB22 Mouse,DVD-RW-DL,MiniMax,Firewire/USB2 & MacOSX 10.4/5
  • »24.01.24 - 09:58
    Profile