Can't compile imx-voiceui

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't compile imx-voiceui

Jump to solution
4,240 Views
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 Kudos
Reply
1 Solution
4,233 Views
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.

View solution in original post

0 Kudos
Reply
1 Reply
4,234 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1924836%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECan't%20compile%20imx-voiceui%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924836%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20I'm%20working%20on%20a%20project%20with%20the%20iMX93%20EVK%20board%20and%20am%20currently%20facing%20an%20issue%20with%20compiling%20imx-voiceui.%3C%2FP%3E%3CP%3EI%20need%20to%20compile%20it%20to%20get%20the%20'voice_ui_app'%20with%20my%20VIT_KO%20model.%20However%2C%20whenever%20I%20run%20%22make%2C%22%20I%20always%20encounter%20the%20following%20error%3A%3C%2FP%3E%3CP%3E%2Fusr%2Fbin%2Fld%3A%20.%2Fplatforms%2FiMX9_CortexA55%2Flib%2Flibvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o)%3A%20Relocations%20in%20generic%20ELF%20(EM%3A%20183)%3CBR%20%2F%3E%2Fusr%2Fbin%2Fld%3A%20.%2Fplatforms%2FiMX9_CortexA55%2Flib%2Flibvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o)%3A%20Relocations%20in%20generic%20ELF%20(EM%3A%20183)%3CBR%20%2F%3E%2Fusr%2Fbin%2Fld%3A%20.%2Fplatforms%2FiMX9_CortexA55%2Flib%2Flibvoiceseeker_no_aec.a(VOICESEEKER_OBJ_0.o)%3A%20Relocations%20in%20generic%20ELF%20(EM%3A%20183)%3CBR%20%2F%3E%2Fusr%2Fbin%2Fld%3A%20.%2Fplatforms%2FiMX9_CortexA55%2Flib%2Flibvoiceseeker_no_aec.a%3A%20error%20adding%20symbols%3A%20file%20in%20wrong%20format%3CBR%20%2F%3Ecollect2%3A%20error%3A%20ld%20returned%201%20exit%20status%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EI%20tried%20installing%20the%20SDK%20and%20adjusting%20the%20toolchain%20for%20the%20iMX93%2C%20but%20it%20didn't%20resolve%20the%20issue.%20Additionally%2C%20I%20modified%20the%20'Makefile'%20to%20use%20the%20%24%7BCC%7D%20and%20%24%7BCXX%7D%20toolchain%20variables%2C%20yet%20the%20problem%20persists.%3C%2FP%3E%3CP%3EHow%20can%20I%20fix%20this%3F%20Any%20help%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1924848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Can't%20compile%20imx-voiceui%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EI%20solved%20the%20issue.%20Instead%20of%20using%20'sudo'%20to%20run%20the%20make%20command%20from%20a%20regular%20user%20account%2C%20I%20used%20the%20root%20account%20and%20successfully%20compiled%20the%20project.%3C%2FLINGO-BODY%3E