{"id":4693,"date":"2014-03-30T14:45:25","date_gmt":"2014-03-30T14:45:25","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/nano-x-cross-compile-for-arm-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:45:25","modified_gmt":"2014-03-30T14:45:25","slug":"nano-x-cross-compile-for-arm-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/nano-x-cross-compile-for-arm-collection-of-common-programming-errors\/","title":{"rendered":"Nano-x cross-compile for ARM-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to cross-compile nano-x for arm architecture.<\/p>\n<p>I edited in config file next lines:<\/p>\n<blockquote>\n<p><strong>ARCH = LINUX-ARM<br \/>\nARMTOOLSPREFIX = arm-none-linux-gnueabi-<\/strong><\/p>\n<\/blockquote>\n<p>After I run make and I have next error:<\/p>\n<pre>\nCompiling engine\/image_jpeg.c ...\ncc1: warning: include location \"\/usr\/include\/freetype2\" is unsafe for cross-compilation\n\/home\/user\/oe\/nanox\/microwindows-0.92\/src\/engine\/image_jpeg.c:49: fatal error: jpeglib.h: No such file or directory\ncompilation terminated.\nmake[1]: *** [\/home\/user\/oe\/nanox\/microwindows-0.92\/src\/obj\/engine\/image_jpeg.o] Error 1\nmake: *** [subdir-\/home\/user\/oe\/nanox\/microwindows-0.92\/src\/mwin] Error 2\n<\/pre>\n<p>Also after each compiling I have a warnings:<\/p>\n<pre>\ncc1: warning: include location \"\/usr\/include\/some file\" is unsafe for cross-compilation\n<\/pre>\n<p>I tried to compile for my architecture, everything went well. Demo is running.<\/p>\n<p>There is next problem:<\/p>\n<pre>In function 'MwSelect':\n\/home\/user\/oe\/nanox\/microwindows-0.92\/src\/mwin\/winmain.c:356: error: impossible constraint in 'asm'\n\/home\/user\/oe\/nanox\/microwindows-0.92\/src\/mwin\/winmain.c:357: error: impossible constraint in 'asm'\n\/home\/user\/oe\/nanox\/microwindows-0.92\/src\/mwin\/winmain.c:358: error: impossible constraint in 'asm'\nmake[1]: *** [\/home\/user\/oe\/nanox\/microwindows-0.92\/src\/obj\/mwin\/winmain.o] Error 1\nmake: *** [subdir-\/home\/user\/oe\/nanox\/microwindows-0.92\/src\/mwin] Error 2<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to cross-compile nano-x for arm architecture. I edited in config file next lines: ARCH = LINUX-ARM ARMTOOLSPREFIX = arm-none-linux-gnueabi- After I run make and I have next error: Compiling engine\/image_jpeg.c &#8230; cc1: warning: include location &#8220;\/usr\/include\/freetype2&#8221; is unsafe for cross-compilation \/home\/user\/oe\/nanox\/microwindows-0.92\/src\/engine\/image_jpeg.c:49: fatal error: jpeglib.h: No such file or directory compilation terminated. make[1]: *** [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4693","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4693"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4693\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}