<?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>topic Re: SQLiteCpp cross compile error: cannot find a given function in sqlite3.c in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SQLiteCpp-cross-compile-error-cannot-find-a-given-function-in/m-p/701194#M108928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your advice! The issue is&amp;nbsp;that I didn't know the cross compile tool from yocto well. I made it by install a libsqlite on x86, I made it but I still not understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 06:24:41 GMT</pubDate>
    <dc:creator>才俊欧</dc:creator>
    <dc:date>2017-10-23T06:24:41Z</dc:date>
    <item>
      <title>SQLiteCpp cross compile error: cannot find a given function in sqlite3.c</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SQLiteCpp-cross-compile-error-cannot-find-a-given-function-in/m-p/701192#M108926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I came across a compile error that cannot find the function defined in a given file when I try to add SQLiteCpp source to my qt application. It cost me a half day and I hope some one can kindly help me. Thanks a lot!&lt;/P&gt;&lt;P&gt;1. build libSQLiteCpp.a and libsqlite3.a&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;get src:&lt;BR /&gt;&lt;SPAN&gt; git clone &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FSRombauts%2FSQLiteCpp.git" rel="nofollow" target="_blank"&gt;https://github.com/SRombauts/SQLiteCpp.git&lt;/A&gt;&lt;BR /&gt; cd SQLiteCpp&lt;BR /&gt; git submodule init&lt;BR /&gt; git submodule update&lt;BR /&gt; &lt;BR /&gt; build libs:&lt;BR /&gt; cd /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/ \&lt;BR /&gt; &amp;amp;&amp;amp; . /opt/fsl-imx-x11/4.1.15-2.0.0/environment-setup-cortexa9hf-neon-poky-linux-gnueabi \&lt;BR /&gt; &amp;amp;&amp;amp; ./build.sh &lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;2. edit qt app and its project file&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;QT += core gui&lt;/P&gt;&lt;P&gt;greaterThan(QT_MAJOR_VERSION, 4): QT += widgets&lt;/P&gt;&lt;P&gt;TARGET = sqltest&lt;BR /&gt; TEMPLATE = app&lt;/P&gt;&lt;P&gt;SOURCES += main.cpp\&lt;BR /&gt; mainwindow.cpp&lt;/P&gt;&lt;P&gt;HEADERS += mainwindow.h&lt;/P&gt;&lt;P&gt;INCLUDEPATH += /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/include/&lt;BR /&gt; INCLUDEPATH += /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/include/SQLiteCpp/&lt;BR /&gt; INCLUDEPATH += /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/sqlite3/&lt;/P&gt;&lt;P&gt;LIBS += /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/sqlite3/libsqlite3.a&lt;BR /&gt; LIBS += /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/libSQLiteCpp.a&lt;/P&gt;&lt;P&gt;FORMS += mainwindow.ui&lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;3. qt app cross compile error: can not find the function defined in sqlite3.c&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;arm-poky-linux-gnueabi-g++ -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/fsl-imx-x11/4.1.15-2.0.0/sysro&lt;BR /&gt; ots/cortexa9hf-neon-poky-linux-gnueabi -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -o sqltest main.o mainwindow.o moc_mainwi&lt;BR /&gt; ndow.o /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/sqlite3/libsqlite3.a /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp&lt;BR /&gt; /build/libSQLiteCpp.a -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lEGL -lpthread&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/libSQLiteCpp.a(Column.cpp.o): In function `SQLite::Column::getName() const':&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/src/Column.cpp:44: undefined reference to `sqlite3_column_name'&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/libSQLiteCpp.a(Column.cpp.o): In function `SQLite::Column::getOriginName() con&lt;BR /&gt; st':&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/src/Column.cpp:51: undefined reference to `sqlite3_column_origin_name'&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/libSQLiteCpp.a(Column.cpp.o): In function `SQLite::Column::getInt() const':&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/src/Column.cpp:58: undefined reference to `sqlite3_column_int'&lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;4. more info&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;ocean@mhc:~/test/qt5_all/sqltest/sqltest$ grep -rns "sqlite3_libversion" /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/SQLiteCpp_example1&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/SQLiteCpp_tests&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/sqlite3/libsqlite3.a&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/sqlite3/CMakeFiles/sqlite3.dir/sqlite3.c.o&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/libSQLiteCpp.a&lt;BR /&gt; /home/ocean/test/qt5_all/sqltest/XLIBS/SQLiteCpp/build/CMakeFiles/SQLiteCpp.dir/src/Database.cpp.o&lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Can somebody tell me why why XLIBS/SQLiteCpp/src/Column.cpp cannot read sqlite3_column_origin_name() from libsqlite3.a (sqlite3.c)? I have built XLIBS/SQLiteCpp/build/sqlite3/libsqlite3.a and then the XLIBS/SQLiteCpp/build/libSQLiteCpp.a !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 08:11:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SQLiteCpp-cross-compile-error-cannot-find-a-given-function-in/m-p/701192#M108926</guid>
      <dc:creator>才俊欧</dc:creator>
      <dc:date>2017-10-09T08:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: SQLiteCpp cross compile error: cannot find a given function in sqlite3.c</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SQLiteCpp-cross-compile-error-cannot-find-a-given-function-in/m-p/701193#M108927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joe Ocean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot comment on this error but if you're still experiencing issues with this, perhaps it would pay off to post this question in a more SQLite centric forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 16:27:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SQLiteCpp-cross-compile-error-cannot-find-a-given-function-in/m-p/701193#M108927</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2017-10-10T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQLiteCpp cross compile error: cannot find a given function in sqlite3.c</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SQLiteCpp-cross-compile-error-cannot-find-a-given-function-in/m-p/701194#M108928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your advice! The issue is&amp;nbsp;that I didn't know the cross compile tool from yocto well. I made it by install a libsqlite on x86, I made it but I still not understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 06:24:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SQLiteCpp-cross-compile-error-cannot-find-a-given-function-in/m-p/701194#M108928</guid>
      <dc:creator>才俊欧</dc:creator>
      <dc:date>2017-10-23T06:24:41Z</dc:date>
    </item>
  </channel>
</rss>

