Software-Installation
解決錯誤:通過 Wine 執行 Xilinx
我已經通過前綴上的 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
可能與我的不同,因此請務必檢查。