{"id":1364,"date":"2023-02-07T15:25:06","date_gmt":"2023-02-07T07:25:06","guid":{"rendered":"https:\/\/blog.iotot.com\/?p=1364"},"modified":"2023-02-07T15:25:06","modified_gmt":"2023-02-07T07:25:06","slug":"linux4-9-7-aarch64-linux-gun-4-7-%e4%ba%a4%e5%8f%89%e7%bc%96%e8%af%91qt5-12-9","status":"publish","type":"post","link":"https:\/\/blog.iotot.com\/?p=1364","title":{"rendered":"Linux4.9.7 + aarch64-linux-gun 4.7   \u4ea4\u53c9\u7f16\u8bd1QT5.12.9"},"content":{"rendered":"<p>1.\u4e0b\u8f7d\u5b89\u88c5\u4ea4\u53c9\u7f16\u8bd1\u5668<\/p>\n<p>2\u3001\u8bbe\u7f6e\u4ea4\u53c9\u7f16\u8bd1\u5668\u73af\u5883\u53d8\u91cf<\/p>\n<p>\u4f7f\u7528 vi \u6307\u4ee4\u7f16\u8f91\/etc\/profile \u8fd9\u4e2a\u6587\u4ef6\u3002<br \/>\nsudo vi \/etc\/profile<br \/>\n\u6253\u5f00\/etc\/profile \u4ee5\u540e\uff0c\u5728\u672b\u5c3e\u6dfb\u52a0\u5982\u4e0b\u6240\u793a\u5185\u5bb9\u3002<\/p>\n<p>\u5982\uff1a\u00a0 \u00a0export PATH=$PATH:\/usr\/local\/arm\/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf\/bin<\/p>\n<p>\u6dfb\u52a0\u5b8c\u6210\u5982\u4e0b\u56fe\uff0c\u4fdd\u5b58\u9000\u51fa\uff0c\u91cd\u542f\u7cfb\u7edf\u3002<\/p>\n<p>aarch64-linux-gun-gcc -v\u00a0 \u67e5\u770bgcc\u7248\u672c\u4fe1\u606f<\/p>\n<p>aarch64-linux-gun-g++ -v \u67e5\u770bg++\u7248\u672c\u4fe1\u606f<\/p>\n<p>3\u3001\u6dfb\u52a0 Qt \u652f\u6301\u89e6\u6478\u5e93 tslib<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/github.com\/kergoth\/tslib<\/p>\n<p>\u7f16\u8bd1\u65b9\u5f0f \uff1a<\/p>\n<p>\u7f16\u8bd1 tslib<br \/>\n\u751f\u6210 Makefile\uff0c\u8fd8\u9700\u8981\u5b89\u88c5\u4ee5\u4e0b\u8f6f\u4ef6\u3002<br \/>\nsudo apt-get update<br \/>\nsudo apt-get install autoconf automake libtool<br \/>\n\u6267\u884c autogen.sh \u751f\u6210 Makefile\uff0c\u4ee5\u7f16\u8bd1\u6e90\u7801\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6267\u884c\u9884\u7f16\u8bd1\uff1a<\/p>\n<p>.\/configure &#8211;host=arm-linux-gnueabihf ac_cv_func_malloc_0_nonnull=yes &#8211;cache-file=arm-linux.<br \/>\ncache -prefix=\/home\/alientek\/tslib-1.21\/arm-tslib<\/p>\n<p>\u76f4\u63a5\u6267\u884c make \u7f16\u8bd1\u53ca make install \u5b89\u88c5\u3002<br \/>\nmake<br \/>\nmake install<\/p>\n<p>4\u3001\u7f16\u8bd1QT\u6e90\u7801<\/p>\n<p>\u521b\u5efa\u9884\u7f16\u8bd1\u811a\u672c\uff1aautoconfigure.sh<\/p>\n<p>.\/configure -prefix \/home\/forlinx\/work\/qt-everywhere-src-5.12.9\/arm-qt \\<br \/>\n-opensource \\<br \/>\n-confirm-license \\<br \/>\n-release \\<br \/>\n-strip \\<br \/>\n-shared \\<br \/>\n-xplatform linux-aarch64-gnu-g++ \\<br \/>\n-optimized-qmake \\<br \/>\n-c++std c++11 \\<br \/>\n&#8211;rpath=no \\<br \/>\n-pch \\<br \/>\n-skip qt3d \\<br \/>\n-skip qtactiveqt \\<br \/>\n-skip qtandroidextras \\<br \/>\n-skip qtcanvas3d \\<br \/>\n-skip qtconnectivity \\<br \/>\n-skip qtdatavis3d \\<br \/>\n-skip qtdoc \\<br \/>\n-skip qtgamepad \\<br \/>\n-skip qtlocation \\<br \/>\n-skip qtmacextras \\<br \/>\n-skip qtnetworkauth \\<br \/>\n-skip qtpurchasing \\<br \/>\n-skip qtremoteobjects \\<br \/>\n-skip qtscript \\<br \/>\n-skip qtscxml \\<br \/>\n-skip qtsensors \\<br \/>\n-skip qtspeech \\<br \/>\n-skip qtsvg \\<br \/>\n-skip qttools \\<br \/>\n-skip qttranslations \\<br \/>\n-skip qtwayland \\<br \/>\n-skip qtwebengine \\<br \/>\n-skip qtwebview \\<br \/>\n-skip qtwinextras \\<br \/>\n-skip qtx11extras \\<br \/>\n-skip qtxmlpatterns \\<br \/>\n-make libs \\<br \/>\n-make examples \\<br \/>\n-nomake tools -nomake tests \\<br \/>\n-gui \\<br \/>\n-widgets \\<br \/>\n-dbus-runtime \\<br \/>\n&#8211;glib=no \\<br \/>\n&#8211;iconv=no \\<br \/>\n&#8211;pcre=qt \\<br \/>\n&#8211;zlib=qt \\<br \/>\n-no-openssl \\<br \/>\n&#8211;freetype=qt \\<br \/>\n&#8211;harfbuzz=qt \\<br \/>\n-no-opengl \\<br \/>\n-linuxfb \\<br \/>\n&#8211;xcb=no \\<br \/>\n-tslib \\<br \/>\n&#8211;libpng=qt \\<br \/>\n&#8211;libjpeg=qt \\<br \/>\n&#8211;sqlite=qt \\<br \/>\n-plugin-sql-sqlite \\<br \/>\n-I\/home\/forlinx\/work\/tslib\/arm-tslib\/include \\<br \/>\n-L\/home\/forlinx\/work\/tslib\/arm-tslib\/lib \\<br \/>\n-recheck-all<\/p>\n<p>\u8bf4\u660e\uff1a<\/p>\n<p>\uff081\uff09 \/home\/forlinx\/work\/qt-everywhere-src-5.12.9\/arm-qt \u4e3a\u7f16\u8bd1\u8f93\u51fa\u8def\u5f84\u3002<br \/>\n\uff082\uff09 \/home\/forlinx\/work\/tslib\/arm-tslib\/include \u4e3a\u7b2c\u4e8c\u7ae0 tslib \u5934\u6587\u4ef6\u8def\u5f84\u3002<br \/>\n\uff083\uff09 \/home\/forlinx\/work\/tslib\/arm-tslib\/lib \u4e3a\u7b2c\u4e8c\u7ae0 tslib \u76f8\u5173\u5e93\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u76f4\u63a5\u6267\u884c make \u5f00\u59cb\u7f16\u8bd1\u3002<br \/>\ntime (make -j 16) \/\/ -j 16 \u4ee3\u8868\u6700\u591a\u5141\u8bb8 16 \u6761\u7f16\u8bd1\u6307\u4ee4\u540c\u65f6\u8fd0\u884c\uff0c\u53c2\u6570 16\uff0c\u4e00\u822c\u4e3a<br \/>\n\u4e2a\u4eba\u5206\u914d\u7ed9\u865a\u62df\u673a\u7684\u6838\u5fc3\u6570\u7684 2 \u500d\uff0c\u524d\u9762\u52a0\u4e2a time \u662f\u6d4b\u8bd5\u7f16\u8bd1\u65f6\u95f4\u3002<\/p>\n<p>make intsall \u5b89\u88c5<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u4e0b\u8f7d\u5b89\u88c5\u4ea4\u53c9\u7f16\u8bd1\u5668 2\u3001\u8bbe\u7f6e\u4ea4\u53c9\u7f16\u8bd1\u5668\u73af\u5883\u53d8\u91cf \u4f7f\u7528 vi \u6307\u4ee4\u7f16\u8f91\/etc\/profile \u8fd9\u4e2a\u6587\u4ef6\u3002  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/1364"}],"collection":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1364"}],"version-history":[{"count":1,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/1364\/revisions"}],"predecessor-version":[{"id":1365,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=\/wp\/v2\/posts\/1364\/revisions\/1365"}],"wp:attachment":[{"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iotot.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}