Can't compile imx-voiceui

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Can't compile imx-voiceui

跳至解决方案
5,052 次查看
dpcivl
Contributor III

Hi, I'm working on a project with the iMX93 EVK board and am currently facing an issue with compiling imx-voiceui.

I need to compile it to get the 'voice_ui_app' with my VIT_KO model. However, whenever I run "make," I always encounter the following error:

/usr/bin/ld: ./platforms/iMX9_CortexA55/lib/libvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: ./platforms/iMX9_CortexA55/lib/libvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: ./platforms/iMX9_CortexA55/lib/libvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o): Relocations in generic ELF (EM: 183)
/usr/bin/ld: ./platforms/iMX9_CortexA55/lib/libvoiceseeker_no_aec.a: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status

I tried installing the SDK and adjusting the toolchain for the iMX93, but it didn't resolve the issue. Additionally, I modified the 'Makefile' to use the ${CC} and ${CXX} toolchain variables, yet the problem persists.

How can I fix this? Any help would be greatly appreciated.

0 项奖励
回复
1 解答
5,045 次查看
dpcivl
Contributor III
I solved the issue. Instead of using 'sudo' to run the make command from a regular user account, I used the root account and successfully compiled the project.

在原帖中查看解决方案

0 项奖励
回复
1 回复
5,046 次查看
dpcivl
Contributor III
I solved the issue. Instead of using 'sudo' to run the make command from a regular user account, I used the root account and successfully compiled the project.
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1924836%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%97%A0%E6%B3%95%E7%BC%96%E8%AF%91imx-voiceui%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924836%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20iMX93%20EVK%20%E6%9D%BF%E8%BF%9B%E8%A1%8C%E4%B8%80%E4%B8%AA%E9%A1%B9%E7%9B%AE%EF%BC%8C%E7%9B%AE%E5%89%8D%E9%9D%A2%E4%B8%B4%E7%BC%96%E8%AF%91%20imx-voiceui%20%E7%9A%84%E9%97%AE%E9%A2%98%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E9%9C%80%E8%A6%81%E7%BC%96%E8%AF%91%E5%AE%83%E4%BB%A5%E8%8E%B7%E5%8F%96%E5%B8%A6%E6%9C%89%E6%88%91%E7%9A%84%20VIT_KO%20%E6%A8%A1%E5%9E%8B%E7%9A%84%E2%80%9Cvoice_ui_app%E2%80%9D%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E6%AF%8F%E5%BD%93%E6%88%91%E8%BF%90%E8%A1%8C%E2%80%9Cmake%E2%80%9D%E6%97%B6%EF%BC%8C%E6%88%91%E6%80%BB%E6%98%AF%E9%81%87%E5%88%B0%E4%BB%A5%E4%B8%8B%E9%94%99%E8%AF%AF%EF%BC%9A%3C%2FP%3E%3CP%3E%2Fusr%2Fbin%2Fld%3A%20.%2Fplatforms%2FiMX9_CortexA55%2Flib%2Flibvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o)%3A%20%E9%80%9A%E7%94%A8%20ELF%20%E4%B8%AD%E7%9A%84%E9%87%8D%E5%AE%9A%E4%BD%8D%EF%BC%88EM%3A%20183%EF%BC%89%3CBR%20%2F%3E%20%2Fusr%2Fbin%2Fld%3A%20.%2Fplatforms%2FiMX9_CortexA55%2Flib%2Flibvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o)%3A%20%E9%80%9A%E7%94%A8%20ELF%20%E4%B8%AD%E7%9A%84%E9%87%8D%E5%AE%9A%E4%BD%8D%EF%BC%88EM%3A%20183%EF%BC%89%3CBR%20%2F%3E%20%2Fusr%2Fbin%2Fld%3A%20.%2Fplatforms%2FiMX9_CortexA55%2Flib%2Flibvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o)%3A%20%E9%80%9A%E7%94%A8%20ELF%20%E4%B8%AD%E7%9A%84%E9%87%8D%E5%AE%9A%E4%BD%8D%EF%BC%88EM%3A%20183%EF%BC%89%3CBR%20%2F%3E%20%2Fusr%2Fbin%2Fld%3A%20.%2Fplatforms%2FiMX9_CortexA55%2Flib%2Flibvoiceseeker_no_aec.a%3A%20%E6%B7%BB%E5%8A%A0%E7%AC%A6%E5%8F%B7%E6%97%B6%E5%87%BA%E9%94%99%EF%BC%9A%E6%96%87%E4%BB%B6%E6%A0%BC%E5%BC%8F%E9%94%99%E8%AF%AF%3CBR%20%2F%3Ecollect2%EF%BC%9A%E9%94%99%E8%AF%AF%EF%BC%9Ald%20%E8%BF%94%E5%9B%9E%201%20%E9%80%80%E5%87%BA%E7%8A%B6%E6%80%81%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%E6%88%91%E5%B0%9D%E8%AF%95%E5%AE%89%E8%A3%85%20SDK%20%E5%B9%B6%E8%B0%83%E6%95%B4%20iMX93%20%E7%9A%84%E5%B7%A5%E5%85%B7%E9%93%BE%EF%BC%8C%E4%BD%86%E5%B9%B6%E6%9C%AA%E8%A7%A3%E5%86%B3%E9%97%AE%E9%A2%98%E3%80%82%E6%AD%A4%E5%A4%96%EF%BC%8C%E6%88%91%E4%BF%AE%E6%94%B9%E4%BA%86%E2%80%9CMakefile%E2%80%9D%E4%BB%A5%E4%BD%BF%E7%94%A8%24%7BCC%7D%E5%92%8C%24%7BCXX%7D%E5%B7%A5%E5%85%B7%E9%93%BE%E5%8F%98%E9%87%8F%EF%BC%8C%E4%BD%86%E9%97%AE%E9%A2%98%E4%BB%8D%E7%84%B6%E5%AD%98%E5%9C%A8%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E6%AD%A4%E9%97%AE%E9%A2%98%EF%BC%9F%E4%BB%BB%E4%BD%95%E5%B8%AE%E5%8A%A9%E9%83%BD%E5%B0%86%E4%B8%8D%E8%83%9C%E6%84%9F%E6%BF%80%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1924848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E6%97%A0%E6%B3%95%E7%BC%96%E8%AF%91%20imx-voiceui%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%88%91%E8%A7%A3%E5%86%B3%E4%BA%86%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E3%80%82%E6%88%91%E6%B2%A1%E6%9C%89%E4%BD%BF%E7%94%A8%E2%80%9Csudo%E2%80%9D%E4%BB%8E%E5%B8%B8%E8%A7%84%E7%94%A8%E6%88%B7%E5%B8%90%E6%88%B7%E8%BF%90%E8%A1%8C%20make%20%E5%91%BD%E4%BB%A4%EF%BC%8C%E8%80%8C%E6%98%AF%E4%BD%BF%E7%94%A8%20root%20%E5%B8%90%E6%88%B7%E5%B9%B6%E6%88%90%E5%8A%9F%E7%BC%96%E8%AF%91%E4%BA%86%E9%A1%B9%E7%9B%AE%E3%80%82%3C%2FLINGO-BODY%3E