請問在 BCB6中使用 DSPack 的Compile 錯誤 |
答題得分者是:m1357
|
trlct
一般會員 發表:9 回覆:14 積分:4 註冊:2004-05-31 發送簡訊給我 |
執行 DSPack 中 DSPack\Demos\BCB6\PlayWin 這個 Demo檔時,若
1.不勾選 Project-Options-Packegs中的「Build with runtime packages」
2.不勾選 Project-Options-Linker中的「Use dynamic RTL」 則在Compile時會出現下列錯誤 [Linker Error] Unresolved external 'AMGetErrorTextA' referenced from C:\PROGRAM FILES\BCBUILDER6\PROJECTS\LIB\DSPACK_BCB6.LIB|C:\Program Files\DSPack\src\DSPack\DSUtil.pas [Linker Error] Unresolved external 'Direct3DCreate9' referenced from C:\PROGRAM FILES\BCBUILDER6\PROJECTS\LIB\DIRECTX9_BCB6.LIB|C:\Program Files\DSPack\src\DirectX9\Direct3D9.pas [Linker Error] Unresolved external 'WMCreateWriterNetworkSink' referenced from C:\PROGRAM FILES\BCBUILDER6\PROJECTS\LIB\DSPACK_BCB6.LIB|C:\Program Files\DSPack\src\DSPack\DSPack.pas 這該如何解決,有沒有那位高手可幫忙一下,謝謝!
|
GGL
資深會員 發表:104 回覆:600 積分:335 註冊:2006-11-05 發送簡訊給我 |
|
trlct
一般會員 發表:9 回覆:14 積分:4 註冊:2004-05-31 發送簡訊給我 |
|
wearefamily
一般會員 發表:12 回覆:16 積分:5 註冊:2004-03-13 發送簡訊給我 |
在 directories/conditionals
的include path 加入你的 DSPACK目錄 src/DSPACK,及DIRECTX9,
最好用..\..\Src\DirectX9 這種相對路徑形態可以找到的目錄,
而在compiler時就不會出錯, 若是用 指定絕對路徑 如 c:\xxxx\xxx\src\DSPACK 等路徑,compliler一定會掛
粉神奇! PS.
DXSDK的 include 一定要放到 builder 的 include 內,並同意取代某些檔案
而DSPACK的 include也一定要放到 builder 的include ,並同意取代某些檔案
|
trlct
一般會員 發表:9 回覆:14 積分:4 註冊:2004-05-31 發送簡訊給我 |
|
conundrum
尊榮會員 發表:893 回覆:1272 積分:643 註冊:2004-01-06 發送簡訊給我 |
安裝DSPack之後
C:\Program Files\DSPack\help\Help.chm
不是有說明了 What can I do with DSPack ?
I've writen DSPack with the idea to provide a non limitative set of components and class to use DirectShow easier. With DSpack you can create all that you want: DVD, capture, compression, filters, TV, webcam, DV ... How to install ?
All Versions
1 - Install DirectX9 if you plan to use VMR or Direct3D : http://www.microsoft.com/windows/directx/downloads/drx90.asp 2 - Install Direct3D libraries if you plan to use Direct3D : http://clootie.narod.ru/delphi/download_dx90.html 3 - Install Windows Media if you plan to use ASF compression or streaming: http://www.progdigy.com/download/wmfdist.exe Delphi 5,6 & 7
1 - Add this paths to your search directory:
- (DSPackDir)\src\Directx9
- (DSPackDir)\src\DSPack 2 - Compile DirectX 9 Package (DirectX9_Dx.dpk) from the "packages" directtory. 3 - Compile DSPack Package (DSPack_Dx.dpk) from the "packages" directory. 4- Install Design Package (DSPackDesign_Dx.dpk) from the "packages" directory. If you have a warning message during the last step on Win9x, probaby the path : "../Delphi.../bin" is not correctly defined in "c:\autoexec.bat", in most case the path is too long. To correct this problem you have to set this path again. Alternatively change the bpl output directory option on each package to "$(DELPHI)\Bin" (Options>Directories/Conditionals>Output directory). CPP Builder 6
1 - Download the DirectX9 SDK from MS and update the "$(BCB)\Include" directory. You must also updates the DX SDK with the file provided in the "(DSPackDir)\Include" directory. 2 - Add this paths to your search directory:
- (DSPackDir)\src\Directx9
- (DSPackDir)\src\DSPack 2 - Compile DirectX 9 Package (DirectX9_BCB6.dpk) from the "packages" directtory. 3 - Compile DSPack Package (DSPack_BCB6.dpk) from the "packages" directory. 4- Install Design Package (DSPackDesign_BCB6.dpk) from the "packages" directory. What does it cost ?
Nothing, DSPack is distributed under the MPL 1.1, but I accept money to pay web hosting. Henri Gourvest
hgourvest@progdigy.com
|
trlct
一般會員 發表:9 回覆:14 積分:4 註冊:2004-05-31 發送簡訊給我 |
|
conundrum
尊榮會員 發表:893 回覆:1272 積分:643 註冊:2004-01-06 發送簡訊給我 |
|
wearefamily
一般會員 發表:12 回覆:16 積分:5 註冊:2004-03-13 發送簡訊給我 |
trlct 兄,
我這邊不勾 Project-Options-Packegs中的「Build with runtime packages」
就會出現你所說的情況,
更奇怪是, DEMO裏面的 Playcap
如果我直接compile 會有錯,
要把 project-options-directories/coditionals-coditional define
的設定 _Debug拿掉, complie才OK
各位有這樣的情況嗎? 另外,如果我新建一個project,沒有改任何選項, 也設定該設的路徑 ,也會出現 trlct 所說的錯誤訊息!!!
|
trlct
一般會員 發表:9 回覆:14 積分:4 註冊:2004-05-31 發送簡訊給我 |
|
conundrum
尊榮會員 發表:893 回覆:1272 積分:643 註冊:2004-01-06 發送簡訊給我 |
|
wearefamily
一般會員 發表:12 回覆:16 積分:5 註冊:2004-03-13 發送簡訊給我 |
|
GGL
資深會員 發表:104 回覆:600 積分:335 註冊:2006-11-05 發送簡訊給我 |
|
m1357
一般會員 發表:4 回覆:3 積分:6 註冊:2004-07-15 發送簡訊給我 |
|
trlct
一般會員 發表:9 回覆:14 積分:4 註冊:2004-05-31 發送簡訊給我 |
|
JerryKuo
版主 發表:42 回覆:571 積分:322 註冊:2003-03-10 發送簡訊給我 |
引言: 因 BCB 在 Link 時找不到這幾個程序,只需要將下列幾個 Lib 加入 Project Manager 後,再重新 Link 即可.這些 Lib 都可以在 ..\DSPack\lib 中找到. 1.WMVCORE.lib 2.d3d9.lib 3.quartz.lib 4.amstrmid.lib >>< face="Verdana, Arial, Helvetica">引言: trlct: 多謝m1357兄,問題解決了。因為當初我就是有這個問題,所以DSPack就移除了,沒在用, 照m1357所說的,是不是只要把這幾個file加入指定的目錄下, 就能build成自動執行,拿到沒有灌DSPack的電腦上執行嗎? 還是問題還是沒解決? ps:抱歉,因為現在的電腦沒辦法試,所以才想直接問其他人試過的結果。 再決定要不要灌 |
bearmaster
一般會員 發表:36 回覆:45 積分:16 註冊:2004-05-27 發送簡訊給我 |
|
freekyidea
一般會員 發表:1 回覆:3 積分:0 註冊:2009-08-12 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |