2012-09-30 62 views
5

我最近下載了Assimp,我遇到了一些麻煩。應用程序錯誤 - 調試exe不會運行

我已經鏈接了庫,我可以讓程序編譯並在Release mode中運行正常;然而,Debug.exe打我這個錯誤:

The application was unable to start correctly (0xc0150002). Click OK to close the application.

error

更多的細節:

  • 我使用VS2010與目標計算機設置爲x86

  • 我使用系統提供的32位調試DLL(Assimp32d.dll),我試過設置運行時庫/MT/MTd/MD/MDd沒有運氣。

我從我應該在.exe運行Dependency Walker其他類似的線程讀取,但我不知道是什麼的輸出手段。如果這可以幫助你們,我會把它粘貼在這裏。

Error: The Side-by-Side configuration information for "c:\users\-----\documents\visual studio 2010\projects\AssimpTest\debug\ASSIMP32D.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001). Error: At least one required implicit or forwarded dependency was not found. Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module. Error: Modules with different CPU types were found.

+0

應用程序事件日誌告訴你什麼?如果您看到關於DebugCRT丟失的消息,那麼您需要使用VS2010從源重建DLL。 –

+0

只是計算出如何檢查。它說:依賴程序集Microsoft.VC90.DebugCRT,processorArchitecture =「x86」,publicKeyToken =「1fc8b3b9a1e18e3b」,type =「win32」,version =「9.0.21022.8」無法找到。請使用sxstrace.exe進行詳細診斷。看起來我必須重建。? – tempvar

+0

也許您的下載已損壞。你可以嘗試重新下載Assimp。如果這不能解決問題,重新編譯可能是解決方案。 – Synxis

回答

7

而不是重建庫,我下載了一組不同的庫(它是SDK安裝程序),並從被工作完全調試dll的的。

以防萬一任何人有相同的軟件同樣的問題,這是對我工作的安裝程序的確切名稱:assimp-SDK-3.0-SETUP.EXE

+0

謝謝,我實際上有同樣的問題,不知道該怎麼辦。這很奇怪。您的解決方案節省了我的問 – JohnCastle

+1

我似乎無法找到安裝該SDK時的調試DLL ... –

+0

這救了我謝謝! – DanielCollier

1

我遇到了同樣的問題時,試圖在使用Assimp 3.0時以調試模式運行64位項目。

我所做的是去assimp/workspaces/vc9,在Visual Studio 10中打開assimp.sln,轉換項目,然後重建32位和64位dll。 請注意,你必須爲此安裝boost,並編輯項目屬性,以便它指向包含的boost目錄。

也可能有一種使用CMake的方法,但我發現整個過程太麻煩了,以至於無法擺脫首位。

0

我面臨同樣的問題,後來我下載了「assimp-sdk-3.0-setup.exe」文件&作爲標準的Windows應用程序安裝它。

我指出Visual Studio解決方案包括從新近安裝的位置& lib目錄到各自的文件夾,複製DLL到我的應用程序的位置。問題解決了。希望這可以幫助某人。

乾杯。

1

我的解決方案只是將調試版本鏈接到發佈.dll文件。沒有更多的問題,我也沒有興趣去調試Assimp庫!