<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processorsのトピックcmake with libxml2</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/cmake-with-libxml2/m-p/1143106#M161208</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm writing the application for xml parser (libxml2). I'm using cmake for my project&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kat61545_0-1599128947626.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124226i8EC0DCF8CDBE9AB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kat61545_0-1599128947626.png" alt="kat61545_0-1599128947626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;CMakeList.txt&lt;/P&gt;&lt;LI-CODE lang="c"&gt;cmake_minimum_required(VERSION 2.8)

project (GW)

find_package(LibXml2 REQUIRED)

message(STATUS LIBXML2_FOUND = ${LIBXML2_FOUND})

include_directories(include ${LIBXML2_INCLUDE_DIR})

file(GLOB SOURCES */*.c *.c */*.h)

add_executable(gateway ${SOURCES})

target_link_libraries(gateway ${LIBXML2_LIBRARIES})&lt;/LI-CODE&gt;&lt;P&gt;cmake is success on the ubuntu 16, but when i used cmake with sdk (bitbake fsl-image-qt5 -c populate_sdk), i got the error:&amp;nbsp;&lt;STRONG&gt;Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES) (found version "2.9.4")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;local.conf&lt;/P&gt;&lt;LI-CODE lang="c"&gt;DISTRO ?= 'fsl-imx-x11'
PACKAGE_CLASSES ?= "package_rpm"
CORE_IMAGE_INSTALL_append = "ppp wvdial usb-modeswitch gstreamer1.0-libav python-pip curl libxml2 libxml2-native python-requests "
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
PACKAGECONFIG_append_pn-qtmultimedia = "gstreamer"
CONF_VERSION = "1"
LICENSE_FLAGS_WHITELIST="commercial"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to add libxml2-dev to sdk? thank you&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 01:17:31 GMT</pubDate>
    <dc:creator>kat61545</dc:creator>
    <dc:date>2020-09-04T01:17:31Z</dc:date>
    <item>
      <title>cmake with libxml2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cmake-with-libxml2/m-p/1143106#M161208</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm writing the application for xml parser (libxml2). I'm using cmake for my project&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kat61545_0-1599128947626.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124226i8EC0DCF8CDBE9AB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kat61545_0-1599128947626.png" alt="kat61545_0-1599128947626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;CMakeList.txt&lt;/P&gt;&lt;LI-CODE lang="c"&gt;cmake_minimum_required(VERSION 2.8)

project (GW)

find_package(LibXml2 REQUIRED)

message(STATUS LIBXML2_FOUND = ${LIBXML2_FOUND})

include_directories(include ${LIBXML2_INCLUDE_DIR})

file(GLOB SOURCES */*.c *.c */*.h)

add_executable(gateway ${SOURCES})

target_link_libraries(gateway ${LIBXML2_LIBRARIES})&lt;/LI-CODE&gt;&lt;P&gt;cmake is success on the ubuntu 16, but when i used cmake with sdk (bitbake fsl-image-qt5 -c populate_sdk), i got the error:&amp;nbsp;&lt;STRONG&gt;Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES) (found version "2.9.4")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;local.conf&lt;/P&gt;&lt;LI-CODE lang="c"&gt;DISTRO ?= 'fsl-imx-x11'
PACKAGE_CLASSES ?= "package_rpm"
CORE_IMAGE_INSTALL_append = "ppp wvdial usb-modeswitch gstreamer1.0-libav python-pip curl libxml2 libxml2-native python-requests "
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
PACKAGECONFIG_append_pn-qtmultimedia = "gstreamer"
CONF_VERSION = "1"
LICENSE_FLAGS_WHITELIST="commercial"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to add libxml2-dev to sdk? thank you&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 01:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cmake-with-libxml2/m-p/1143106#M161208</guid>
      <dc:creator>kat61545</dc:creator>
      <dc:date>2020-09-04T01:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: cmake with libxml2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/cmake-with-libxml2/m-p/1147635#M161238</link>
      <description>&lt;P&gt;&lt;STRONG&gt;solved!!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 09:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/cmake-with-libxml2/m-p/1147635#M161238</guid>
      <dc:creator>kat61545</dc:creator>
      <dc:date>2020-09-04T09:44:34Z</dc:date>
    </item>
  </channel>
</rss>

