arm-fsl-linux-gnueabi-gcc 交叉编译工具链不能正常链接库 5C
  1. 使用gcc -o simplescan simplescan.c -lbluetooth 可以编译程序。

  2. arm-fsl-linux-gnueabi-gcc -o simplescan simplescan.c -lbluetooth
    这样编译程序时提示找不头文件。

  3. arm-fsl-linux-gnueabi-gcc -o simplescan simplescan.c -I/usr/include/ -I/usr/include/i386-linux-gnu
    手动设置头文件路径后,提示找不到库
    /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find -lbluetooth
    collect2: ld returned 1 exit status

  4. 手动指定库路径编译
    arm-fsl-linux-gnueabi-gcc -o simplescan simplescan.c -I/usr/include/ -I/usr/include/i386-linux-gnu -L/usr/lib/i386-linux-gnu
    编译提示
    simplescan.c:(.text+0x84): undefined reference to hci_get_route'
    simplescan.c:(.text+0x90): undefined reference to
    hci_open_dev'
    simplescan.c:(.text+0x11c): undefined reference to hci_inquiry'
    simplescan.c:(.text+0x170): undefined reference to
    ba2str'
    simplescan.c:(.text+0x1c8): undefined reference to `hci_read_remote_name'
    collect2: ld returned 1 exit status

5.使用arm-fsl-linux-gnueabi-nm -D bluetooth_build/lib/libbluetooth.so.3.13.0
查看库里函数,函数也存在。

000061e8 T hci_get_route
000063bc T hci_inquiry
00006ab4 T hci_le_add_white_list
00006c90 T hci_le_clear_white_list
00008ca0 T hci_le_conn_update
00008b44 T hci_le_create_conn
00006c04 T hci_le_read_white_list_size
00006b5c T hci_le_rm_white_list
00008ac8 T hci_le_set_advertise_enable
00008988 T hci_le_set_scan_enable
00008a10 T hci_le_set_scan_parameters
00005bd0 T hci_lmtostr
00005b98 T hci_lptostr
00006520 T hci_open_dev

这是什么情况?

补充问题:

其实我的bluetooth的链接也已经编译了,使用-L指向我的链接库时,也是提示没有那些函数。
因为gcc编译可以通过,我就想着链接一下gcc用的动态库看可不可以通过。结果还是一样的。

所以百思不得其解。找不到要往哪个方向查了。

使用nm 对比了i386的蓝牙库和用交叉工具编译的蓝牙库,有没太大的差异
这是我的库
file work/bluetooth/bluetooth_build/lib/libbluetooth.so.3.13.0
work/bluetooth/bluetooth_build/lib/libbluetooth.so.3.13.0: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not stripped

4个回答

交叉编译需要先把依赖的库也交叉编译,你这个问题是bluetooth没有交叉编译过,我看你链接的库和头文件还是i386的,明显错误,去下载一份bluetooth的源码交叉编译先吧,如果你搞不清楚动态链接和静态链接,建议你编译的时候先用静态链接的方法,不然到时候放板子跑还有问题

你链接的库也需要交叉编译生成才可用,你可以用file命令看看你链接的库是什么架构的

其实我的bluetooth的链接也已经编译了,使用-L指向我的链接库时,也是提示没有那些函数。
因为gcc编译可以通过,我就想着链接一下gcc用的动态库看可不可以通过。结果还是一样的。

所以百思不得其解。找不到要往哪个方向查了。

使用nm 对比了i386的蓝牙库和用交叉工具编译的蓝牙库,有没太大的差异
这是我的库
file work/bluetooth/bluetooth_build/lib/libbluetooth.so.3.13.0
work/bluetooth/bluetooth_build/lib/libbluetooth.so.3.13.0: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not stripped

终于解决了,是因为我只指定的动态库的路径,没有指定名字导致的。
错误的情况:
arm-linux-gcc -I$blue/include -L$blue/lib -o simplescan2 simplescan.c
错误的信息
/tmp/ccIt9adp.o: In function main':
simplescan.c:(.text+0x84): undefined reference to
hci_get_route'
simplescan.c:(.text+0x90): undefined reference to hci_open_dev'
simplescan.c:(.text+0x11c): undefined reference to
hci_inquiry'
simplescan.c:(.text+0x170): undefined reference to ba2str'
simplescan.c:(.text+0x1c8): undefined reference to
hci_read_remote_name'
collect2: ld returned 1 exit status

正确的使用
arm-linux-gcc -I$blue/include -L$blue/lib -lbluetooth -o simplescan simplescan.c

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
交叉编译程序无法运行 arm-oe-linux-gnueabi-gcc: not found

Ubuntu交叉编译的应用程序在Qualcomm 9615 A5核的Linux系统下面无法运行, 出错信息如下 dinapp /usr/bin/dinapp: cd: line 1: can't cd to /home/nelson/qualcomm/Margaery/apps_pro c/oe-core/build/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/dinstar-git-r1/ dinstar /usr/bin/dinapp: eval: line 1: arm-oe-linux-gnueabi-gcc: not foundn/usr/bin #

ARM交叉编译工具链不能工作

我用的是windows10上面的linux子系统,然后今天安装arm交叉便宜工具链时,出现了图片中的情况,百度了之后,安装了一下32位库还是没有用,请问是哪里出现了问题?![图片说明](https://img-ask.csdn.net/upload/201707/27/1501126822_460777.png)

自己基于yocto 生成觉得QT开发环境重新移植QT5.5.1时报错,请问什么原因

+ cd qtbase + /home/keyto/QT/qt-everywhere-opensource-src-5.5.1/qtbase/configure -top-level -v -release -prefix /opt/qt5.5.1 -opensource -confirm-license -no-c++11 -no-pch -no-xcb -no-openssl -no-opengl -opengl es2 -dbus -qt-zlib -no-sse2 -no-iconv -tslib -make libs -device imx6 -device-option CROSS_COMPILE=/opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -no-gcc-sysroot -I /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include -L /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib -make examples -nomake tools -nomake tests This is the Qt Open Source Edition. You are licensed to use this software under the terms of the Lesser GNU General Public License (LGPL) versions 2.1. You are also licensed to use this software under the terms of the GNU Lesser General Public License (LGPL) versions 3. You have already accepted the terms of the Open Source license. /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -c -fvisibility=hidden fvisibility.c Symbol visibility control enabled. /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crt1.o: No such file or directory /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crti.o: No such file or directory /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtbegin.o: No such file or directory /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lstdc++ /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lm /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc_s /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lc /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc_s /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtend.o: No such file or directory /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crt1.o: No such file or directory /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crti.o: No such file or directory /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtbegin.o: No such file or directory /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lstdc++ /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lm /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc_s /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lc /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc_s /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find -lgcc /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtend.o: No such file or directory /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/real-ld: cannot find crtn.o: No such file or directory collect2: error: ld returned 1 exit status /opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c bsymbolic_functions.c:2:2: error: #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)." #error "Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129)." ^ Symbolic function binding disabled. DEFAULT_INCDIRS="/usr/include /usr/local/include" DEFAULT_LIBDIRS="/lib /usr/lib" Creating qmake... arm-poky-linux-gnueabi-g++ -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/opt/fsl-imx-fb/4.1.15-1.2.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi -o "../bin/qmake" project.o option.o property.o main.o ioutils.o proitems.o qmakevfs.o qmakeglobals.o qmakeparser.o qmakeevaluator.o qmakebuiltins.o makefile.o unixmake2.o unixmake.o mingw_make.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o cesdkhandler.o qtextcodec.o qutfcodec.o qstring.o qstring_compat.o qstringbuilder.o qtextstream.o qiodevice.o qdebug.o qmalloc.o qglobal.o qarraydata.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfiledevice.o qfile.o qfilesystementry.o qfilesystemengine.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlocale_tools.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o qlogging.o qjson.o qjsondocument.o qjsonparser.o qjsonarray.o qjsonobject.o qjsonvalue.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--gc-sections project.o: file not recognized: File format not recognized collect2: error: ld returned 1 exit status make: *** [../bin/qmake] Error 1

Opencv2.4.9交叉编译时候遇到的问题

我在opencv配置arm环境的时候反复遇到了好多问题,最后要编译了,问题卡在这里了 我在交叉编译的时候输入如下指令 arm-fsl-linux-gnueabi-g++ `pkg-config --cflags arm-opencv` `pkg-config –libs arm-opencv` test.cpp -lpthread –lrt -ldl –o test 却出现了如下错误 arm-fsl-linux-gnueabi-g++: –lrt: No such file or directory arm-fsl-linux-gnueabi-g++: –o: No such file or directory arm-fsl-linux-gnueabi-g++: test: No such file or directory 实在是搞不懂怎么回事,因为我在写其他文件的时候-o明明是可以的。网上的方法该配置的都配置了! 望高手能解答

arm-linux/bin/ld: cannot find -lopencv_imgproc

用qte编译一个opencv程序时,显示如下错误: ligang@ligang-virtual-machine:/work/qtepro/opencv$ make /mysoftware/qte/bin/qmake -unix -o Makefile opencv.pro arm-linux-g++ -Wl,-O1 -Wl,-rpath,/mysoftware/qte/lib -o opencv main.o -L/mysoftware/qte/lib -lopencv_imgproc -lopencv_core -lopencv_highgui -lopencv_ml /usr/local/lib/libopencv_core.so /usr/local/lib/libopencv_highgui.so /usr/local/lib/libopencv_imgproc.so /usr/local/lib/libopencv_ml.so -lQtNetwork -L/mysoftware/tslib/lib -L/mysoftware/qte/lib -lQtCore -lm -lrt -ldl -lpthread /mysoftware/gcc-3.4.5-glibc-2.3.6/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/bin/ld: skipping incompatible /mysoftware/qte/lib/libopencv_imgproc.so when searching for -lopencv_imgproc /mysoftware/gcc-3.4.5-glibc-2.3.6/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/bin/ld: skipping incompatible /mysoftware/qte/lib/libopencv_imgproc.so when searching for -lopencv_imgproc /mysoftware/gcc-3.4.5-glibc-2.3.6/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/bin/ld: cannot find -lopencv_imgproc 配置应该都是正确的,难道是opencv的库没有头文件库吗?还是需要该它的symbollink?

ubuntu12.04下 opencv库交叉编译后 动态库找不到

ubuntu上我装了pc 和arm 两个版本的opencv2.4.9 目录分别是/usr/local/opencv2.4.9 和/opt/opencv2.4.9-for-arm pc版本的库文件都在/usr/local/lib下 arm版本库文件在/opt/opencv2.4.9-for-arm/lib下 whereis libopencv___core 的时候,只列出的/usr/local/lib/libopencv_core.so 交叉编译器在/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin下 我写一个opencv测试程序test.cpp 交叉编译出现警告 ``` # arm-linux-g++ -o test test.cpp -I /opt/opencv2.4.9-for-arm/lib/include -L /opt/opencv2.4.9-for-arm/lib -lopencv_core -lopencv_highgui -lpthread -lrt In file included from /opt/opencv2.4.9-for-arm/lib/include/opencv2/flann/kmeans_index.h:50:0, from /opt/opencv2.4.9-for-arm/lib/include/opencv2/flann/all_indices.h:38, from /opt/opencv2.4.9-for-arm/lib/include/opencv2/flann/flann_base.hpp:44, from /opt/opencv2.4.9-for-arm/lib/include/opencv2/flann/flann.hpp:50, from /opt/opencv2.4.9-for-arm/lib/include/opencv/cv.h:69, from test.cpp:2: /opt/opencv2.4.9-for-arm/lib/include/opencv2/flann/logger.h:73:9: note: the mangling of 'va_list' has changed in GCC 4.4 /opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_core.so, needed by /opt/opencv2.4.9-for-arm/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link) /opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: ../../lib/libopencv_imgproc.so, needed by /opt/opencv2.4.9-for-arm/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link) root@tsie-All-Series:/home/tsie/nfs/test/opencv_test# whereis libopencv_core libopencv_core: /usr/local/lib/libopencv_core.so ``` 这里面好像用到交叉编译器的ld,找opencv的.so文件看提示是跑到交叉编译器所在文件夹里面的lib去找?? 我也吧opencv的交叉库放到这个文件夹里面,再编译还是同样的问题 然后我尝试加上运行时库路径参数 -Wl,-rpath,/opt/opencv2.4.9-for-arm/lib,再编译,弹出来一样的信息。 然后,就没有然后了。我晕 这究竟谁什么问题啊 求各路大神给点思路

speex 在Linux 上面的编译和移植

1. 本人在官网上下载了speex的源码:speex-1.2.0.tar ,想要编译出库文件给其他工程使用。编译的时候遇到些问题。 2. 解压后操作如下: ./configure --host=arm-fsl-linux-gnueabi CC=arm-fsl-linux-gnueabi-gcc --enable-static --enable-shared make 3. 编译完了并没有生成库文件,但是也没报错。 eyelake@ubuntu:~/eyelake-workdir/speex/speex-1.2.0$ make 希望懂的人指明下思路,多谢。 编译结果如下: make all-recursive make[1]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0' Making all in libspeex make[2]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/libspeex' CC cb_search.lo CC filters.lo CC lsp.lo CC ltp.lo CC speex.lo CC stereo.lo CC vbr.lo CC vq.lo CC bits.lo CC lpc.lo CC modes.lo CC modes_wb.lo CC nb_celp.lo CC quant_lsp.lo CC sb_celp.lo CC speex_callbacks.lo CC speex_header.lo CC window.lo CCLD libspeex.la make[2]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/libspeex' Making all in include make[2]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/include' Making all in speex make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/include/speex' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/include/speex' make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/include' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/include' make[2]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/include' Making all in doc make[2]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/doc' Making all in win32 make[2]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32' Making all in libspeex make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/libspeex' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/libspeex' Making all in speexenc make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/speexenc' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/speexenc' Making all in speexdec make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/speexdec' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/speexdec' Making all in VS2003 make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003' Making all in libspeex make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003/libspeex' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003/libspeex' Making all in speexenc make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003/speexenc' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003/speexenc' Making all in speexdec make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003/speexdec' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003/speexdec' Making all in tests make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003/tests' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003/tests' make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003' make[4]: Nothing to be done for `all-am'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003' make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2003' Making all in VS2005 make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005' Making all in libspeex make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005/libspeex' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005/libspeex' Making all in speexenc make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005/speexenc' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005/speexenc' Making all in speexdec make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005/speexdec' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005/speexdec' Making all in tests make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005/tests' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005/tests' make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005' make[4]: Nothing to be done for `all-am'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005' make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2005' Making all in VS2008 make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008' Making all in libspeex make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008/libspeex' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008/libspeex' Making all in speexenc make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008/speexenc' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008/speexenc' Making all in speexdec make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008/speexdec' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008/speexdec' Making all in tests make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008/tests' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008/tests' make[4]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008' make[4]: Nothing to be done for `all-am'. make[4]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008' make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32/VS2008' make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32' make[2]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/win32' Making all in symbian make[2]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/symbian' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/symbian' Making all in ti make[2]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti' Making all in speex_C54_test make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti/speex_C54_test' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti/speex_C54_test' Making all in speex_C55_test make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti/speex_C55_test' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti/speex_C55_test' Making all in speex_C64_test make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti/speex_C64_test' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti/speex_C64_test' make[3]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti' make[2]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0/ti' make[2]: Entering directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0' make[2]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0' make[1]: Leaving directory `/home/eyelake/eyelake-workdir/speex/speex-1.2.0'

/usr/bin/ld: cannot find -lxxx Linux下编译时提示无法找到共享库

关于Linux下链接三方库的问题。我在CentOS7.6 系统上安装了ZeroMQ三方库,安装路径是:/usr/local/zeromq 这个安装路径是本人自定义的。 我在当前用户的主目录下配置了如下的环境变量值:vim ~/.bash_profile export LD_LIBRARY_PATH=/usr/local/zeromq/lib:$LD_LIBRARY_PATH export C_INCLUDE_PATH=/usr/local/zeromq/include:$C_INCLUDE_PATH 我尝试编译了一个源文件,编译命令如下: gcc zmq_version.c -o zmq_version -lzmq 但是,报了如下的错误: /usr/bin/ld: cannot find -lzmq collect2: error: ld returned 1 exit status 于是,我尝试通过-L参数添加共享库的搜索路径,编译命令如下: gcc zmq_version.c -o zmq_version -L/usr/local/zeromq/lib -lzmq 编译通过了,我查看了下生成的可执行文件zmq_version 所依赖的共享库文件列表: $ ldd zmq_version     linux-vdso.so.1 =>  (0x00007ffd2c9f3000)     libzmq.so.5 => /usr/local/zeromq/lib/libzmq.so.5 (0x00007f70513b5000)     libc.so.6 => /lib64/libc.so.6 (0x00007f7050fe8000)     librt.so.1 => /lib64/librt.so.1 (0x00007f7050de0000)     libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7050bc4000)     libdl.so.2 => /lib64/libdl.so.2 (0x00007f70509c0000)     libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f70506b9000)     libm.so.6 => /lib64/libm.so.6 (0x00007f70503b7000)     libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f70501a1000)     /lib64/ld-linux-x86-64.so.2 (0x00007f7051643000) 我感到疑惑的是,我已经在环境变量LD_LIBRARY_PATH中设置了zmq的共享库搜索路径了,在上面的第1个编译命令中,为什么编译的时候仍然提示无法找到-lzmq呢,可以看到头文件和共享库的搜索路径设置是没有问题的。我在网上试图查找问题原因,但是博客上描述的情形没有一个是遇到我这种情况的,还请有经验的大神指点迷津呀!

Yocto的InfluxDB配方在Rocko中使用devtool工作流程失败

<div class="post-text" itemprop="text"> <p>I wish to add InfluxDB version 1.7.6 to my Single Board Computer from PHYTEC and did the following initially:</p> <ol> <li><p>create initial recipe using <code>devtool</code></p> <pre><code>devtool add influxdb https://github.com/influxdata/influxdb/archive/v1.7.6.tar.gz </code></pre></li> <li><p>Edit the recipe. I correlate it to a <a href="https://github.com/nefethael/meta-random/blob/master/recipes-dbs/influxdb/github.com-influxdata-influxdb_1.7.5.bb" rel="nofollow noreferrer">recipe</a> for a random layer for <code>thud</code> and add necessary lines to it. The recipe is as follows:</p></li> </ol> <pre><code># Recipe created by recipetool # This is the basis of a recipe and may need further editing in order to be fully functional. # (Feel free to remove these comments when editing.) # WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is # your responsibility to verify that the values are complete and correct. LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=ba8146ad9cc2a128209983265136e06a" SRC_URI = "https://github.com/influxdata/influxdb/archive/v${PV}.tar.gz" SRC_URI[md5sum] = "0c9e9ada13672bc923390b0cbcf1189c" SRC_URI[sha256sum] = "b3393e4c9bc66dcbf7607f389377ba549628e80f6fd9dca598ce5ad68a696885" # NOTE: no Makefile found, unable to determine what needs to be done inherit go systemd FILES_${PN} += "${GOBIN_FINAL}/*" RDEPENDS_${PN} += "bash python-core" SRC_URI += "file://influxdb.conf file://influxdb.service" do_install_append () { install -d ${D}${sysconfdir}/influxdb/ install -m 0644 ${WORKDIR}/influxdb.conf ${D}${sysconfdir}/influxdb/ install -d ${D}${systemd_unitdir}/system/ install -m 0644 ${WORKDIR}/influxdb.service ${D}${systemd_unitdir}/system/ } SYSTEMD_SERVICE_${PN} = "influxdb.service" </code></pre> <ol start="3"> <li>I added the <code>.conf</code> and <code>influxdb.service</code> file in a folder <code>files</code> and the recipe folder looks like the following:</li> </ol> <pre><code> . ├── files │   ├── influxdb.conf │   └── influxdb.service └── influxdb_1.7.6.bb </code></pre> <ol start="4"> <li><p>I tried the following to build the recipe:</p> <pre><code>devtool build influxdb </code></pre></li> </ol> <p>And I get the following errors:</p> <pre><code>DEBUG: Executing python function externalsrc_compile_prefunc NOTE: influxdb: compiling from external source tree /home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/workspace/sources/influxdb DEBUG: Python function externalsrc_compile_prefunc finished DEBUG: Executing shell function do_compile GOARCH="arm" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/workspace/sources/influxdb" GORACE="" GOROOT="/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot/usr/lib/go" GOTOOLDIR="/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot-native/usr/lib/arm-phytec-linux-gnueabi/go/pkg/tool/linux_amd64" GCCGO="gccgo" GOARM="7" CC="arm-phytec-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influx db/1.7.6-r0/recipe-sysroot" GOGCCFLAGS="-march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sy sroot -fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/go-tmp/go-build548794802=/tmp/g o-build -gno-record-gcc-switches" CXX="arm-phytec-linux-gnueabi-g++ -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influ xdb/1.7.6-r0/recipe-sysroot" CGO_ENABLED="1" CGO_CFLAGS="-O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0=/usr/src/debug/influx db/1.7.6-r0 -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/des/Yocto/PHYTEC_ BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot=" CGO_CPPFLAGS="" CGO_CXXFLAGS="-O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0=/usr/src/debug/infl uxdb/1.7.6-r0 -fdebug-prefix-map=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/des/Yocto/PHYTE C_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot= -fvisibility-inlines-hidden" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" PKG_CONFIG="pkg-config" warning: "/..." matched no packages go install: no install location for directory /home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/workspace/sources/influxdb outside GOPATH For more details see: 'go help gopath' WARNING: /home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/temp/run.do_compile.28359:1 exit 1 from 'arm-phytec-linux-gnueabi-go install -linkshare d -p 4 -v -ldflags="-r /usr/lib/go/pkg/linux_arm_dynlink -extldflags '-march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/corte xa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot -Wl,-rpath-link=/home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/recipe-sysroot/ usr/lib/go/pkg/linux_arm_dynlink -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed'" `go_list_packages`' ERROR: Function failed: do_compile (log file is located at /home/des/Yocto/PHYTEC_BSPs/yocto_fsl_update/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/influxdb/1.7.6-r0/temp/log.do_compile.28359) </code></pre> <p>I am unable to understand why does the <code>go install</code> error persist here. On the local server I have all the correct <code>PATH</code> parameters for go in the <code>~/.bashrc</code> file which I assume is not the root cause of the error.</p> <p>P.S. I have added the <code>meta-golang</code> with branch <code>rocko</code> with all my other meta layers to my <code>bblayers.conf</code></p> </div>

qt-sdk编译qmake无法生存.o文件

我已经在Linux平台下面安装了qt-sdk,sudo apt-get install qt-sdk安装的,设置环境变量了 export QMAKESPEC=/home/user/EPC-6708/fsl-linaro-toolchain/qt-sdk/mkspecs/qws/linux-g++-mx/ export PATH=$PATH:/home/user/EPC-6708/fsl-linaro-toolchain/qt-sdk/bin/ 两个,接着写一个简单的hello1.cpp, 开始编译,qmake -project ,生成hello1.pro文件 qmake,生成Makefile文件,我进去查看了 QMAKE = /usr/bin/qmake,这里我就郁闷了为什么QMAKE不是我想要的 /home/user/EPC-6708/fsl-linaro-toolchain/qt-sdk/bin/qmake(进去改了也不行) 接着就是无法编译出hello.o文件了,无法编译出可执行文件了。 user@user-desktop:~/share-EPC-6708/QThello$ make arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../EPC-6708/fsl-linaro-toolchain/qt-sdk/mkspecs/qws/linux-g++-mx -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o hello1.o hello1.cpp In file included from /usr/include/qt4/QtCore/qtextcodec.h:45:0, from /usr/include/qt4/QtCore/QtCore:3, from /usr/include/qt4/QtGui/QtGui:3, from hello1.cpp:1: /usr/include/qt4/QtCore/qatomic_i386.h: In destructor 'QString::~QString()': /usr/include/qt4/QtCore/qatomic_i386.h:132:29: error: impossible constraint in 'asm' make *** [hello1.o] 错误1 这个编译搞了三四天了,还是不懂怎么破!!!!!!!!!求大牛!在线等!!急!!!

在linux中实现find然后cd的操作

想用一句话实现 先用find . -name php.ini得到 ./opt/lampp/etc/php.ini 然后去掉php.ini,再cd ./opt/lampp/etc/,能不能使用管道以及shell操作字符串来实现

yocto project oe_runmake failed 问题

使用yocto project 进行 build fsl-image-gui,发现有一下错误: ERROR: oe_runmake failed ERROR: Function failed: do_compile (log file is located at /home/wuyuchi/proj/fsl-arm-yocto-bsp-1.2.0/build-wayland/tmp/work/x86_64-linux/libtool-native/2.4.6-r0/temp/log.do_compile.19992) ERROR: Logfile of failure stored in: /home/wuyuchi/proj/fsl-arm-yocto-bsp-1.2.0/build-wayland/tmp/work/x86_64-linux/libtool-native/2.4.6-r0/temp/log.do_compile.19992

ImportError: No module named gobject

我运行bitbake -g -u depexp weston 发现没有出错,报错内容如下: * Traceback (most recent call last): File "/home/xx/proj/fsl-arm-yocto-bsp-1.2.0/sources/poky/bitbake/bin/bitbake", line 45, in <module> cookerdata.CookerConfiguration())) File "/home/xx/proj/fsl-arm-yocto-bsp-1.2.0/sources/poky/bitbake/lib/bb/main.py", line 334, in bitbake_main ui_module = import_extension_module(bb.ui, configParams.ui, 'main') File "/home/xx/proj/fsl-arm-yocto-bsp-1.2.0/sources/poky/bitbake/lib/bb/main.py", line 103, in import_extension_module module = __import__(pkg.__name__, fromlist = [modulename]) File "/home/xx/proj/fsl-arm-yocto-bsp-1.2.0/sources/poky/bitbake/lib/bb/ui/depexp.py", line 21, in <module> import gobject ImportError: No module named gobject 我已将安装了python-gobject.

Yocto Build无法在InfluxDB的Bitbake Recipe中执行`go get`命令

<div class="post-text" itemprop="text"> <p>I have cloned <a href="https://github.com/kraj/meta-influx/tree/kraj/develop" rel="nofollow noreferrer">this meta-influx fork</a> and added to my layers folder in my Yocto directory.</p> <p>I have also added it to my <code>bblayers.conf</code> and tried baking it using:</p> <pre><code>bitbake -k github.com-influxdata-influxdb </code></pre> <p>which provides me the following error logs:</p> <pre><code>ERROR: github.com-influxdata-influxdb-1.0-r0 do_configure: Function failed: do_configure (log file is located at /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/log.do_configure.29201) ERROR: Logfile of failure stored in: /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/log.do_configure.29201 Log data follows: | DEBUG: Executing python function sysroot_cleansstate | DEBUG: Python function sysroot_cleansstate finished | DEBUG: Executing shell function do_configure | /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/run.do_configure.29201: line 120: /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/github.com-influxdata-influxdb-1.0/bin/gdm: No such file or directory | WARNING: /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/run.do_configure.29201:1 exit 1 from 'go get github.com/sparrc/gdm' | ERROR: Function failed: do_configure (log file is located at /opt/PHYTEC_BSPs/yocto_fsl/build/tmp/work/cortexa9hf-neon-phytec-linux-gnueabi/github.com-influxdata-influxdb/1.0-r0/temp/log.do_configure.29201) ERROR: Task 392 (/opt/PHYTEC_BSPs/yocto_fsl/sources/poky/../meta-influx/recipes-go/go/github.com-influxdata-influxdb.bb, do_configure) failed with exit code '1' </code></pre> <p>The code says fails at the <code>go get sparrc gdm</code> within the <a href="https://github.com/kraj/meta-influx/blob/kraj/develop/recipes-go/go/github.com-influxdata-influxdb.bb#L17" rel="nofollow noreferrer">recipe file for influxdb</a>.</p> <p>On the host machine I do not have <code>golang</code> installed. Is it necessary to have go on the build machine?</p> <p>(Target board is a PhyTec Mira Board with i.MX6 processor on it)</p> <p>How do I resolve this issue? I am using <code>krogoth</code> branch (because the board providers have documentation in accordance with the branch)</p> <h3>Update</h3> <p>Even without <code>golang</code> being installed on the machine, the <code>gdm</code> is installed in my <code>/home/&lt;user&gt;/</code> folder under the directory <code>go</code> which has the <code>src/ bin/</code> folders. I still can't figure out how to download it to the appropriate <code>${B}</code> variable in the recipe mentioned above </p> </div>

在Alpine Linux Docker的路径中找不到已安装的Go二进制文件

<div class="post-text" itemprop="text"> <p>I've got a Go binary I'm trying to run on the Alpine Docker image.</p> <p>This works fine for the Docker Go binary.</p> <pre><code>docker run -it alpine:3.3 sh apk add --no-cache curl DOCKER_BUCKET=get.docker.com DOCKER_VERSION=1.9.1 curl -fSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-$DOCKER_VERSION" -o /usr/local/bin/docker chmod +x /usr/local/bin/docker docker help Usage: docker [OPTIONS] COMMAND [arg...] ... </code></pre> <p>However, for the Go binary I want to install.</p> <pre><code>RACK_BUCKET=ec4a542dbf90c03b9f75-b342aba65414ad802720b41e8159cf45.ssl.cf5.rackcdn.com RACK_VERSION=1.1.0-beta1 curl -fSL "https://${RACK_BUCKET}/${RACK_VERSION}/Linux/amd64/rack" -o /usr/local/bin/rack chmod +x /usr/local/bin/rack rack help sh: rack: not found /usr/local/bin/rack help sh: /usr/local/bin/rack: not found ls -al /usr/local/bin/ total 43375 drwxr-xr-x 2 root root 1024 Jan 11 18:10 . drwxr-xr-x 8 root root 1024 Jan 11 18:09 .. -rwxr-xr-x 1 root root 30222575 Jan 11 18:09 docker -rwxr-xr-x 1 root root 14190576 Jan 11 18:10 rack which rack /usr/local/bin/rack </code></pre> <p>I thought it might have something to do with <a href="https://stackoverflow.com/a/33240548/25991">this answer</a> but I don't get the same error when running <code>ldd</code>.</p> <pre><code>ldd /usr/local/bin/rack /lib64/ld-linux-x86-64.so.2 (0x7fdd15cd0000) libpthread.so.0 =&gt; /lib64/ld-linux-x86-64.so.2 (0x7fdd15cd0000) libc.so.6 =&gt; /lib64/ld-linux-x86-64.so.2 (0x7fdd15cd0000) </code></pre> <p>Any idea with this installed Go binary is not found in path on Alpine Linux Docker?</p> </div>

从树莓派虚拟机上用qt编译好的可执行文件,放到目标机上运行却显示无法执行二进制文件?

![图片说明](https://img-ask.csdn.net/upload/201902/20/1550651180_701497.jpg) 我是直接把debug的文件移过去的,但也无法执行。

这条curl命令中的-fsSL是什么意思

![图片说明](https://img-ask.csdn.net/upload/201911/23/1574496137_886753.jpg) 这条命令来自《Docker技术入门与实战(第3版)》第2章在Ubuntu环境中安装Docker,我通过查阅 curl 的帮助手册,知道 -f (--fail) 表示在服务器错误时,阻止一个返回的表示错误原因的 html 页面,而由 curl 命令返回一个错误码 22 来提示错误,但是其中的 "sSL" 是什么意思呢?

编译ndk-build.cmd生成.so文件中出现这样的问题,不知道哪的原因。

E:\project\CHENWEN\proj.android\jni>ndk-build [armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp In file included from D:/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.6/inclu de/thread:35:0, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../base/CCConsole.h:42, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../base/ccMacros.h:35, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../base/CCRefPtr.h:30, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../cocos2d.h:42, from E:/project/CHENWEN/proj.android//jni/../../Classes/AppDele gate.h:4, from E:/project/CHENWEN/proj.android//jni/hellocpp/main.cpp:1: D:/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/c++0x_warning. h:32:2: error: #error This file requires compiler and library support for the IS O C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. In file included from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../platform/CCGL.h:36:0, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../base/ccTypes.h:36, from E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3 d/../cocos2d.h:51, from E:/project/CHENWEN/proj.android//jni/../../Classes/AppDele gate.h:4, from E:/project/CHENWEN/proj.android//jni/hellocpp/main.cpp:1: E:/project/CHENWEN/proj.android//jni/../../cocos2d/cocos/3d/../platform/android/ CCGL-android.h:44:31: fatal error: GLES2/gl2platform.h: No such file or director y compilation terminated. make.exe: *** [E:/project/CHENWEN/proj.android//obj/local/armeabi/objs/cocos2dcp p_shared/hellocpp/main.o] Error 1

fsl i.mx6烧写启动烧写的android系统时出现了初始化错误!

U-Boot 2009.08 ( 3月 05 2013 - 17:20:28) CPU: Freescale i.MX6 family TO1.2 at 792 MHz Temperature: 34 C, calibration data 0x5774e769 mx6q pll1: 792MHz mx6q pll2: 528MHz mx6q pll3: 480MHz mx6q pll8: 50MHz ipg clock : 66000000Hz ipg per clock : 66000000Hz uart clock : 80000000Hz cspi clock : 60000000Hz ahb clock : 132000000Hz axi clock : 264000000Hz emi_slow clock: 29333333Hz ddr clock : 528000000Hz usdhc1 clock : 198000000Hz usdhc2 clock : 198000000Hz usdhc3 clock : 198000000Hz usdhc4 clock : 198000000Hz nfc clock : 24000000Hz Board: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [POR ] Boot Device: SD I2C: ready DRAM: 1 GB MMC: FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3 *** Warning - bad CRC or MMC, using default environment In: serial Out: serial Err: serial Net: got MAC address from IIM: 00:00:00:00:00:00 FEC0 [PRIME] Hit any key to stop autoboot: 0 Card did not respond to voltage select! mmc3 init failed fastboot is in init......flash target is MMC:3 Card did not respond to voltage select! MMC card init failed! Bad partition index:1 for partition:boot Bad partition index:2 for partition:recovery Bad partition index:5 for partition:system wait usb cable into the connector!

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

抖音上很火的时钟效果

反正,我的抖音没人看,别人都有几十万个赞什么的。 发到CSDN上来,大家交流下~ 主要用到原生态的 JS+CSS3。 具体不解释了,看注释: &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;Title&lt;/tit...

记录下入职中软一个月(外包华为)

我在年前从上一家公司离职,没想到过年期间疫情爆发,我也被困在家里,在家呆着的日子让人很焦躁,于是我疯狂的投简历,看面试题,希望可以进大公司去看看。 我也有幸面试了我觉得还挺大的公司的(虽然不是bat之类的大厂,但是作为一名二本计算机专业刚毕业的大学生bat那些大厂我连投简历的勇气都没有),最后选择了中软,我知道这是一家外包公司,待遇各方面甚至不如我的上一家公司,但是对我而言这可是外包华为,能...

培训班出来的人后来都怎么样了?(二)

接着上回说,培训班学习生涯结束了。后面每天就是无休止的背面试题,不是没有头脑的背,培训公司还是有方法的,现在回想当时背的面试题好像都用上了,也被问到了。回头找找面试题,当时都是打印下来天天看,天天背。 不理解呢也要背,面试造飞机,上班拧螺丝。班里的同学开始四处投简历面试了,很快就有面试成功的,刚开始一个,然后越来越多。不知道是什么原因,尝到胜利果实的童鞋,不满足于自己通过的公司,嫌薪水要少了,选择...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

推荐9个能让你看一天的网站

分享的这9个保证另你意外的网站,每个都非常实用!非常干货!毫不客气的说,这些网站最少值10万块钱。 利用好这些网站,会让你各方面的技能都得到成长,不说让你走上人生巅峰,但对比现在的你,在眼界、学识、技能方面都有质的飞跃。 一、AIRPANO 传送门:https://www.airpano.com/360photo_list.php 这是一个可以躺在家里,就能环游世界的神奇网站。 世界那么大,绝大多...

大牛都会用的IDEA调试技巧!!!

导读 前天面试了一个985高校的实习生,问了他平时用什么开发工具,他想也没想的说IDEA,于是我抛砖引玉的问了一下IDEA的调试用过吧,你说说怎么设置断点...

都前后端分离了,咱就别做页面跳转了!统统 JSON 交互

文章目录1. 无状态登录1.1 什么是有状态1.2 什么是无状态1.3 如何实现无状态1.4 各自优缺点2. 登录交互2.1 前后端分离的数据交互2.2 登录成功2.3 登录失败3. 未认证处理方案4. 注销登录 这是本系列的第四篇,有小伙伴找不到之前文章,松哥给大家列一个索引出来: 挖一个大坑,Spring Security 开搞! 松哥手把手带你入门 Spring Security,别再问密...

97年世界黑客编程大赛冠军作品(大小仅为16KB),惊艳世界的编程巨作

这是世界编程大赛第一名作品(97年Mekka ’97 4K Intro比赛)汇编语言所写。 整个文件只有4095个字节, 大小仅仅为16KB! 不仅实现了3D动画的效果!还有一段震撼人心的背景音乐!!! 内容无法以言语形容,实在太强大! 下面是代码,具体操作看最后! @echo off more +1 %~s0|debug e100 33 f6 bf 0 20 b5 10 f3 a5...

不要再到处使用 === 了

我们知道现在的开发人员都使用 === 来代替 ==,为什么呢?我在网上看到的大多数教程都认为,要预测 JavaScript 强制转换是如何工作这太复杂了,因此建议总是使用===。这些都...

什么是a站、b站、c站、d站、e站、f站、g站、h站、i站、j站、k站、l站、m站、n站?00后的世界我不懂!

A站 AcFun弹幕视频网,简称“A站”,成立于2007年6月,取意于Anime Comic Fun,是中国大陆第一家弹幕视频网站。A站以视频为载体,逐步发展出基于原生内容二次创作的完整生态,拥有高质量互动弹幕,是中国弹幕文化的发源地;拥有大量超粘性的用户群体,产生输出了金坷垃、鬼畜全明星、我的滑板鞋、小苹果等大量网络流行文化,也是中国二次元文化的发源地。 B站 全称“哔哩哔哩(bilibili...

十个摸鱼,哦,不对,是炫酷(可以玩一整天)的网站!!!

文章目录前言正文**1、Kaspersky Cyberthreat real-time map****2、Finding Home****3、Silk – Interactive Generative Art****4、Liquid Particles 3D****5、WINDOWS93****6、Staggering Beauty****7、Ostagram图片生成器网址****8、全历史网址*...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

大厂的 404 页面都长啥样?最后一个笑了...

每天浏览各大网站,难免会碰到404页面啊。你注意过404页面么?猿妹搜罗来了下面这些知名网站的404页面,以供大家欣赏,看看哪个网站更有创意: 正在上传…重新上传取消 腾讯 正在上传…重新上传取消 网易 淘宝 百度 新浪微博 正在上传…重新上传取消 新浪 京东 优酷 腾讯视频 搜...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

代码注释如此沙雕,会玩还是你们程序员!

某站后端代码被“开源”,同时刷遍全网的,还有代码里的那些神注释。 我们这才知道,原来程序员个个都是段子手;这么多年来,我们也走过了他们的无数套路… 首先,产品经理,是永远永远吐槽不完的!网友的评论也非常扎心,说看这些代码就像在阅读程序员的日记,每一页都写满了对产品经理的恨。 然后,也要发出直击灵魂的质问:你是尊贵的付费大会员吗? 这不禁让人想起之前某音乐app的穷逼Vip,果然,穷逼在哪里都是...

一场疫情,炸出了退休的COBOL程序员

COBOL编程语言,估计大多数程序员从没听说过,我这样的编程老司机,也是只闻其名,从未一睹芳容。出门问了问度娘,答案如下:COBOL语言,是一种面向过程的高级程序设计语言,主要用于数据...

爬虫(101)爬点重口味的

小弟最近在学校无聊的很哪,浏览网页突然看到一张图片,都快流鼻血。。。然后小弟冥思苦想,得干一点有趣的事情python 爬虫库安装https://s.taobao.com/api?_ks...

讲真,这两款idea插件,能治愈你英语不好的病

时不时就有小伙伴问我,“二哥,能推荐一款 IDE 吗?”你看这话问的,现在搞 Java 的不都在用 Intellij IDEA 吗,还用得着推荐(我已经和 Eclipse 分手了)。然后小伙伴又说,“二哥,IDEA 支持中文吗?我英语不太好。”你看这话问的,搞编程的,英语不好是硬伤啊! 不过,随着 IDEA 最新版(版本号是 2020.1)的发布,英语不好的病可以彻底治愈了。为什么这么说呢?因为 ...

在拼多多上班,是一种什么样的体验?我心态崩了呀!

之前有很多读者咨询我:武哥,在拼多多上班是一种什么样的体验?由于一直很忙,没抽出时间来和大家分享。上周末特地花点时间来写了一篇文章,跟大家分享一下拼多多的日常。 1. 倒时差的作息 可能很多小伙伴都听说了,拼多多加班很严重。这怎么说呢?作息上确实和其他公司有点区别,大家知道 996,那么自然也就能理解拼多多的“11 11 6”了。 所以当很多小伙伴早上出门时,他们是这样的: 我们是这样的: 当...

又一起程序员被抓事件

就在昨天互联网又发生一起让人心酸的程序员犯罪事件,著名的百度不限速下载软件 Pandownload PC 版作者被警方抓获。案件大致是这样的:软件的作者不仅非法盗取用户数据,还在QQ群进...

瑞德西韦重症用药结果再曝光,上百名重症一周内好转,股价大涨19%

郭一璞 发自 凹非寺量子位 报道 | 公众号 QbitAI期盼已久的瑞德西韦临床数据,现在“偷跑”了。在芝加哥大学医学院的临床试验中,125名病人参与,大部分人都已经出院,其中只有2名病...

应聘3万的职位,有必要这么刁难我么。。。沙雕。。。

又一次被面试官带到坑里面了。面试官:springmvc用过么?我:用过啊,经常用呢面试官:springmvc中为什么需要用父子容器?我:嗯。。。没听明白你说的什么。面试官:就是contr...

Vue商城——详情页功能

详情页实现思路 点击商品进去详情页,根据点击请求更加详细的信息,要传过来goodsItem的iid,根据id去服务器请求更加详细的信息;配置路由映射关系,点击进行跳转,带参数传递跳转 itemClick(){ this.$router.push('/detail/'+this.goodsItem.iid) /* this.$router.push({ ...

太狠了,疫情期间面试,一个问题砍了我5000!

疫情期间找工作确实有点难度,想拿到满意的薪资,确实要点实力啊!面试官:Spring中的@Value用过么,介绍一下我:@Value可以标注在字段上面,可以将外部配置文件中的数据,比如可以...

自学编程的 6 个致命误区

嗨,小伙伴们大家好,我是沉默王二。本篇文章来和大家聊聊自学编程中的一些误区——这是我在 B 站上看了羊哥的一期视频后有感而发的文章。因为确实有很多读者也曾私信问过我这些方面的问题,很有代表性,所以我就结合自己的亲身体会来谈一谈,希望对小伙伴们有所启发。 01、追求时髦 所谓基础不牢,地动山摇啊。可很多小伙伴压根就没注意过这个问题,市面上出什么新鲜的技术就想去尝试,结果把自己学的乱七八糟,心灰意冷...

相关热词 c# cad插入影像 c#设计思想 c#正则表达式 转换 c#form复制 c#写web c# 柱形图 c# wcf 服务库 c#应用程序管理器 c#数组如何赋值给数组 c#序列化应用目的博客园
立即提问