Menu

#12 ym-engine dump on Windows

v1.0 (example)
closed
None
5
2024-08-18
2024-08-05
No

Hi,

thank you very much for your hard work on this project :)

I want to use sc68 to dump sndh files to play them on a ym2149. I used the 2.2.1 exe installer on windows and can start sc68 in the powershell. sc68 --version for example is working.

On some website, i read that "sc68 --ym-engine=dump -qqqqn 'tunename.sndh'" should work, but it always complains about wrong parameter "-qqqn".

I tried some variations of the commands and looked into the source code but couldn't get it to work. Could someone please assist me and suggest a command I could try in my Windows Powershell?

Thank you very much :)

Discussion

  • Ben G. Han

    Ben G. Han - 2024-08-07

    Hi.

    The problem is that this version is very old. I'm not even sure the dump engine was implemented at the time. May be try with the old style Windows command prompt first just to eliminate any
    See sc68 -hh for a full help and look for the --ym-engine=dump. I am fairly sure it was not.
    In that case either you can build from the source code (cygwin or msys/mingw) or I can try to make that Windows build for you.

    Cheers

     
  • Max Halberstatt

    Max Halberstatt - 2024-08-08

    Hi Benjamin,

    thank you for your answer! I understand that the software is 20+ years old and problems are expected.

    "sc68 -hh" returned "SC68rsc_open(1,config,2) : not found" and "SC68rsc_open(1,config,1) : not found" which is the same answer as for --ym-engine. Therefore, i turned to another path as you suggested.

    I installed cygwin and tried to build the 2.2.1 version myself. However, i encounter problems:
    -> "autoreconf -i" fails with "error: SOURCE_UNICE68 does not appear in AM_CONDITIONAL"
    -> "./configure" fails with "line 13222: syntax error near unexped token 'newline' line 13222: 'SC68_PACKAGE('"

    I also tried to build the sc68 subfolder alone but with similar results.

    I (and some AI tools) spent some hours trying to solve that problem, however, I'am not an expert on that matter and couldn't get it to work.

    If you have any advices to go on I would be thankful or if you could provide a windows build. However, if this would require you to spend some significant time, i will setup a linux machine and will do the ym-engine related stuff there which will also be fine :)

    Thank you again for your support and best regards.

     
    • Ben G. Han

      Ben G. Han - 2024-08-08

      Hi,

      I meant compile the current version from the svn repository here at sourceforge.net
      (should be version ~ 3.0.0.695)
      Hopefully it compiles easily on cygwin. It used to but I haven't tested for a while.
      On a side note you might want to install a few dependencies.
      Mainly libao-dev (or whatever the package are named) if you want the program to produce sound and/or wav file. Notice you don't really need that if you only want to use the dump engine.
      Optionallylibcurl-dev zlib-dev readline-dev.
      Read the README-SVN file for the other dependencies (more or less required tools mainky for the documentation.

      Then run tools/svn-bootstrap.sh in the sc68-code root dir.

      There is a tricky part when building from VCS in that the libsc68 need a bin file assembled (trap68.bin). To assemble this file it needs as68. Normally the build system detect if as68 is missing on your system (bootstrapping) and should build and use this version. Hopefully it works well but in case you have a problem I suggest to compile the sub-package separately.
      For your info here is my configure options:

      $ ./config.status --config
      --enable-sc68-tools CFLAGS=-Ofast --disable-assert --prefix=/home/ben/Arch/x86_64-linux-gnu 'as68=$(builddir)/../as68/as68$(EXEEXT)'
      
      GL
      
       
  • Ben G. Han

    Ben G. Han - 2024-08-09

    Hi,

    I was able to cross compile a mingw64 version. It seems to work with wine.

    I'll try to make a proper package but it's not as simple as just compile the thing. Meanwhile there is the archive in attachment.

     
    • Max Halberstatt

      Max Halberstatt - 2024-08-12

      Hi Benjamin,

      oh sorry, so I was on the wrong track anyway.

      I have downloaded your build and it worked like a charm without any problems right away :) I am able to use ym-engine and get the dumps I wanted.

      Thank you so much for your effort and time, I had thought that I would no longer receive support. Now i can implement that functionality in my project as well :)

      Best regards and thanks again!!

       
  • Ben G. Han

    Ben G. Han - 2024-08-18
    • assigned_to: Ben G. Han
     
  • Ben G. Han

    Ben G. Han - 2024-08-18
    • status: open --> closed
     

Log in to post a comment.