最終更新:2021-02-21 (日) 21:32:08 (8d)  

Game_Music_Emu 0.6.3
Top / Game_Music_Emu 0.6.3

https://bitbucket.org/mpyne/game-music-emu/wiki/Home

Ubuntu 18.04

  • 確認
    user@vm:~/game-music-emu-0.6.3/build$ cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local -L
    VGM/GYM: Nuked OPN2 emulator will be used
     ** ZLib library located, compressed file formats will be supported
     ** SDL 2 library located, player demo is available to be built in the /player directory
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/user/game-music-emu-0.6.3/build
    -- Cache values
    BUILD_FRAMEWORK:BOOL=OFF
    BUILD_SHARED_LIBS:BOOL=ON
    CMAKE_BUILD_TYPE:STRING=
    CMAKE_INSTALL_PREFIX:PATH=/usr/local
    ENABLE_UBSAN:BOOL=ON
    GME_SPC_ISOLATED_ECHO_BUFFER:BOOL=OFF
    GME_YM2612_EMU:STRING=Nuked
    SDL2_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/SDL2
    USE_GME_AY:BOOL=1
    USE_GME_GBS:BOOL=1
    USE_GME_GYM:BOOL=1
    USE_GME_HES:BOOL=1
    USE_GME_KSS:BOOL=1
    USE_GME_NSF:BOOL=1
    USE_GME_NSFE:BOOL=1
    USE_GME_SAP:BOOL=1
    USE_GME_SPC:BOOL=1
    USE_GME_VGM:BOOL=1
    

player

  • SDLのWindowに波形を表示

demo

  • out.wavに出力

Emscripten

emsdk

  • $ mkdir jsbuild
    $ cd jsbuild
    $ emcmake cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local
    emcmake cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local
    configure: cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_TOOLCHAIN_FILE=/home/user/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="/home/user/emsdk/node/14.15.5_64bit/bin/node"
    VGM/GYM: Nuked OPN2 emulator will be used
    CMake Warning (dev) at gme/CMakeLists.txt:173 (add_library):
      ADD_LIBRARY called with SHARED option but the target platform does not
      support dynamic linking.  Building a STATIC library instead.  This may lead
      to problems.
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    ZLib library not found, disabling support for compressed formats such as VGZ
    CMake Warning at player/CMakeLists.txt:1 (find_package):
      By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "SDL2", but
      CMake did not find one.
    
      Could not find a package configuration file provided by "SDL2" with any of
      the following names:
    
        SDL2Config.cmake
        sdl2-config.cmake
    
      Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set
      "SDL2_DIR" to a directory containing one of the above files.  If "SDL2"
      provides a separate development package or SDK, be sure it has been
      installed.
    
    
    SDL library not found, disabling player demo build
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/user/game-music-emu-0.6.3/jsbuild
    
    $ emmake make
    $ emcc libgme.a -o libgme.js -s LINKABLE=1 -s EXPORT_ALL=1 -s WASM=0 -O2