如何用zybo板(zynq-7010)上实现变声功能?

网上下了soundtouch库,根据这篇文章
https://www.cnblogs.com/CodeMIRACLE/p/5514806.html
用VS编译出的exe文件效果很好,但不知如何把C++代码直接扔进板子里,用了vivado hls,出现了如下错误,现怀疑大方向就是错的?望诸位指点一二

INFO: [SIM 2] *************** CSIM start ***************
INFO: [SIM 4] CSIM will launch GCC as the compiler.
Compiling ../../../../../../../../Desktop/fa/src/test.cpp in debug mode
csim.mk:81: recipe for target 'obj/test.o' failed
../../../../../../../../Desktop/fa/src/test.cpp: In function 'void DelArray(void*)':
../../../../../../../../Desktop/fa/src/test.cpp:52:12: warning: deleting 'void*' is undefined [-Wdelete-incomplete]
delete []pData;
^~~~~
../../../../../../../../Desktop/fa/src/test.cpp: In function 'bool CombineWaveFile(int, char (*)[256], char*)':
../../../../../../../../Desktop/fa/src/test.cpp:76:48: error: cast from 'FILE* {aka _iobuf*}' to 'int' loses precision [-fpermissive]
(pFileHandle +i)= (int)(fopen(argv[i], "rb"));
^
../../../../../../../../Desktop/fa/src/test.cpp:90:83: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
int nRead = fread(pRiff_Header+i, 1, sizeof(RIFF_HEADER), (FILE
)(pFileHandle[i]));
^
../../../../../../../../Desktop/fa/src/test.cpp:101:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nRead = fread(pFmt_Block+i, 1, 8, (FILE*)(*(pFileHandle+i)));
^
../../../../../../../../Desktop/fa/src/test.cpp:112:101: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nRead = fread(&((pFmt_Block+i)->wavFormat), 1, (pFmt_Block+i)->dwFmtSize, (FILE*)(*(pFileHandle+i)));
^
../../../../../../../../Desktop/fa/src/test.cpp:123:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nRead = fread(pFact_Block+i, 1, 8, (FILE*)(*(pFileHandle+i)));
^
../../../../../../../../Desktop/fa/src/test.cpp:137:106: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nRead = fread(&((pFact_Block+i)->dwData), 1, sizeof((pFact_Block+i)->dwData), (FILE*)(*(pFileHandle+i)));
^
../../../../../../../../Desktop/fa/src/test.cpp:147:80: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nRead = fread(pData_Block+i, 1, sizeof(DATA_BLOCK), (FILE*)(*(pFileHandle+i)));
^
../../../../../../../../Desktop/fa/src/test.cpp:200:75: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
int nRet = fread(strTemp, 1, sizeof(strTemp)-1, (FILE*)(*(pFileHandle+i)));
^
../../../../../../../../Desktop/fa/src/test.cpp:204:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
nRet = fread(strTemp, 1, sizeof(strTemp)-1, (FILE*)(*(pFileHandle+i)));
^
../../../../../../../../Desktop/fa/src/test.cpp:206:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
fclose((FILE*)(*(pFileHandle+i)));
^
../../../../../../../../Desktop/fa/src/test.cpp: In function 'int main()':
../../../../../../../../Desktop/fa/src/test.cpp:226:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
CombineWaveFile(3, strFile, "out.wav");
^
make: *** [obj/test.o] Error 1
ERR: [SIM 100] 'csim_design' failed: compilation error(s).
INFO: [SIM 3] *************** CSIM finish ***************

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问