- DirectX теперь доступен в Windows Subsystem для Linux
- unixforum.org
- Установка DirectX в wine ЭЛЕМЕНТАРНО! (накопал у себя)
- Установка DirectX в wine ЭЛЕМЕНТАРНО!
- Re: Установка DirectX в wine ЭЛЕМЕНТАРНО!
- Re: Установка DirectX в wine ЭЛЕМЕНТАРНО!
- Re: Установка DirectX в wine ЭЛЕМЕНТАРНО!
- Re: Установка DirectX в wine ЭЛЕМЕНТАРНО!
- Простая установка DirectX (и не только) с помощью winetricks
- Комментарии (80)
- Directx для линукс минт
- Introduction
- Install Wine
- Configure DirectX libraries
- Setup core files
- General advice
- Download DirectX 9.0c
- Install DirectX 9.0c
- Test DirectX 9.0c
- Setup Direct Music
- Setup additional files
- Install and test your games!
- Tweaks
- Conclusion
DirectX теперь доступен в Windows Subsystem для Linux
Сегодня ночью на // build 2020 рассказали, а позже в официальном блоге Microsoft была опубликована запись, что теперь DirectX доступен в Windows Sybsystem — среде разработки Linux-приложений из-под Windows.
Основная цель — повысить комфорт Linux-разработчиков и ML-специалистов и позволить им эффективнее тестировать и развивать свои приложения, в том числе и через использование ресурсов штатного GPU-ускорителя.
По словам представителей Microsoft, поддержку DirectX в Windows Subsystem они внедрили на основании многочисленных запросов со стороны коммьюнити, причиной которых была недоступность GPU-ускорителей в Bash.
Теперь работа GPU-ускорителей в WSL будет обеспечиваться стандартным для Windows драйвером WDDMv2.9, для работы в WSL будет использоваться драйвер Dxgkrnl.
Однако не все так гладко, как показывают специалисты Microsoft. По факту, Dxgkrnl — абстракция-костыль, который работает в стиле прокси поверх WSL и общается из виртуальной машины через VM-шину с основным драйвером WDDM. Впрочем, Microsoft сами показывают это на своем слайде:
Для полноценной работы этого решения потребуется WSL 2 — вторая версия WSL для Windows, на первой версии доступа к GPU не будет.
Поддержка DX12 и DxCore тоже сомнительна. Microsoft заявляют, что для корректной работы WSL им потребовалось связываться с партнерами-производителями — для того чтобы перекомпилировать D3D12 UMD под Linux. Фактически, мы получаем еще один закрытый проприетарный DirectX, адаптированный конкретно под условия WSL.
Поверх DX12 в текущей реализации работает только OpenCL и OpenGL, а над внедрением поддержки Vulkan в показанную выше схему инженеры компании «еще думают и ищут варианты». Однако, по заверениям Microsoft, уже созданный инструментарий позволит решать задачи в области ML и AI с помощью библиотеки ML Framework.
Также была анонсирована доступность DirectML — API машинного обучения поверх API D3D12, которое позволит эффективнее решать задачи из сферы AI и обучения нейросетей. В основной своей массе DirectML ориентирован на студентов и новичков для того, чтобы снизить порог вхождения в работу в ML. Изначально DirectML будет поставляться с пакетом Tensorflow.
Из прочих важных вещей в анонсе стоит выделить то, что скоро в WSL подвезут поддержку графических приложений, хотя изначально эта среда задумывалась исключительно как консоль. Также реализована поддержка NVIDIA CUDA.
Этими шагами компания Microsoft в очередной раз показала, что придерживается курса повышения комфорта разработчиков, в том числе Linux-разработчиков, за счет внедрения новых возможностей в свои среды и расширения инструментария. Однако насколько удачными и комфортными окажутся предлагаемые решения, покажет только практика. Много вопросов вызывает закрытый перекомпилированный код, а также общая «костыльность» всей системы, в которой WSL не может напрямую общаться с GPU и делает это через шину VM в самой Windows. Также вызывает вопрос отсутствие во всей этой истории Vulkan.
Источник
unixforum.org
Форум для пользователей UNIX-подобных систем
- Темы без ответов
- Активные темы
- Поиск
- Статус форума
Установка DirectX в wine ЭЛЕМЕНТАРНО! (накопал у себя)
Установка DirectX в wine ЭЛЕМЕНТАРНО!
Сообщение STROGOS » 09.01.2010 21:20
Все знают, что для многих современных игр требуется DirectX 9. Под виндой его поставить не составляет труда, но вот под убунтой это несколько дольше. Есть один простой ход, который может облегчить вам жизнь:
Для установки DirectX нам понадобится winetricks, скачаем его командой:
chmod +x winetricks
Перенесём его куда надо:
sudo mv winetricks /usr/bin
Теперь он скачает и установит последнюю версию directx9, командой:
winetricks directx9
На этом всё) Теперь игры требующие directx9 должны запускаться и работать нормально.
(с) де стырил непомню.
Re: Установка DirectX в wine ЭЛЕМЕНТАРНО!
Сообщение Sekta-N » 10.01.2010 03:22
Re: Установка DirectX в wine ЭЛЕМЕНТАРНО!
Сообщение rm_ » 10.01.2010 05:43
DirectX 9 не нужен©.
Если серьёзнее, Wine и так уже эмулирует его весь, плюс даже немножечко из DirectX 10.
Ставить виндовый нужно лишь в единицах «крайних случаев», в остальном он принесёт одни только проблемы.
Re: Установка DirectX в wine ЭЛЕМЕНТАРНО!
Сообщение stampoon » 10.01.2010 10:44
Re: Установка DirectX в wine ЭЛЕМЕНТАРНО!
Сообщение MMouXe » 11.01.2010 18:14
Вручную оно делается так:
Обычно wine’вского директикса вполне хватает, а после установки МС’го, как уже было замечено выше, вы можете поиметь проблем. Так что устанавливайте DirectX от MS лишь в крайнем случае.
1) Сделать резервную копию предыдущих настроек wine (каталог
/.wine), оригинал удалить или переименовать.
2) Создать стандартные настройки командой winecfg.
3) Скопировать библиотеки mscoree.dll и streamci.dll в
/.wine/drive_c/windows/system32/
4) Из каталога
/.wine/drive_c/windows/system32/ удалить файлы:
d3d8.dll,d3d9.dll,ddraw.dll,dsound.dll,dsound.vxd,quartz.dll,dxdiagn.dll
5) Отредактировать файл
/.wine/user.reg , вставив в конец файла:
[Software\\Wine\\DllOverrides] 1196330736
«d3d8″=»native»
«d3d9″=»native»
«d3dim»=»native»
«d3dx8″=»native»
«d3dxof»=»native»
«dciman32″=»native»
«ddrawex»=»native»
«devenum»=»native»
«dinput»=»native»
«dinput8″=»native»
«dmband»=»native»
«dmcompos»=»native»
«dmime»=»native»
«dmloader»=»native»
«dmscript»=»native»
«dmstyle»=»native»
«dmsynth»=»native»
«dmusic»=»native»
«dplay»=»native»
«dplayx»=»native»
«dpnaddr»=»native»
«dpnet»=»native»
«dpnhpast»=»native»
«dswave»=»native»
«dxdiagn»=»native»
«mscoree»=»native»
«quartz»=»native»
«streamci»=»native»
6) Установить DirectX (стандартный дистрибутив для windows).
7) Запустить снова конфигуратор winecfg, вкладка Библиотеки, и для библиотек:
d3d8,d3d9,ddrawex,dinput,dinput8
выбрать Редактировать и выставить для них порядок загрузки «Встроенная (wine)».
8) Провести тесты DirectX, перейдя в каталог
/.wine/drive_c/windows/system32/ и выполнив wine dxdiag.exe .
Если не запускается, тогда копируем файлы dxdiag.exe,dxdiagn.dll в
Нужные библиотеки и файлы ищите в каталогах виндов, либо в интернете.
Источник
Простая установка DirectX (и не только) с помощью winetricks
Есть такая штука winetricks, почитать о ней можно здесь: http://wiki.winehq.org/winetricks
1. качаем вайнтрикс и кладем его в /usr/bin для удобства
wget http://www.kegel.com/wine/winetricks
chmod +x winetricks
sudo mv winetricks /usr/bin
2. устанавливаем директх
winetricks directx9
Вот и все. У меня прошло все без задоринки на свежеустановленном вайне.
Кроме директХа, думаю, необходимо установить corefonts. Список пакетов с описаниями по ссылке выше. Для программ, которые требуют IE (например, dotnet*), ставим fakeie6.
п.с. могут возникать ошибки, например, fakeie6 у меня встал только с ручным созданием директории
/%ProgramFiles% и копированием shdocvw.dll из оригинальной винды в system32 вайна, dotnet11 и dotnet20 крашит при установке. Возможно, в новых версиях пофиксят. О путях решения давйте писать сюда.
Комментарии (80)
Еще костыль: при установке comctl32, в пути распаковки надо указать c:\windows\temp
Сорри за оффтоп. Вот всё парюсь над установкой [email protected] на Кубунту. Нужен этот агент для моей девушки, но не в плане проверки почты на сервере, а в плане общения. ПОМОГИТЕ его установить 🙂 Думал, директИкс поможет, но нифика :(. Устал уже винду переустанавливать на компе девушки. Помогите, кто чем может. Буду признателен.
Я где-то писал на форуме название мейлагент клиента под линукс. Вроде в статье про вайн 1 рц 1 в каментах.
В том то и дело, что мне подобие не нужно, только Мэйл@гент.ру 🙂
тогда юзай виртуалку в режиме интеграции
кстати, у вмваре тоже реализован интересный режим интергации рабочих столов
товарищ, заведи ей джаббер аккуант и добавь в него mrim транспорт. клиентов для сетей джаббер под линь полно. jabber.ru в помощь.
sudo mv winetricks /usr/bin
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
а подскажите пожалуйста в чем здесь удобство собственно?
чтобы запускалось без ввода всего пути
))) а через ./winetricks у вас не запускается? :)))
иль я чтот не понимаю. простите за кучу вопросов я всего пол года осваиваю систему )
запускается, если находишься в директории с вайнтриксом, но ведь не всегда так, а /usr/bin для этого и сделано
А winetricks это ещё один клон вайна, или он устанавливает директикс к текущему вайну?
Подцепляет ли он уже установленный вайн?
это просто скрипт, который устанавливает популярный софт и библиотеки на установленный вайн, можно использовать для разных префиксов, например так:
WINEPREFIX=/home/soifong/.wine2 winetricks
я использую несколько префиксов
У меня все без глюков ставится, нормально. Шикарная вещь, спасибо.
Как только в вайн появится поддержка игр для Висты, то можно будет объявить о свое абсолютном переходе на пингвина
А установка директХ просто эксешником как в винде дает точно такой же результат? У меня после такой установки вайн жрал 50% процессорного времени без запущенных программ (сервер вайн).
Через вайнтрикс поставил поверх. Было несколько ошибок в консоли, но сам процесс завершился успешно.
Просто екзешником он не устанавливается, хотя говорит, что процесс завершен.
в процессе установки directX9 в консоли пишет кучу таких сообщений:
err:setupapi:do_file_copyW Unsupported style(s) 0x144
с этим врятли что то можно сделать.После того как установили directX с помощью winetricks можно проверить работоспособность directx командой «wine dxdiag»
спасибо а то чтото с мелкософта не мог качнуть директХ(прерывалось на 17мб любая версия) а тут еще и писать нечего не надО)
а что такое и тут тоже самое.Кто нибудь знает почуму у меня на 16% останавливает загрузку?
спасибо а то чтото с мелкософта не мог качнуть директХ(прерывалось на 17мб любая версия) а тут еще и писать нечего не надО)
спасибо а то чтото с мелкософта не мог качнуть директХ(прерывалось на 17мб любая версия) а тут еще и писать нечего не надО)
спасибо а то чтото с мелкософта не мог качнуть директХ(прерывалось на 17мб любая версия) а тут еще и писать нечего не надО)
. опробовав множество «легких» способов установки DirectX, танцы с бубном.
но вот наткнулся на то что нужно — Wine-Doors
а вот ссылка на материал:
http://linux-club.ucoz.net/news/2009-04-08-47
действительно все легко.
и игрушки все какие пробовал сразу пошли!!
Всем удачи.
Я ставил ДиректХ и на Кубунту 9.10 и на 10.04 и под разными вайнами просто запуская «.exe». Также и игры ставлю. Пока всё нормально работает.
блин) вот я все сделал и нифига, только я сетапил вб6
вот лог
[email protected]:/home/dvltbo0zivgx# winetricks vb6run
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyExecuting wine /root/.winetrickscache/VB6.0-KB290887-X86.exe /T:C:\winetrickstmp /c
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyApplication tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Note: command ‘wine /root/.winetrickscache/VB6.0-KB290887-X86.exe /T:C:\winetrickstmp /c’ returned status 199. Aborting.
dxdiag.exe
А не dxdiagn.exe
Правда у меня в консоли глушняк на эту тему происходит. 🙂
[email protected]:
$
wine: 1.2-rc2
Относительно настройки оставил всё так же, как стало после установки прямогоХ с использованием winetricks
Источник
Directx для линукс минт
Updated: January 13, 2010
Would you like to play the latest and greatest Windows games? Sure. In Linux? Sure. Now comes the tricky question, how exactly do you do that? Linux uses OpenGL, whereas most Windows games rely on DirectX. No problem. That’s what Wine is made for.
Introduction
I’ve mentioned Wine inВ my Linux gaming mega howto, as one of the tools that allow you to run Windows games in Linux, for whatever reason you may want to do so. The results may vary and may not be perfect, but you can still manage a handsome array of games easily.
What prompted me to try running one of the Windows heavyweight games on Linux was the pure simple hardware limitation. The game in question was Tropico 3, a fabulous dictatorship simulation with some pretty hefty requirements, including 2GB of RAM and at least 256MB Nvidia 6600GT card. As it turns out, my two older Athlons both running Windows and equipped with Nvidia 6600GT and 7600GT cards were not exactly tailored for this game. But if you recall, I’ve just recently bought myself a shiny new laptop, with the powerful Nvidia 9600GS card with 512MB VRAM. So I figured, what the hell, it’s worth a try.
What I did was install DirectX 9.0c in Linux using Wine and then installed Tropico 3. Lo and behold, it works, beautifully. I can play the game with details set to high without any problems or glitches, everything runs smoothly and even the sound quality is great.
In this article, you will learn how to install DirectX using Wine. It’s not simple, but it’s not difficult either. And then, the world’s your oyster. I hope you will enjoy this guide, plus you get a few dandy Tropico 3 screenshots. A full review will come later.В Follow me.
Install Wine
This is simple. Just open the package manager and install the software.
Configure DirectX libraries
This is the most complicated step of all. But do not worry, you get everything, step by step.В Launch Wine configuration. You can either do it via the Application menu in your distro, Wine > Configure Wine or by running winecfg from the command line. Once the main menu opens, click on the Libraries tab.
This tab allows you to specify the behavior of different DLLs and override the possible defaults. To get DirectX running, you will need a long list of DLLs listed. The first step is to click on the New override dropdown box icon and expand the list. Search for the d3d8 DLL. Once found, click Add .
It will be added to the Existing overrides list like this: d3d8 (builtin,native) .В This is not what we need. Therefore, you must select the DLL in the list and click Edit . Then, change the configuration to builtin only.
There’s a very long list of DLLs and specifying them manually would be a torture. Luckily, you can hack the Wine registry directly and add the desired overrides as a list into the file, without going through the manual process of specifying each one using the GUI.В To edit the registry, open the file in text editor (e.g. gedit):
In the file, look for the section labeled DllOverrides :
In this section, you can copy & paste the entire list of DLL overrides required. You can find the entire list in this great article. Copy the entire selection, save the file and exit. The next time you launch Wine configuration, the overrides will be loaded.В Eventually, you’ll see something like this:
This is the first step. Now, we need to setup some core files.
Setup core files
These files may or may not be required, but it does not hurt to have them anyway. The two files in question are mscoree.dll and streamci.dll . The first is a module containing .NET Framework functions, the second is a library used to install streaming hardware devices.В You can copy these files from your Windows installations, if you have some, or download them from the web. A good online source that offers these file is DLL-files.com.
General advice
In general, when you have to download DLLs or similar files from the web, it is always a good idea to stick to reputable sources, compare the file size and hash to those advertised by Microsoft and perhaps even upload the files to Jotti or VirusTotal for a perfunctory scan. You can also check the reputation of the website serving DLLs using a community service like Web of Trust (WOT). In this case, DLL-files gets a pretty decent score.
Anyhow, back to our topic, download the two files and copy them to the Wine system32 folder.
/.wine/drive_c/windows/system32/
cp streamci.dll
The next step is to download the DirectX 9.0c redistributable package.
Download DirectX 9.0c
You need the redistributable package, because the installation won’t handle the online installer well. Once the file is downloaded, run the executable with Wine. Note: Microsoft tends to change the download links now and then, so if the link above is broken, Google for it.
This will start a wizard, which will ask you to accept the license and extract the files to a folder. Choose any folder and extract the files there.
Install DirectX 9.0c
Navigate to the folder and run the actual DirectX setup:
The installer should complete without any problems. It will ask you to reboot, but you do not need to do that.
Test DirectX 9.0c
Now, let’s test. Go to the system32 folder (inside the .wine folder) and run dxdiag.exe.
If everything went as it should, you should have DirectX setup and enabled. You can ignore most of the device and driver information, since we’re doing a rather decent hack here.
Setup Direct Music
If you also want to have enhanced sound effects and whatnot, you will need another driver. The file in question is called gm.dls and you can find it listed on several websites, available for download. Again, use discretion when downloading files like this. Make sure they are digitally signed by Microsoft, with the proper size and hash value. Likewise, checking these files againstВ Jotti or VirusTotal may not hurt. If you have Windows installed, look for the file on your machine. Copy the file to system32/drivers:
After doing this, rerun dxdiag and check the Music tab.
Setup additional files
Your games may also require additional DLLs that are not found above. You will discover this only after installing them and running them, which is the step below. If you have already found online references that mention additional DLLs are needed for your games, then you can install them before trying the game, saving yourself time.
For example, Tropico 3 requires d3dx9_41.dll , without which the game start will fail. The above subset includes onlyВ d3dx9_24.dll andВ d3dx9_36.dll, but not the latest one. No worries, head to DLL-files.com and download the missing item(s).
Install and test your games!
Time to try your games. In my case, Tropico 3 installed without any problems, followed by the 1.04 patch, which solves lots of issues in the original game. Starting the game without the d3dx9_41.dll resulted in a failure, but once I copied the missing item into the system32 folder, everything worked fine. The game runs smoothly even on high level — considering the hacks we just did, this is impressive. The sound quality is great. The game is stable. It’s really a pleasure. A real blast!
What more, you can make things faster even more!
Tweaks
Wine prints lots of debugging messages to the console, slowing things down a bit. You can definitely improve the performance by prepending a Wine debug environment variable to the wine command line, allowing yourself even more Frames Per Second (FPS) in your games.
Just run the game executable like this:
WINEDEBUG=-all wine Tropico3.exe
Conclusion
There you go, a perfect, foolproof tutorial to how you can configure and install DirectX in Linux. It’s not easy and definitely not meant for new users, but if you’re willing to invest some time, you can definitely expand the range of possibilities your Linux system offers you.
Источник