Mono
如何修復 buildroot 映像中錯誤連結的單聲道庫?
目前 buildroot 2015.11.1 配置為使用單聲道,libMonoPosixHelper.so 將在 /home/userX/buildroot/output/host/usr/lib/ 路徑中搜尋。此路徑和文件可能存在於我的建構機器上,但不存在於目標上。
我有一個解決方法來創建這個文件夾並在啟動時從 /usr/lib 複製 libMonoPosixHelper.so 到 ram 磁碟中。
以下針對 libMonoPosixHelper 的搜尋結果來自
buildroot/output/build/
從哪裡開始搜尋錯誤的正確位置?
find /home/userX/buildroot -name “*.in”|grep mono|awk ‘{print “grep -H libMonoPosixHelper " $1}’|sh
host-mono-4.0.2.5/runtime/Makefile.in: sed 's,target="$(prefix)/$(reloc_libdir)/libMonoPosixHelper$(libsuffix)",target="'$$d'/libMonoPosixHelper.la",' ../data/config > $@t host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ host-mono-4.0.2.5/support/Makefile.in:am__libMonoPosixHelper_la_SOURCES_DIST = errno.c map.c map.h mph.h \ host-mono-4.0.2.5/support/Makefile.in:am_libMonoPosixHelper_la_OBJECTS = $(am__objects_3) $(am__objects_5) \ host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_OBJECTS = $(am_libMonoPosixHelper_la_OBJECTS) host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ host-mono-4.0.2.5/support/Makefile.in: $(AM_CFLAGS) $(CFLAGS) $(libMonoPosixHelper_la_LDFLAGS) \ host-mono-4.0.2.5/support/Makefile.in:SOURCES = $(libMonoPosixHelper_la_SOURCES) \ host-mono-4.0.2.5/support/Makefile.in:DIST_SOURCES = $(am__libMonoPosixHelper_la_SOURCES_DIST) \ host-mono-4.0.2.5/support/Makefile.in: libMonoPosixHelper.la \ host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_SOURCES = \ host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LIBADD = \ host-mono-4.0.2.5/support/Makefile.in:# libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1 host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LDFLAGS = -no-undefined -avoid-version host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper.la: $(libMonoPosixHelper_la_OBJECTS) $(libMonoPosixHelper_la_DEPENDENCIES) $(EXTRA_libMonoPosixHelper_la_DEPENDENCIES) host-mono-4.0.2.5/support/Makefile.in: $(AM_V_CCLD)$(libMonoPosixHelper_la_LINK) -rpath $(libdir) $(libMonoPosixHelper_la_OBJECTS) $(libMonoPosixHelper_la_LIBADD) $(LIBS) host-mono-4.0.2.5/data/config.in: <dllmap dll="MonoPosixHelper" target="@prefix@/@reloc_libdir@/libMonoPosixHelper@libsuffix@" os="!windows" /> host-mono-4.0.2.5/mono-core.spec.in:rm -f %buildroot%_libdir/libMonoPosixHelper.a host-mono-4.0.2.5/mono-core.spec.in:%_libdir/libMonoPosixHelper.so* mono-4.0.2.5/runtime/Makefile.in: sed 's,target="$(prefix)/$(reloc_libdir)/libMonoPosixHelper$(libsuffix)",target="'$$d'/libMonoPosixHelper.la",' ../data/config > $@t mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \ mono-4.0.2.5/support/Makefile.in:am__libMonoPosixHelper_la_SOURCES_DIST = errno.c map.c map.h mph.h \ mono-4.0.2.5/support/Makefile.in:am_libMonoPosixHelper_la_OBJECTS = $(am__objects_3) $(am__objects_5) \ mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_OBJECTS = $(am_libMonoPosixHelper_la_OBJECTS) mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ mono-4.0.2.5/support/Makefile.in: $(AM_CFLAGS) $(CFLAGS) $(libMonoPosixHelper_la_LDFLAGS) \ mono-4.0.2.5/support/Makefile.in:SOURCES = $(libMonoPosixHelper_la_SOURCES) \ mono-4.0.2.5/support/Makefile.in:DIST_SOURCES = $(am__libMonoPosixHelper_la_SOURCES_DIST) \ mono-4.0.2.5/support/Makefile.in: libMonoPosixHelper.la \ mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_SOURCES = \ mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LIBADD = \ mono-4.0.2.5/support/Makefile.in:# libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1 mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LDFLAGS = -no-undefined -avoid-version mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper.la: $(libMonoPosixHelper_la_OBJECTS) $(libMonoPosixHelper_la_DEPENDENCIES) $(EXTRA_libMonoPosixHelper_la_DEPENDENCIES) mono-4.0.2.5/support/Makefile.in: $(AM_V_CCLD)$(libMonoPosixHelper_la_LINK) -rpath $(libdir) $(libMonoPosixHelper_la_OBJECTS) $(libMonoPosixHelper_la_LIBADD) $(LIBS) mono-4.0.2.5/data/config.in: <dllmap dll="MonoPosixHelper" target="@prefix@/@reloc_libdir@/libMonoPosixHelper@libsuffix@" os="!windows" /> mono-4.0.2.5/mono-core.spec.in:rm -f %buildroot%_libdir/libMonoPosixHelper.a mono-4.0.2.5/mono-core.spec.in:%_libdir/libMonoPosixHelper.so*
將錯誤發佈到buildroot bugzilla。當使用 SerialPort 啟動單聲道執行檔時,它得到了修補,並且較新版本的 buildroot >2016 不會顯示問題。