Error using codegen - R2016b on Ubuntu14.04
조회 수: 2 (최근 30일)
이전 댓글 표시
When I run "FaceTrackingKLTpackNGoExample.m", I get the following error
>> FaceTrackingKLTpackNGoExample
-> Generating Code (it may take a few minutes) ....
??? Build error: Build failed for project 'FaceTrackingKLTpackNGo_kernel'. See the Target Build Log in
the report for further details.
Error in ==> FaceTrackingKLTpackNGo_kernel Line: 1 Column: 1
Code generation failed: View Error Report
Error using codegen
Error in FaceTrackingKLTpackNGoExample (line 70)
codegen(codegenArgs{:}, fileName);
When I click "View Error Report", I see the following
/usr/bin/ld: HostLib_rtw.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gmake: *** [/tmp/tp44a3c425_46b9_48ab_b357_fe1e097b3d62/codegen/FaceTrackingKLTpackNGo_kernel] Error 1
Has anyone ever experienced the same problem? Any solution please?
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 10월 1일
You may need to add the "dl" library to be linked. If you are working from the command line that would be by adding -ldl
I see in the error message a reference to /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libdl.so . The first .. would take you up to where 4.8 was a child; the second .. would take you up to where x86_64-linux-gnu was a child; the third .. would take you up to where gcc was a child, so that would seem to resolve to /usr/lib/x86_64-linux-gnu/libdl.so . I wonder if that actually exists or if the file is really in /usr/lib/gcc/x86_64-linux-gnu/libdl.so ? Is /usr/lib/gcc/x86_64-linux-gnu/libdl.so perhaps a symlink that resolves to /usr/lib/x86_64-linux-gnu/libdl.so ?
댓글 수: 5
Walter Roberson
2016년 10월 2일
Look in the directory codegenOutDir -- you might have to look a directory down from there to find the Makefile
참고 항목
카테고리
Help Center 및 File Exchange에서 Build Configuration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!