I join you the full log.
dxvk_compilation.log
You have to use a mingw build with threading support, see:
https://github.com/doitsujin/dxvk#troubleshooting
@legluondunet dxvk builds on 18.04 with the mingw fix that @doitsujin linked.
I also use VulkanSDK 1.1.77.0 for my glslangValidator tho.
I made some progress with your indications:
I obtained a half success: dxvk library in 64 bits format compiled OK, but not the 32 bits ones.
I joined you the compilation log result.
Do you have a suggestion about this issue?
This is the exact same issue as you were having earlier, you only switched the 64 bit mingw to the posix alternative, now you need to switch the 32 bit mingw. Also, all the problems you are having are setup problems resulting from a failure to read the README and wiki pages, this kind of problem is not suitable for the bug tracker IMHO.
You are right Guy, it is not a bug. I did read the readme and wiki but this documents are not enough explained. I'll continue to ask help to the forum. Thanks anyway.
@legluondunet The README lists (use i686 for 32-bit): :) So, yeah, it was not detailed enough to explain that you need to do both i guess.
You should also follow the VulkanSDK info, and look at the script included in the SDK. This explains how to set up your .profile file (your user profile), so that the libraries from the VulkanSDK is used (instead of copying stuff into the dxvk folder)
Thank you @SveSop for this advice, I will get a try.
In fact I already choosed the two POSIX alternatives, like I explained in my last post. But it works only for 64 bits library. I surely missed something.
$ sudo update-alternatives --config x86_64-w64-mingw32-gcc
[sudo] Mot de passe de legluondunet :
Il existe 2 choix pour l'alternative x86_64-w64-mingw32-gcc (qui fournit /usr/bin/x86_64-w64-mingw32-gcc).
Sélection Chemin Priorité État
------------------------------------------------------------
0 /usr/bin/x86_64-w64-mingw32-gcc-win32 60 mode automatique
* 1 /usr/bin/x86_64-w64-mingw32-gcc-posix 30 mode manuel
2 /usr/bin/x86_64-w64-mingw32-gcc-win32 60 mode manuel
and
$ sudo update-alternatives --config x86_64-w64-mingw32-g++
Il existe 2 choix pour l'alternative x86_64-w64-mingw32-g++ (qui fournit /usr/bin/x86_64-w64-mingw32-g++).
Sélection Chemin Priorité État
------------------------------------------------------------
0 /usr/bin/x86_64-w64-mingw32-g++-win32 60 mode automatique
* 1 /usr/bin/x86_64-w64-mingw32-g++-posix 30 mode manuel
2 /usr/bin/x86_64-w64-mingw32-g++-win32 60 mode manuel
But what?
@legluondunet
That is NOT for 32-bit.. it is for gcc and g++ (two compilers). The 32 bit is:
sudo update-alternatives --config i686-w64-mingw32-gcc
and
sudo update-alternatives --config i686-w64-mingw32-g++
If you type: sudo update-alternatives --get-selections|grep mingw32
it should list:
i686-w64-mingw32-g++ manual /usr/bin/i686-w64-mingw32-g++-posix
i686-w64-mingw32-gcc manual /usr/bin/i686-w64-mingw32-gcc-posix
x86_64-w64-mingw32-g++ manual /usr/bin/x86_64-w64-mingw32-g++-posix
x86_64-w64-mingw32-gcc manual /usr/bin/x86_64-w64-mingw32-gcc-posix
Finally it's compiled. Thank you very much SveSop!
Just a question to clarify because the readme actually has two commands at the end. I actually need 4 commands to set all those 4 mentioned to posix?
sudo update-alternatives --config i686-w64-mingw32-g++
sudo update-alternatives --config i686-w64-mingw32-gcc
sudo update-alternatives --config x86_64-w64-mingw32-g++
sudo update-alternatives --config x86_64-w64-mingw32-gcc
One of them gave me a warning that some symlink can not created but my build went fine. Today I run them again and no warning anymore. Maybe even the order is important?
Hello @nextgenthemes
" I actually need 4 commands to set all those 4 mentioned to posix?" --> yes
"One of them gave me a warning that some symlink can not created but my build went fine. " --> doesn't matter
"Maybe even the order is important" --> no.
@doitsujin could you add in the troubleshooting section this commands:
sudo update-alternatives --config i686-w64-mingw32-g++
sudo update-alternatives --config i686-w64-mingw32-gcc
sudo update-alternatives --config x86_64-w64-mingw32-g++
sudo update-alternatives --config x86_64-w64-mingw32-gcc
instead of the "(use i686 for 32-bit)" reference that a lot of people don't know what it is about?
Another thing, I think you have to add in the requirement sections that the libvulkan libraries have to be installed in 32 AND 64 bits:
sudo apt-get install libvulkan-dev libvulkan-dev:i386
The fact that glslangValidator is not available on Ubuntu is a problem too, but I don't have an easy solution for this point.
VXDK is more and more popular and a more precise documentation will avoid a lot of issue.
Thanks.
Nothing extracted yet.
Hello,
I tried to compile DXVK on Ubuntu 18.04 and I obtain several errors:
I obtain my first error message:
I searched on Ubuntu wich package contains 'glslangValidator' to install it and I found no one.
I searched on my hard disk if I already have a file named 'glslangValidator':
I copied the glslangValidator from Retroarch to dxvk git root folder, launch again the compilation, this first error gone but I obtained a new one:
Thank you for your help.