Sunday, 15 March 2015

Raspberry PI cross compilation linking error - unknown symbol _dl_hwcap -



Raspberry PI cross compilation linking error - unknown symbol _dl_hwcap -

i have set cross-complation environment rpi under 64 bit ubuntu. can compile , run personal project using gstreamer fine.

due performance-issues gstreamer, want work on fork of omxplayer. adapted environment, , compilation of ffmpeg , omxplayer work fine.

however, linking actual executable (ffmpeg, or omxplayer.bin) yields linking error have been unable resolve.

you find total output of lastly failing linking-step verbose flags here:

https://gist.github.com/deets/3bba7c94017405d28f81

the error message is

ffmpeg_compiled/usr/local/lib/libavcodec.so: undefined reference `_dl_hwcap' collect2: error: ld returned 1 exit status

the missing symbol me suggests dynamic loading. maybe libc or libdl botched? how come these working fine if compiling project?

found culprit. when setting crosscompilation-environment, create sure re-create of rpi's libraries correct. had unresolved symbolic library links needed fixing in rsync'ed re-create of rpi's file-system.

raspberry-pi cross-compiling dynamic-linking

No comments:

Post a Comment