自己基于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

2个回答

有人换了低版本的arm 编译器就能编译通过。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
如何在yocto构建的自定义配方中包括文件

<div class="post-text" itemprop="text"> <p>Hi all I'm new to Yocto and trying to build my first recipe, I have a custom layer which shows up and installs correctly on my system "colibri-imx6ull" but I cannot see any results of my recipes work. Bitbake seems to build them but maybe I've misunderstood something in the build process. I have a longtime goal of installing Golang and a few custom scripts but currently, I'm not even able to copy a simple text file.</p> <p>Version available is Toradex (2.8) v2017.12 rocko (2.4)</p> <p>I have added my layer to oe-core/build/conf/bblayers.conf</p> <pre><code>${TOPDIR}/../layers/meta-hydroware \ </code></pre> <p>I have a layer configuration file avalible at</p> <pre><code>/layers/meta-hydroware/recipes-golang/conf/layer.conf </code></pre> <p>Containing the following</p> <pre><code>BBPATH := "${BBPATH}:${LAYERDIR}" BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "golang" BBFILE_PATTERN_golang := "^${LAYERDIR}/" BBFILE_PRIORITY_golang := "105" </code></pre> <p>It's included in the list of layers when building so hopefully it works. Firstly I'm just trying to get anything to copy anywhere into my build and I've tried to use this recipe to copy a simple text file but it does not show up.</p> <p>My recipe file "golang.bb" is located in</p> <pre><code>/layers/meta-hydroware/recipes-golang/golang/golang.bb </code></pre> <p>and the text file is located in</p> <pre><code>/layers/meta-hydroware/recipes-golang/golang/files </code></pre> <p>This is the content of my golang.bb</p> <pre><code>SUMMARY = "Provides GO" DESCRIPTION = "Tools for runnings and compiling GO" SRC_URI = "file://readme.txt" LICENSE = "CLOSED" S = "${WORKDIR}" FILES_${PN} = "" ALLOW_EMPTY_${PN} = "1" do_install() { install -m 0755 -d ${D}${bindir} ${D}${bindir}/go mkdir ~/usr/bin/go cp -a --no-preserve=ownership ${WORKDIR}/* ${D}${bindir}/go/ } </code></pre> <p>My goal is to install golang which is available in the same folder as the textfile</p> <pre><code> /layers/meta-hydroware/recipes-golang/golang/files/go1.11.2.linux-armv6l.tar.gz </code></pre> <p>My first goal is to be able to find the text file somewhere on my installed machine, the second goal is to install go. Is there anything wrong with my recipe which prevents it from placing the file?</p> <p>Are there any additional things I need to do in order to handle to install a .tar.gz file? or do do_install() understand what to do?</p> <p>Thanks for your answers //Confused newbie who spend too many days on this already ^^</p> </div>

使用yocto配方构建go项目时,ABI不匹配

<div class="post-text" itemprop="text"> <p>I'm trying to write a Yocto recipe to build a Go lang project for the x86_64 target platform (rocko branch). My yocto recipe builds the Go project fine, resolving dependencies with <code>dep</code> tool. But the binary built doesn't run on the target platform. When trying to execute it on the target, I get this error:</p> <pre><code>$ /usr/bin/mybin abi mismatch detected between the executable and libstd.so fatal error: abi mismatch runtime: panic before malloc heap initialized </code></pre> <p>This is my custom recipe to build the project:</p> <pre><code>GO_IMPORT = "bitbucket.org/xxx/myproject" SRC_URI = "git://${GO_IMPORT}/protocol=http;user=${GIT_USER}:${GIT_PASS};destsuffix=${PN}-${PV}/src/${GO_IMPORT}" SRCREV = "7777ee7777777c9777774bb777780777759d777771777" CGO_ENABLED = "0" inherit go do_compile_prepend() { rm -f ${WORKDIR}/build/src/${GO_IMPORT}/Gopkg.toml rm -f ${WORKDIR}/build/src/${GO_IMPORT}/Gopkg.lock cd ${WORKDIR}/build/src/${GO_IMPORT} dep init dep ensure } do_install_append() { rm -f ${D}/usr/bin/dep } deltask do_compile_ptest_base deltask do_compile_ptest DEPENDS = "go-dep-native mercurial-native" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" INHIBIT_PACKAGE_STRIP = "1" RDEPENDS_${PN}-staticdev += "bash" RDEPENDS_${PN}-dev += "bash" </code></pre> <p>What should be the proper way to manage this issue?</p> </div>

Yocto PHP5图像安装

<div class="post-text" itemprop="text"> <p>I has a project which controls camera with pwm while sending data from the Webserver .I'm using Yocto dizzy branch for to generate sdcard image for Wandboard Quad . Kernel version is 3.10.17 .</p> <p>I used php code to post the data to the test.py file so I need the php package for wandboard to make it understandable for test.py file then I will write some python code to send pwm depending on data's but in yocto I couldn't figure out how to add this functionality to the sdcard image. I worked about 4 day about that but I couldn't find any solution .Do you know how can I apply this functionality ?</p> <p>Thanks..</p> </div>

如何将Go-cross添加到Yocto SDK? 还是在其他计算机上编译Go for Yocto?

<div class="post-text" itemprop="text"> <p>I have been using the Yocto SDK to compile C and C++ code for Yocto so that every machine does not need the 150GB+ Bitbake environment. Yocto version is 2.4 (Rocko)</p> <p>Now I would like to have the same functionality for Golang, but I can't figure out how to do it.</p> <p>If I'm on the Bitbake machine, I can call the binary arm-arch-gnueabi-go binary found under the directory tmp/work/x86_64-linux/go-cross-arm/ to compile code. But if I copy those binaries to another machine, it links to libraries with hard-coded paths on the Bitbake machine so that won't work.</p> <p>Is there a way to include arm-arch-gnueabi-go in the SDK when I run populate_sdk on the image? Or is there another easy way to compile Go for the target on other machines?</p> </div>

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>

如何在yocto食谱中管理golang项目的外部依赖关系

<div class="post-text" itemprop="text"> <p>I want to write a yocto recipe for a cross-compiled golang application with Yocto 2.4.1 but I cannot get external dependencies to work. Can anyone help me?</p> <pre><code>current RECIPE_FILE: hello-world_%.bb LICENSE = "CLOSED" LIC_FILES_CHKSUM = "" DESCRIPTION = "Hello world test with golang." inherit go COMPATIBLE_MACHINE = "(&lt;machine&gt;)" DEPENDS = "go-cross-${TARGET_ARCH}" GO_IMPORT = "hello-world" SRC_URI = "&lt;git_url&gt;/${GO_IMPORT}.git;branch=${SRCBRANCH};tag=${PV}" SRCBRANCH = "master" PV = "0.01" S = "${WORKDIR}/git" do_compile() { export GOPATH="${WORKDIR}/build" export GOARCH="&lt;machine_arch&gt;" export GOOS="linux" export CGO_ENABLED="0" go build src/${GO_IMPORT}/hello-world.go } do_install() { install -d "${D}/${bindir}" install -m 0755 "${WORKDIR}/build/hello-world" "${D}/${bindir}/hello-world" } RDEPENDS_${PN}-dev += "bash" </code></pre> <p>This recipe works fine for internal dependencies only. But how do I integrate external dependencies like "github.com/golang/protobuf/ptypes"?</p> <p>PROJECT_FILE: hello-world.go</p> <pre><code>package main import ( "fmt" "github.com/golang/protobuf/ptypes" ) func main() { timestamp := ptypes.TimestampNow() fmt.Println(timestamp) } </code></pre> <p>Does anyone knows a solution for this use case?</p> <p>Or does anyone know how "go-dep" could handle this?</p> <p>Best regards</p> </div>

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

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>

yotco 定制linux发行版本, 但自己的应用程序如何添加进去

我不是学嵌入式开发的,但是因为工作的需要,现在在学习yocto。网上看了很久的资料了,有些概念还是不是很理解。 假设我的目的是让我的目标系统每一秒显示一次hallo wolrd。那yocto可以帮助我创建一个适合我cpu的一个linux 系统。那问题是我的程序应该怎样嵌入到这个系统中呢? cpu 如何知道我的运行程序在那里,应该运行哪个程序?

bitbake:为php配方添加php-intl支持

<div class="post-text" itemprop="text"> <p>I need to build a php package supporting the intl extension with bitbake (<a href="http://php.net/manual/en/intl.installation.php" rel="nofollow noreferrer">http://php.net/manual/en/intl.installation.php</a>).</p> <p>So I created a bbappend:</p> <pre><code>bernardo@bernardo-UX51VZA:~/dev/yocto/meta-steempi$ cat recipes-devtools/php/php_7.%.bbappend DEPENDS += " icu apache2" RDEPENDS_${PN} += " icu apache2" PACKAGECONFIG_append_pn-php = " apache2 icu icu-dev" EXTRA_OECONF += " --with-openssl=${STAGING_DIR_TARGET}${exec_prefix} \ --with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \ --with-icu-dir=${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}/icu/60.2-r0/image/usr \ --enable-intl \ " </code></pre> <p>To enable the intl compilation, I added the <strong>--enable-intl</strong> and <strong>--with-icu-dir</strong> to <strong>EXTRA_OECONF</strong>. However, the configure task presents the following error, even though the path to <strong>icu-config</strong> was added to <strong>--with-icu-dir</strong>.</p> <pre><code>... | checking whether to enable internationalization support... yes | checking for location of ICU headers and libraries... not found | configure: error: Unable to detect ICU prefix or /home/bernardo/dev/yocto/poky/build-qemux86-64/tmp/work/core2-64-poky-linux/icu/60.2-r0/image/usr/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works. | NOTE: The following config.log files may provide further information. | NOTE: /home/bernardo/dev/yocto/poky/build-qemux86-64/tmp/work/core2-64-poky-linux/php/7.2.4-r0/build/config.log | ERROR: configure failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure (log file is located at /home/bernardo/dev/yocto/poky/build-qemux86-64/tmp/work/core2-64-poky-linux/php/7.2.4-r0/temp/log.do_configure.19483) ERROR: Task (/home/bernardo/dev/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php_7.2.4.bb:do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 1802 tasks of which 1801 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/bernardo/dev/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php_7.2.4.bb:do_configure Summary: There were 2 WARNING messages shown. Summary: There were 2 ERROR messages shown, returning a non-zero exit code. </code></pre> <p>I suspect the configure is trying to find icu's headers, because the <strong>icu-config</strong> script (generated by icu recipe) is set with the right path.</p> <p>When I try to add icu-dev to the DEPENDS variable in my bbappend, I get </p> <pre><code>ERROR: Nothing PROVIDES 'icu-dev' (but /home/leprechaun/dev/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php_7.2.4.bb DEPENDS on or otherwise requires it). Close matches: udev icu RPROVIDES icu-dev ERROR: Required build target 'php' has no buildable providers. Missing or unbuildable dependency chain was: ['php', 'icu-dev'] </code></pre> <p>When I try to add icu-dev to the RDEPENDS variable in the bbappend, I get the following error:</p> <pre><code>ERROR: Nothing RPROVIDES 'icu-dev-native' (but virtual:native:/home/leprechaun/dev/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php_7.2.4.bb RDEPENDS on or otherwise requires it) NOTE: Runtime target 'icu-dev-native' is unbuildable, removing... Missing or unbuildable dependency chain was: ['icu-dev-native'] ERROR: Required build target 'php' has no buildable providers. Missing or unbuildable dependency chain was: ['php', 'php-native', 'icu-dev-native'] </code></pre> <p>Any ideas on how to get out of this hole?</p> <p>Thanks!</p> </div>

Golang API到WPA_Supplicant

<div class="post-text" itemprop="text"> <p>I need connect headless IoT device (Raspberry Pi) to Wi-Fi Network. I have custom Linux built using YoctoProject. I don't have <strong>connman</strong> or <strong>Network Manager</strong> installed. There is only WPA Supplicant. My services are written in Golang. </p> <p>Call <strong>wpa_cli</strong> is too tricky and not reliable. Trying few available packages, I have decided to write my own. See below in answer. </p> </div>

linux 下 安装gcc环境

刚拿到一台服务器,想要往上面装redis,但是装的时候报错: [cloudlogin@localhost src]$ make install CC adlist.o /bin/sh: cc: command not found 我上网查了一下,说是没有gcc环境 我的linux 版本是这样的: Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux 因为刚接触到linux,所以有很多不明白的地方。 希望各位大神能够帮我看看,要怎么在我这台linux 上装 gcc环境,谢谢了。

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.

IMX6 LTIB编译无法保留编译代码问题

我将LTIB编译后只得到了编译好的库和可执行程序 但是BUILD目录下的编译过程源代码完成后自动删除了 请问有谁知道怎样配置保留编译时的文件?

linux源代码在哪个位置? ? ?

linux下的汇编语言学习,比如我用汇编语言去调用写入文件的write函数,那么这个函数源代码在哪里呢?

内核开启nat服务后,udhcpc不能自动获取ip

各位好! 最近碰到一个问题,我使用的是嵌入式Linux,内核版本3.0.2,使用的是无线拨号方式连接外网,现在想实现本地内网通过无线外网连接上网,因为是不同网段,考虑使用nat方式,但是,将内核中nat服务开启后,拨号时进行到udhcpc自动获取ip这一步,一直提示sending discover..,获取不到ip。 请问大家有碰到这种情况的吗?是不是开启的nat服务有与udhcpc相冲突的选项?有什么解决办法?谢谢啦

Laravel 5.4调用未定义的函数App \ iconv()

<div class="post-text" itemprop="text"> <p>I have uploaded my project to a server, and now it is giving me problems, which can be ?, in local the project runs perfectly. this is the code of my function</p> <pre><code>&lt;?php namespace App; use Illuminate\Database\Eloquent\Model; class Gateway extends Model { function _doPost($query) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://secure.nmi.com/api/transact.php"); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $query); curl_setopt($ch, CURLOPT_POST, 1); if (!($data = curl_exec($ch))) { return ERROR; } $wm_string = iconv("windows-1251", "UTF-8", $data); parse_str(urldecode($wm_string), $result); $data=json_encode($result, JSON_UNESCAPED_UNICODE); curl_close($ch); unset($ch); $this-&gt;datos=$data; return $this-&gt;datos; } } </code></pre> <p>the error is</p> <p><strong>Call to undefined function App\iconv()</strong> in this line</p> <pre><code> $wm_string = iconv("windows-1251", "UTF-8", $data); </code></pre> <p>can be this a server problem? or maybe I must to download some package to my project?</p> </div>

如何通过go syscall设置系统日期和时间

<div class="post-text" itemprop="text"> <p>I am trying to set the linux system time and date with a go syscall, but I always get an <em>invalid date</em> error. When i execute the call on the terminal with the presumably wrong date it always ends successful. </p> <p>This is my test code: </p> <pre><code>package main import ( "os/exec" "time" "os" "syscall" "fmt" ) func main() { fiveDaysFromNow := time.Now().Add(time.Hour * 24 * 5) err := SetSystemDate(fiveDaysFromNow) if err != nil { fmt.Printf("Error: %s", err.Error()) } } func SetSystemDate(newTime time.Time) error { binary, lookErr := exec.LookPath("date") if lookErr != nil { fmt.Printf("Date binary not found, cannot set system date: %s ", lookErr.Error()) return lookErr } else { //dateString := newTime.Format("2006-01-2 15:4:5") dateString := newTime.Format("2 Jan 2006 15:04:05") fmt.Printf("Setting system date to: %s ", dateString) args := []string{"--set", dateString} env := os.Environ() return syscall.Exec(binary, args, env) } } </code></pre> <p>And the output I get is:</p> <blockquote> <p>Setting system date to: 26 Feb 2018 13:36:52</p> <p>--set: invalid date ‘26 Feb 2018 13:36:52’</p> <p>Process finished with exit code 1</p> </blockquote> <p>Executing in the terminal: </p> <pre><code>date -s '26 Feb 2018 13:36:52' </code></pre> <p>nevertheless succeeds without any problems.</p> <p>I am testing this on Ubuntu 16.04.3 LTS with KDE installed, but this will be used on an embedded device with an custom Yocto Yogurt image. Will there be any difference? </p> <p>Do i need to use different formatting for the date string when using <em>syscall.Exec()</em>?</p> </div>

Dockerfile Image命令'/ bin / sh -c apt-get install -y mysqld-server'返回非零代码:100

<div class="post-text" itemprop="text"> <p>I want to make a docker image with this spec:</p> <ol> <li>Ubuntu : 16.04 / Latest</li> <li>PHP 7.x</li> <li>nginx : Latest mySQL 5.x</li> <li>Expose Port 80 &amp; 443 </li> <li>Directory / Source</li> </ol> <p>Optional :</p> <ol> <li>VIM</li> <li>PHP Composer</li> </ol> <p>My Dockerfile:</p> <pre><code># Download base image ubuntu 16.04 FROM ubuntu:16.04 # Update Ubuntu Software repository RUN apt-get update # Install PHP, nginx, mySQL RUN apt-get install -y nginx php7.0-fpm &amp;&amp; \ rm -rf /var/lib/apt/lists/* # Install MySQL and set default root password RUN echo 'mysql-server mysql-server/root_password password mypassword' | debconf-set-selections RUN echo 'mysql-server mysql-server/root_password_again password mypassword' | debconf-set-selections RUN apt-get install -y mysql-server # Define the ENV variable ENV nginx_vhost /etc/nginx/sites-available/default ENV php_conf /etc/php/7.0/fpm/php.ini ENV nginx_conf /etc/nginx/nginx.conf # Enable php-fpm on nginx virtualhost configuration COPY default ${nginx_vhost} RUN sed -i -e 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' ${php_conf} &amp;&amp; \ echo " daemon off;" &gt;&gt; ${nginx_conf} RUN mkdir -p /run/php &amp;&amp; \ chown -R www-data:www-data /var/www/html &amp;&amp; \ chown -R www-data:www-data /run/php # Volume configuration VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"] # Configure Services and Port COPY start.sh /start.sh CMD ["./start.sh"] EXPOSE 80 443 </code></pre> <p>I get this error message when I built it</p> <pre><code>Sending build context to Docker daemon 5.632 kB Step 1 : FROM ubuntu:16.04 ---&gt; 2d696327ab2e Step 2 : RUN apt-get update ---&gt; Using cache ---&gt; b58709c2b7b9 Step 3 : RUN apt-get install -y nginx php7.0-fpm &amp;&amp; rm -rf /var/lib/apt/lists/* ---&gt; Using cache ---&gt; 3d58b4fac924 Step 4 : RUN echo 'mysql-server mysql-server/root_password password mypassword' | debconf-set-selections ---&gt; Using cache ---&gt; 85256efe3bd3 Step 5 : RUN echo 'mysql-server mysql-server/root_password_again password mypassword' | debconf-set-selections ---&gt; Using cache ---&gt; d1f71eeacbe2 Step 6 : RUN apt-get install -y mysqld-server ---&gt; Running in 9dba6ce0c59a Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package mysqld-server The command '/bin/sh -c apt-get install -y mysqld-server' returned a non-zero code: 100 </code></pre> <p>How can I fix it?</p> <p>Thanks</p> </div>

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

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

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

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

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

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

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

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

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

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

C语言的灵魂之指针

指针在C语言中非常的重要,也比较的难。你对指针的掌握程度也决定了你对C语言的掌握程度。在学习C语言的时候因当搞清楚取值运算符和取地址运算符各自的含义。我们这里就通过取值运算符和取地址运算符展开讲指针。

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

10个提升效率的编程好习惯

文章目录00、前言01、双屏02、手机静音03、只学一个 00、前言 最近有读者反映学习编程困难,想放弃,询问是不是真的有不适合编程的人?我结合最近自己的学习经历和思考以及最近在数据结构与算法的折磨下得出的一些心得。 唐代大臣魏徵的【谏太宗十思疏】中写道,“善始者实繁,克终者盖寡”。大概的意思是:如果有好多人同时做一件事情,善于开始去做的人是非常多的,但是能够把这件事做好的人就寥寥无几了。 这句千...

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

《Java经典编程365例》000:学妹的优秀成绩单

内容导航: 1、题目 2、代码实现 2.1、Student类 2.2、测试类Client 2.3、输出结果 前言 这是一个真实的故事,就发生在CSDN…其它学弟学妹开始抄吧! 1、题目 新建一个学生(Student),成员变量(属性)有: 姓名 性别 年龄(int) 成绩(double) 成员方法有两个: print()方法 功能为:输出名字 + 性别 + 年龄。

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

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

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

6年开发经验女程序员,面试京东Java岗要求薪资28K

写在开头: 上周面试了一位女程序员,上午10::30来我们部门面试,2B哥接待了她.来看看她的简历: 个人简历 个人技能: ● 熟悉spring mvc 、spring、mybatis 等框架 ● 熟悉 redis 、rocketmq、dubbo、zookeeper、netty 、nginx、tomcat、mysql。 ● 阅读过juc 中的线程池、锁的源...

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

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

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

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

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

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

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

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

程序员是做全栈工程师好?还是专注一个领域好?

昨天,有位大一的同学私信我,说他要做全栈工程师。 我一听,这不害了孩子么,必须制止啊。 谁知,讲到最后,更确定了他做全栈程序员的梦想。 但凡做全栈工程师的,要么很惨,要么很牛! 但凡很牛的,绝不是一开始就是做全栈的! 全栈工程师听起来好听,但绝没有你想象的那么简单。 今天听我来给你唠,记得帮我点赞哦。 一、全栈工程师的职责 如果你学习编程的目的只是玩玩,那随意,想怎么学怎么学。...

立即提问
相关内容推荐