protonscr

Modifications for Ubuntu 17.10 support..

dxvkclosed enhancement
doitsujin/dxvk#1 · opened 2017-12-04 by oscarbg · updated 2018-04-18 · 6 comments · github
Ooscarbg 2017-12-04 github

Hi,
nice project..
just testing and it fails on Ubuntu 17.10..
some notes:

  1. have to change build-win64.txt file to using gcc and g++ posix variants:
    c = '/usr/bin/x86_64-w64-mingw32-gcc-posix'
    cpp = '/usr/bin/x86_64-w64-mingw32-g++-posix'
    if not have issues with std::mutex not defined etc.. seems related to thread support varying between posix and win32 modes..

  2. Ubuntu 17.10 seems it includes mingw g++ version 6.2 so optional header isn't avaiable have to change to:
    #include <experimental/optional>
    also std::experimental::optional..

  3. you should point to use Wine staging for Vulkan support..

Ddoitsujin maintainer 2017-12-05 github
  1. Does adding -pthread as a compiler option work as well? The mingw packages I'm using on my Arch Linux don't have the -posix binaries. It does ship with mingw-gcc version 7.2 though.

  2. Since this is only used in very few places I might just rewrite the code without using optional.

  3. You're right, added that to the README.

Ooscarbg 2017-12-06 github

will try if -pthread fixes it..

Ooscarbg 2017-12-08 github

doesn't help..
tested with "-pthread','-lpthread'" everywhere..

[properties]
c_args = ['-Og', '-ggdb','-pthread','-lpthread']
c_link_args = ['-static', '-static-libgcc','-pthread','-lpthread']

cpp_args = ['-std=c++17', '-Og', '-gstabs','-pthread','-lpthread']
cpp_link_args = ['-static', '-static-libgcc', '-static-libstdc++','-pthread','-lpthread']

and still get
"error: ‘mutex’ in namespace ‘std’ does not name a type"

Bbog-dan-ro 2017-12-14 github

Check https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757259 to see how to switch to pthread

Ooscarbg 2017-12-29 github

thanks @bog-dan-ro ..
I now switched to Ubuntu 18.04dev with mingw gcc 7.2 by default and with
update-alternatives --config x86_64-w64-mingw32-gcc
update-alternatives --config x86_64-w64-mingw32-g++
to posix variants it works with no code changes!
so closing it..

Rrzyghul 2018-04-18 github

Just a note - On Kali additionally to oscarbg change required on ubuntu with x86_64-w64-mingw32-gcc/g++ you also need switching wingw to posix for environment targeting Win32:
update-alternatives --config i686-w64-mingw32-gcc
update-alternatives --config i686-w64-mingw32-g++

Nothing extracted yet.