Software-Installation

解決錯誤:通過 Wine 執行 Xilinx

  • January 21, 2016

我已經通過前綴上的 Wine 成功執行了適用於 Windows 的 Xilinx 14.7 完整安裝程序com.xilinx.verilog,然後去確認所有已安裝的文件都在原位,~/Library/Application\ Support/com.xilinx.verilog_145331572525077/它們位於下c\:/14.7/ISE_DS和下。通過安裝 Xilinx 生成的文件內容為:ISE Design Suite 14.7.desktop``c\:/users/patrick/Destop/``ISE Design Suite 14.7.lnk``c\:/users/Public/Desktop/``.desktop

[Desktop Entry]
Name=ISE Design Suite 14.7
Exec=env WINEPREFIX="/Users/patrick/Library/Application Support/com.xilinx.verilog_145331572525077" wine C:\\\\windows\\\\command\\\\start.exe /Unix /Users/patrick/Library/Application\\ Support/com.xilinx.verilog_145331572525077/dosdevices/c:/users/Public/Desktop/ISE\\ Design\\ Suite\\ 14.7.lnk
Type=Application
StartupNotify=true
Comment=ISE Design Suite 14.7
Path=/Users/patrick/Library/Application Support/com.xilinx.verilog_145331572525077/dosdevices/c:/14.7/ISE_DS/ISE
Icon=E55D_ise.0

我嘗試Exec直接在終端中執行字元串,但出現錯誤:

err:module:import_dll Library NDIS.SYS (which is needed by L"C:\\windows\\system32\\drivers\\npf.sys") not found
err:winedevice:ServiceMain driver L"NPF" failed to load
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:iphlpapi:NotifyAddrChange (Handle 0x10ef550, overlapped 0x10ef55c): stub
wine: configuration in '/Users/patrick/Library/Application Support/com.xilinx.verilog_145331572525077' has been updated.
fixme:exec:SHELL_execute flags ignored: 0x00000100
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Success.

如何解決此錯誤?

編輯我發現npf.sys由於 WinPcap 安裝失敗而失去了,所以我從網站上單獨下載了它,現在執行Exec字元串給了我這個錯誤:

err:module:import_dll Library NDIS.SYS (which is needed by L"C:\\windows\\system32\\drivers\\npf.sys") not found
err:winedevice:ServiceMain driver L"NPF" failed to load
DbgPrint says: XPC4DRVR.SYS: DriverEntry - V1.04...
DbgPrint says: XPC4DRVR: Create Device name (\Device\XILLPT-1)
DbgPrint says: XPC4DRVR: Create Device link (\DosDevices\XILLPT-1)
DbgPrint says: XPC4DRVR: Port name (LPT1) for deviceObject (001113A8h)
fixme:ntoskrnl:IoInitializeTimer stub: 0x1113a8, 0x54315d, 0x111460
DbgPrint says: XPC4DRVR:  Failed initializing timer! Status: C0000002
fixme:exec:SHELL_execute flags ignored: 0x00000100
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Success.

我查了一下,npf.sys確實位於c\:/windows/system32/drivers。怎麼辦?

我決定嘗試通過從帶有前綴集.lnk的 wine 菜單中打開 DOS 提示符來直接啟動該文件。com.xilinx.verilog導航到C:\users\Public\Desktop我跑後start "ISE Design Suite 14.7.lnk",它打開了應用程序視窗!我目前正在尋找一種更好的方式來執行它,但我很高興它可以在不需要執行 Bootcamp 的情況下執行!

編輯

我最終使用 AppleScript 編輯器創建了一個快捷應用程序,並將以下程式碼粘貼到:

set winePref to "/Users/patrick/Library/Application Support/com.xilinx.verilog_145332206926253"
set execPath to winePref & "/drive_c/users/Public/Desktop/ISE Design Suite 14.7.lnk"
do shell script "env WINEPREFIX=" & quoted form of winePref & " /opt/local/bin/wine start /Unix " & quoted form of execPath

請注意,您的特定二進制路徑wine可能與我的不同,因此請務必檢查。

引用自:https://unix.stackexchange.com/questions/256627