<div dir="ltr">Hi there,<div><br></div><div>I noticed a curious problem when trying to build a cmake based recipe. During configuration phase pthead.h is found.</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> cmake /opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/src -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=/usr/bin -DCMAKE_INSTALL_SBINDIR:PATH=/usr/sbin -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib/vs100k -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=/com -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib -DCMAKE_INSTALL_INCLUDEDIR:PATH=/usr/include -DCMAKE_INSTALL_DATAROOTDIR:PATH=/usr/share -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_TOOLCHAIN_FILE=/opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/toolchain.cmake -DCMAKE_VERBOSE_MAKEFILE=1 -Wno-dev<br>-- The C compiler identification is GNU 5.2.0<br>-- The CXX compiler identification is GNU 5.2.0<br>-- Check for working C compiler: /opt/ZX3/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc<br>-- Check for working C compiler: /opt/ZX3/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -- works<br>-- Detecting C compiler ABI info<br>-- Detecting C compiler ABI info - done<br>-- Detecting C compile features<br>-- Detecting C compile features - done<br>-- Check for working CXX compiler: /opt/ZX3/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++<br>-- Check for working CXX compiler: /opt/ZX3/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -- works<br>-- Detecting CXX compiler ABI info<br>-- Detecting CXX compiler ABI info - done<br>-- Detecting CXX compile features<br>-- Detecting CXX compile features - done<br>-- Looking for include file pthread.h<br>-- Looking for include file pthread.h - found<br>-- Looking for pthread_create</blockquote><div><br></div><div>But during build phase some header files can not be found?!</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">/opt/ZX3/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ Â  Â -lrt -I/opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/build -I/opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/src/. -I/opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/src/log -I/opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/src/fpga Â  Â -o CMakeFiles/vs100k.dir/log/Log.cpp.o -c /opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/src/log/Log.cpp<br>In file included from /opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/src/VS100K.cpp:8:0:<br>/opt/ZX3/yocto/poky/build/tmp/work/cortexa9-vfp-neon-poky-linux-gnueabi/vs100k/0.1-r0/src/VS100K.h:4:21: fatal error: pthread.h: No such file or directory<br>make[2]: *** [CMakeFiles/vs100k.dir/log/LogToSyslog.cpp.o] Error 1<br>make[2]: *** Waiting for unfinished jobs....<br>compilation terminated.</blockquote><div> </div></div>Also socket.h can not be found.<br>My receipe is very rudimentary:<br><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br><br>#SECTION = "package"<br>LICENSE = "CLOSED"<br>PR = "r0"<br>PV = "0.1"<br>DEPENDS = "cmake-native"<br>S = "${WORKDIR}/src"<br>inherit pkgconfig cmake<br>SRC_URI = " file://CMakeLists.txt \<br> Â  Â  Â  Â  Â  Â  file://src/fpga/VS100K.h \<br> Â  Â  Â  Â  Â  Â  file://src/log/LogToConsole.h \<br> Â  Â  Â  Â  Â  Â  file://src/log/LogIf.h \<br> Â  Â  Â  Â  Â  Â  file://src/log/LogToSyslog.h \<br> Â  Â  Â  Â  Â  Â  file://src/fpga/Fpga.h \<br> Â  Â  Â  Â  Â  Â  file://src/main.cpp \<br> Â  Â  Â  Â  Â  Â  file://src/fpga/VS100K.cpp \<br> Â  Â  Â  Â  Â  Â  file://src/log/LogToSyslog.cpp \<br> Â  Â  Â  Â  Â  Â  file://src/log/LogToConsole.cpp \<br> Â  Â  Â  Â  Â  Â  file://src/fpga/Fpga.cpp \<br> Â  Â  Â  Â  Â  Â  Â "<br>do_install() {<br>  Â  install -m 0755 -d ${D}${bindir}<br>  Â  install -m 0755 vs100k ${D}${bindir}<br>}</blockquote><div><div><br></div></div></div><div>Any idea how to resolve this?</div><div>Building the same application using Yocto Eclipse plugins works properly.</div><div><br></div><div>regards,</div><div>Martin</div></div>