protonscr

[macOS] Build fail since d3d10 enabled

dxvkclosed
doitsujin/dxvk#601 · opened 2018-08-26 by flukejones · updated 2018-08-28 · 6 comments · github
2 matching comments, n / p to jump
Fflukejones 2018-08-26 github

Compiling both from the git repo as is, and using Valve Proton, the build fails when trying to change the rpath of d3d10core.dll.

Stripping target 'src/d3d10/d3d10core.dll'
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/meson", line 29, in <module>
    sys.exit(mesonmain.main())
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mesonbuild/mesonmain.py", line 379, in main
    return run(sys.argv[1:], launcher)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mesonbuild/mesonmain.py", line 284, in run
    return minstall.run(remaining_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mesonbuild/minstall.py", line 466, in run
    installer.do_install(datafilename)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mesonbuild/minstall.py", line 298, in do_install
    self.install_targets(d)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mesonbuild/minstall.py", line 442, in install_targets
    install_name_mappings, verbose=False)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mesonbuild/scripts/depfixer.py", line 412, in fix_rpath
    fix_darwin(fname, new_rpath, final_path, install_name_mappings)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/mesonbuild/scripts/depfixer.py", line 394, in fix_darwin
    stderr=subprocess.DEVNULL)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 328, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['install_name_tool', '/Users/luke/src/Proton/build/dxvk.win32/bin/d3d10core.dll', '-change', '@rpath/d3d11.dylib', '/Users/luke/src/Proton/build/dxvk.win32/bin/d3d11.dll']' returned non-zero exit status 1.
FAILED: meson-install 
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
Fflukejones 2018-08-26 github

Trying this manually results in:

error: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: input file: /Users/luke/src/dxvk/test/bin/d3d10core.dll is not a Mach-O file
Ddoitsujin maintainer 2018-08-26 github

I cannot support Mac OS X and I have no way to test this. If you can get it to build, feel free to file a pull request.

44ymen 2018-08-26 github

There is this if you really want to build it on your machine: https://github.com/cheald/dxvk-docker
Originally from: https://github.com/doitsujin/dxvk/pull/543

Fflukejones 2018-08-26 github

@doitsujin It's kind of critical to Valve's Proton if they intend to support macOS at all. I'll continue to see if I can fix it.

Ddoitsujin maintainer 2018-08-26 github

If they intend to support Mac OS X, someone will have to get MoltenVK into shape and figure out how to link it to dxvk. Right now it is impossible to even use it.

Fflukejones 2018-08-28 github

@doitsujin I'm still exploring everything that encompasses Proton - you say DXVK is actually linking to Vulkan libs?

Upstream links

DLLs