Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS] Build fail since d3d10 enabled #601

Closed
flukejones opened this issue Aug 26, 2018 · 6 comments
Closed

[macOS] Build fail since d3d10 enabled #601

flukejones opened this issue Aug 26, 2018 · 6 comments

Comments

@flukejones
Copy link

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.
@flukejones
Copy link
Author

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

@doitsujin
Copy link
Owner

doitsujin commented Aug 26, 2018

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.

@4ymen
Copy link

4ymen commented Aug 26, 2018

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

@flukejones
Copy link
Author

@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.

@doitsujin
Copy link
Owner

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.

kergoth added a commit to kergoth/Proton that referenced this issue Aug 27, 2018
dxvk isn't of any real use on mac until it's able to link to MoltenVK
See KhronosGroup/MoltenVK#203 and
doitsujin/dxvk#601.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
@flukejones
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants